View Single Post
Posts: 14 | Thanked: 3 times | Joined on Jan 2010
#5
Hi

Originally Posted by zehjotkah View Post
-rw-r--r-- 1 user root 162 Jan 3 17:32 profile.sh
The chmod did not work then:

~ $ chmod 644 profile.sh
~ $ ls -lh profile.sh
-rw-r--r-- 1 user users 152 Jan 3 16:56 profile.sh
~ $ chmod 755 profile.sh
~ $ ls -lh profile.sh
-rwxr-xr-x 1 user users 152 Jan 3 16:56 profile.sh


You can only execute the script if the executable bit (x) is set. Alternatively, you can also try sh ./profile.sh which does not require the executable bit.

Thank you for your efforts

Matt