Skip to main content

Thread: Permission Denied when executing .sh


every time start thinking i've gained competency in command line, run brick wall points out ignorant newbie am.

i've got script run backups. ran month ago think, , well. but, try run again , following:

don@m:/media/disk/mtools$ whoami
don
don@m:/media/disk/mtools$ groups
don adm dialout fax cdrom floppy tape audio dip video plugdev scanner netdev lpadmin admin fuse vboxusers truecrypt
don@m:/media/disk/mtools$ ls -l *.sh
-rwxrwx--- 1 don don 2137 2012-03-07 16:05 long-bkp.sh
-rwxrwx--- 1 don don 116 2009-03-10 21:43 test.sh
don@m:/media/disk/mtools$ ./long-bkp.sh
bash: ./long-bkp.sh: permission denied

i've got right user , group, , executable. can't run script. can't run script in folder anymore. checked permissions chain:

drwxrwx--- 1 don don 4096 2012-03-16 07:47 mtools
drwxrwx--- 1 don don 8192 2011-10-30 20:41 disk
drwxr-xr-x 20 root root 4096 2012-03-16 07:59 media

disk , mtools owner , group. media root/root, thats correct, isn't it? home root/root , can still execute scripts home folder.

used able execute scripts folder, cant. changed, , how fix it?

thanks!

are trying run admin commands ./long-bkp.sh script , requires admin privilege ?
can post contents of ./long-bkp.sh script ?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Permission Denied when executing .sh


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?