UUID confusion revisited
Nils Kassube
kassube at gmx.net
Tue Mar 25 08:49:49 UTC 2008
SYNass IT Ubuntu / Linux wrote:
> a1) I assume $HOME/bin means /home/bin !?
No, "$HOME" is the shell variable which points to your home directory. As
I don't know which your login is, I used this variable. If your login
is "svobi", the shell would expand "$HOME/bin" to "/home/svobi/bin".
> a2) I do not have such a location ! ;-(
If the directory doesn't exist, make it with a GUI file manager or in a
terminal with the command "mkdir $HOME/bin".
> b1) Created my script (UUIDcomp) in /usr/local/bin
> b2) After chmod +w /usr/local/bin/UUIDcomp I am getting:
>
> sna at WS222:~$ sh UUIDcomp
> sh: Can't open UUIDcomp
>
> sna at WS222:~$ UUIDcomp
> bash: /usr/local/bin/UUIDcomp: Permission denied
> sna at WS222:~$
>
> What and where could have gone wrong ...
> ... or where did I make my mistake/s ??
Sorry, that was my mistake, not yours (I think I need some coffee). The
chmod command really should have been this:
sudo chmod +x /usr/local/bin/UUIDcomp
With the +w option you made it writeable but the +x option makes it
executeable.
Nils
More information about the ubuntu-users
mailing list