Soldato
- Joined
- 7 Jan 2007
- Posts
- 10,607
- Location
- Sussex, UK
Hiya,
How do I set file permissions of 775 for new created files and folders on storage 1 and storage2?
My issue is the same problem as this guy here: http://www.linickx.com/archives/396/bash-script-to-fix-file-permissions-recursively
He fixed his permissions problem by setting a cronjob for his permissions bash script, but I have assumed the same can be done within fstab, or am I mistaken?
Basically mediatomb (ps3 upnp streaming software) needs 775 permissions inorder to work properly but when I copy media over top my storage1/storage2 drives they are the wrong permissions and need to be changed manually, i'm basically looking for a way to do this automatically.
Hope people can help, i'm back from work at 6pm so hopefully will have some replies by then!
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sda1 /mnt/storage1 ext3 users,auto,rw 0 0
/dev/sdb1 /mnt/storage2 ext3 users,auto,rw 0 0
How do I set file permissions of 775 for new created files and folders on storage 1 and storage2?
My issue is the same problem as this guy here: http://www.linickx.com/archives/396/bash-script-to-fix-file-permissions-recursively
He fixed his permissions problem by setting a cronjob for his permissions bash script, but I have assumed the same can be done within fstab, or am I mistaken?
Basically mediatomb (ps3 upnp streaming software) needs 775 permissions inorder to work properly but when I copy media over top my storage1/storage2 drives they are the wrong permissions and need to be changed manually, i'm basically looking for a way to do this automatically.
Hope people can help, i'm back from work at 6pm so hopefully will have some replies by then!