Ubuntu :: Script Syntax - Chmod Command Not Found

Jan 20, 2011

I am just starting to learn to script and I need to know what this doesn't work, here's the error I get:
"chmod: command not found"
The error goes away when I delete the line with "dirname $NAME" in it.

#!/bin/sh
echo "enter file name with extension and path"
read NAME
FULLPATH=`dirname $NAME`
OPENFILE="open "$NAME
OPENPATH="open "$FULLPATH
echo $OPENFILE > /Users/admin/Desktop/tmpLink
echo $OPENPATH >> /Users/admin/Desktop/tmpLink
chmond +x /Users/admin/Desktop/tmpLink

View 2 Replies


ADVERTISEMENT

CentOS 5 :: /var/tmp/rpm-tmp.TdoItX: Line 7: Chmod: Command Not Found

Jul 7, 2011

I've just tried to create my first own live-cd using the instructions here: [URL] With the minimal kickstart I get a weird problem though:

...
Installing: libselinux ##################### [ 81/114]
Installing: psmisc ##################### [ 82/114]
Installing: MAKEDEV ##################### [ 83/114]

[code]....

Notice that "chmod" and "touch" are part of the package coreutils which gets installed only after these commands are used. I'm seeing a similar problem with selinux being referenced before the libselinux package is installed. I can boot the resulting image but after the kernel boots it panics because it cannot find /dev/root which might or might not have something to do with the errors above.

View 2 Replies View Related

Ubuntu :: Chmod Command For Installing HP All In One Printer

Jan 6, 2010

I'm such a newbie when it comes to Ubuntu, or any Linux varient, period. I was trying to install a driver for an HP All-in-One Printer and was trying all kinds of commands from different Google searches... still unsuccessful in the installation. I downloaded the file to my desktop, but after using a Chmod command someone mentioned, I now have a folder on my desktop named:

hplip-3.9.12
i right-click
select
properties

Basic Tab
Type:folder (inode/directory
Contents:unreadable
Location:/home/mesk/Desktop

Permissions Tab
Owner:root
Group:root

"You are not the owner so you cannot change these permissions". The folder's icon on my desktop has a red box with white circle on the middle right side and a lock symbol above that. I'm the only user so I don't get why the permissions are protected from me, how do i undo this?

View 6 Replies View Related

Ubuntu :: Permsissions Not Set After Issuing Chmod Command

Jun 15, 2011

Have a look at the image. i hav two users ,one is apoorv(administrator) and other is others(ordinary user). i want to restrict the ordinary user from accessing the files directory as shown in picture. so i tried the chmod command with o-rw option. but its not working ..i hav enabled auto mount for all partitions at boot time.

View 4 Replies View Related

General :: How To Execute Permission To Chmod Command

Apr 14, 2011

How can I give execute permission to chmod command from run level 3.Because in GUI mode we have the execute option in the properties of file. E.g. I gave following command
chmod -x chomod
After that I want to give the execute permission (x) to chmod command again but how from command prompt?

View 5 Replies View Related

Security :: Permission Denied When Trying To Use The Chmod Command?

May 4, 2011

nfs mounted directory which is mounted rw. I and everyone else are members of a common group. We all have write permissions in the tree: All files and directories in the tree are in the common group. All directories are set to 775 and all files are set to 664 or 775, as appropriate.If a file is owned by someone else, even though the file and the directory are group writable, I get permission denied when I try to chmod the file.

Here's the command synopsis:
997 > ls -l portparms.txt
-rwxrw-r--. 1 bdaugher fc 4091 Sep 5 2003 portparms.txt

[code]...

View 2 Replies View Related

Ubuntu Servers :: Vsftpd Chroot, Creates 550 Error On CHMOD Command?

Jul 14, 2010

I've been searching the web, without finding any sollution to my problem.vsFTPd is acting really weird. I've never seen this problem before, and I've been using vsftpd for some years nowWell.. The thing is, I've made a user that chroots to the folder /var/www on my server. And when I then try to chmod the file /var/www/htdocs/testsite/index.html through my ftp-client, I only get the error "550 SITE CHMOD command failed.", and when I then check in my /var/log/vsftpd.log it says

Code:
FAIL CHMOD: Client "192.168.50.58", "/htdocs/testsite/index.html 777"
Which I think would mean that it tries to chmod the file "/htdocs/testsite/index.html" instead of chmod the

[code]....

View 7 Replies View Related

General :: File Still Unwriteable In /var/www/html After The Chmod Command

Jun 17, 2011

I've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod 777 xxx has been tried to make it work, but the error remains when I opened the applications again.

To be specific, I want to install phpFreeChat on my system, so I put those files in the /var/www/html/freechat directory, cd there and typed chmod 777 data/private, chmod 777 data/public on bash. Here's the result of list -al data:

drwxr-xr-x. 4 root root 4096 Jun 17 15:07 .
drwxr-xr-x. 13 root root 4096 Jun 17 15:22 ..
drwxrwxrwx. 2 root root 4096 Jun 17 15:07 private
drwxrwxrwx. 3 root root 4096 Jun 17 15:07 public

These all seemed all right to me, until I typed http://localhost/freechat in my browser. Here's the result:

phpFreeChat cannot be initialized,
please correct these errors:
/var/www/html/freechat/src/../data/private
is not writeable

[code]....

View 3 Replies View Related

Fedora :: Chmod Command To Install VMware Bundle File?

May 9, 2011

I was trying to install vmware.bundle file, and found a terminal command that helped me install the program.

su
chmod +x VM*.bundle
./VM*.bundle

I was just curious what the command chmod was for? Just trying to understand the terminal a little better.

View 1 Replies View Related

Red Hat / Fedora :: Chmod Command To Run To Restore The System To Its Original State?

Jun 15, 2011

we have a customer that ran a sudo chmod +x -R * command on his / filesystem by mistake and now the machine cannot be accessed on the network Has anyone any idea what chmod command to run to restore the system to its original state ?

View 1 Replies View Related

General :: Accidentally Did A 'chmod +x Foo' When Meant To Do A 'chmod A+r Foo'?

Jul 17, 2010

I accidentally did a 'chmod +x foo' when i meant to do a 'chmod a+r foo'.

-rw-r--r-- 1 casper trad 53 Jul 17 22:41 filegore
-rw-r--r-- 1 casper trad 13 Jul 17 22:41 filelemme
-rw-r--r-- 1 casper trad 24 Jul 17 22:41 nix

[code]....

View 1 Replies View Related

Ubuntu :: Syntax Ls Command Question For Generating Links?

Aug 6, 2010

I am trying to find out can I use the ls command to list my wav files in such a way that it follows this format: <OPTION value="/home/filepath.wav">My first file </OPTION> I would like to know if there is a way I could simplify this because I have about 100 wav files. They all have names and if I could get them listed then a space then the name again with something behind it I could use the find replace feature to generate a bunch of links . If not is there a script out there that could use this format to generate links under this format? BTW this is for a pull down menu that would control windows media player

View 8 Replies View Related

Programming :: Can't Get The Syntax Right In This Pyqt3 Command?

Mar 14, 2010

Code:
x = self.spinbox37.value() * 40
y = self.spinbox38.value() * 40

[code]...

View 1 Replies View Related

General :: Command Syntax To Modify Multiple Files

Sep 26, 2009

I have a program I use, rrdtool. I need to modify a ds value on every file at the same time. However, using a wildcard (*) to try this operation of all files does not work and instead only updates one file.

Here is the command syntax:
rrdtool tune <file> --maximum traffic_in:100000000000 && rrdtool tune <file> --maximum traffic_out:100000000000
So, how can I do this on every file in the directory?

View 5 Replies View Related

Software :: Vim - Command Input For Creating Syntax Files

Jan 25, 2011

There is a syntactical feature I would like to see in Vim, and so I thought to write myself a syntax file for my needs, but I am having trouble finding the exact type of syntax highlighting I want to incorporate'emulate. Currently in Vim, from the terminal instead of say gvim, when I place my cursor over a parenthesis or brace, the corresponding brace or parenthesis will highlight, or block its character. In my case, instead of a single character they will be full words specified within the syntax file.

I want to do something similar. For example if my document has three words:
Group
Element1
Element2

I want the syntax file to tell Vim that when I have my cursor over the word Element1 or Element2 that Group will become highlighted. In the same, to have the cursor over Group will cause both Element1 and Element2 to highlight. I have looked here but understanding still eludes me: [URL]. I would also be happy with creating some sort of command input, where I type in the group name and the elements highlight. Like a very specific search function that searches for only and all instances that are contained within the group named.

View 4 Replies View Related

OpenSUSE Install :: Installed Program Not Found - Kmess: Command Not Found

Oct 1, 2010

I installed a program with Yast (Kmess), but when I try to run it, bash gives me back this message:

Code: kmess: command not found I checked into Yast and it seems to be installed correctly!

View 9 Replies View Related

Ubuntu Security :: GRsync --Exclude Command Syntax / Backup A Whole Startup Disk To Another?

Jul 19, 2010

I'm trying to backup a whole startup disk to another with GRSYNC but I don't need some files or directories. For example, I don't want to backup my 'swapfile1' (I do not have a dedicated swap partition) or the 'media' directory' in order to no enter a looping sync.I've searched the web for the correct syntax of the --exclude command but none have worked if applied in the advanced option "before" rsync starts. These a sample of NOT workin syntaxes:

exclude /media or -- exclude 'media' or -- exclude "media"

same for swapfile1:

exclude swapfile1 or -- exclude 'swapfile1' or -- exclude "swapfile1"

View 7 Replies View Related

General :: Tail Command Syntax To Print A Sequence Of Line ?

Dec 21, 2010

How to print a sequence of line say line number 10 to 20 of a 50 line file ?

View 6 Replies View Related

General :: Command Syntax Ignore Remaining Portion After Space?

Jul 14, 2010

I'm currently studying for my Linux+ test and I'm getting conflicting information regarding the rm -rf command. Yes, I know this a dangerous command, but my question is in regard to how the command functions. In one book I'm studying it says that rm -rf / home/myfolder (there's a space in there) will delete the entire root directory because there is a space between the root and home directory. It says that if there is a spacing such as this, it will ignore anything after the space, so in this case, it would delete the root directory and stop, not that there would be anything left anyway. Then in another book I have, it says that if you did a rm -rf folderName / (with the intention of adding the trailing slash to indicate it is a directory and not a folder) it will delete everything in folderName (assuming it's a child directory of your pwd) and then CONTINUE on and delete the root directory. Now, those two statements contradict each other. When you remove a directory, does the command line ignore anything after a space or not?

View 1 Replies View Related

General :: Can't Open File/abcd/configFiles/vim/syntax/syntax.vim?

Mar 7, 2011

When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.

Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.

But still i keep getting the same error. I am not too sure where this file is mentioned.

Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.

View 1 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

General :: Repeatedly Getting Command Substitution - Line 3 - Syntax Error Near Unexpected Token

Aug 31, 2010

I am repeatedly getting error:

I need to pass the value of:

I am using #!/bin/bash

This command works on shell without any issue.

View 8 Replies View Related

Ubuntu :: Setup Command Not Found In 10.04 Command Prompt?

May 6, 2010

In Ubuntu 10.04 grub command prompt setup command does not exist for installing grub.I am trying to recover my Feodra12 OS.Did anyone find alternate command for setup in grub command line for Ubuntu 10.04 ?

View 2 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

Ubuntu :: Whenever Use 'let' Command It Gives An Error 'command Not Found'?

Jan 10, 2010

I am a linux newbie, and recently started shell programming. whenever I use 'let' command it gives me an error 'command not found'. I am using ubuntu 9.10 with bash.

View 5 Replies View Related

General :: SUSE 10 Syslog-ng Syntax - Bash: Syntax Error Near Unexpected Token "("

Apr 20, 2011

I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:

filter f_local4debug { level(debug) and facility(local4); };

When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.

View 1 Replies View Related

Ubuntu :: No Launcher Found In Applications Menu - "projectM-pulseaudio" Returns "command Not Found"

Nov 19, 2010

I'm trying to install the projectM visualizer and I'm running into some problems. Initially, I tried to install it by running "sudo apt-get install libvisual-projectm", which seemed to work... except there's no launcher for it in my Applications menu and "projectM-pulseaudio" returns "command not found". From there, I decided to try to build it myself, by following this guide (<- link). It went well until the "make" command, which returns the following error:

[Code]....

View 1 Replies View Related

General :: Using One Command "make UImage" Getting Error 127 Command Not Found?

Feb 23, 2010

I am doing some embeded linux work in ARM 9263.So I need to make a image for that board.But when I using one command "make uImage" I am getting the following error.

make: arm-linux-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
code....

View 4 Replies View Related

Ubuntu :: /bin/ls Command Not Found?

Nov 8, 2010

I'm wondering whether my server has been hacked by someone trying to cover their tracks. When I log in now, I get a message saying "bash: /bin/ls: No such file or directory", and although 'which ls' tells me it's '/bin/ls', it is as if the command does not exist. Note that this NOT a path issue: I get the error when typing '/bin/ls' (and '/usr/bin/ls', which I thought worth trying). I tried to 'sudo chmod +x /bin/ls' and the operation was not permitted.

OK, so thinking I'd somehow hosed things, I did 'sudo apt-get install --reinstall coreutils', hoping to reinstall ls etc. I get this:

Code:
Preparing to replace coreutils 8.5-1ubuntu3 (using .../coreutils_8.5-1ubuntu3_amd64.deb) ...
Unpacking replacement coreutils ...
dpkg: error processing /var/cache/apt/archives/coreutils_8.5-1ubuntu3_amd64.deb (--unpack):

[Code]...

View 6 Replies View Related

Ubuntu :: Wish: Command Not Found?

Feb 18, 2011

I a new user of ubuntu.I got this strange problem when I was doing an installation. The command is just in the folder, but the installation says it's not there. I have tried to re-install tcl/tk package in ubuntu, but it doesn't work. Could anybody help me out on this issue

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved