View Single Post
dfinch's Avatar
Posts: 362 | Thanked: 82 times | Joined on Jan 2008
#30
Originally Posted by TA-t3 View Post
You should be able to create .profile as user, no root access necessary. Specifically, it's /home/user/.profile, make sure that you didn't do e.g. 'cd /' or something before trying to edit it. Just launching xterm should land you in /home/user, as can be checked with
Code:
pwd
ls -ld
It should output something like

/home/user

and

drwxr-x--- <some number> user users <some date>

which means that you're in /home/user, which is owned by 'user' in the group 'users', and with write access for 'user' (yourself) (that first 'w').

As for the script execution:
It fails with 'MyDocs/scripts/script-name.sh' ?
Does it work with 'sh MyDocs/scripts/script-name.sh' ?
Does 'sh -x' instead of just 'sh' make some output?
Havent tried the first part yet but executing the backup in the ways you suggest gives the same response = can't open path/script-name.sh

so it seems to find it but cant execute.

Just typing in the file with path still says 'not found'

can I prove that they are executable?
__________________
N810, OS 2008 5.2008.43-7 (Diablo)
Nobody can accuse me of not contradicting the invalid arguments of the opposition!
Derek