Thread: permissions with bash script
how run bash script permissions.
each of following lines @ cli runs fine in script errors
script
permissionscode:#!/bin/bash clear sourcefolder=/home/dev/downloads/torrents destfolder=/srv/samba/share/ defowner="nobody" defgroup="sambashare" mv $sourcefolder $destfolder
the errorcode: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
code:dev@kevcoder00:/srv/samba/share$ ~/scripts/move_torrents bash: /home/dev/scripts/move_torrents: permission denied
drop root out ofcode:sudo -ssee https://help.ubuntu.com/community/filepermissionscode:exit
might have chmod -x torrent
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] permissions with bash script
Ubuntu
Comments
Post a Comment