Skip to main content

Thread: permissions with bash script


how run bash script permissions.

each of following lines @ cli runs fine in script errors

script
code:
#!/bin/bash  clear  sourcefolder=/home/dev/downloads/torrents destfolder=/srv/samba/share/ defowner="nobody" defgroup="sambashare"  mv $sourcefolder $destfolder
permissions
code:
dev@kevcoder00:/srv/samba/share$ ls -ld ~/downloads/torrents  drwxr-xr-x 2 dev dev 4096 2011-06-25 13:05 /home/dev/downloads/torrents dev@kevcoder00:/srv/samba/share$ ls -ld /srv/samba/share/*  drwxrwxr-x 2 nobody sambashare_kid 4096 2011-06-25 14:31 /srv/samba/share/casey drwxrwxr-x 8 nobody sambashare     4096 2011-06-25 14:28 /srv/samba/share/movies drwxrwxr-x 5 nobody sambashare     4096 2011-06-25 13:58 /srv/samba/share/music dev@kevcoder00:/srv/samba/share$ groups  dev adm dialout cdrom sudo plugdev lpadmin admin sambashare sambashare_kid
the error
code:
dev@kevcoder00:/srv/samba/share$ ~/scripts/move_torrents  bash: /home/dev/scripts/move_torrents: permission denied

code:
sudo -s
drop root out of
code:
exit
see https://help.ubuntu.com/community/filepermissions

might have chmod -x torrent


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] permissions with bash script


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support