Skip to main content

Thread: Persistent file permissions (or another solution?)


hi everyone.

have ubuntu 11.10 x86_64 running on file server @ home. working automated torrent box, getting torrents rss flexget. use sorttv automatically extract , sort depending on file.

have samba server, , nfs server , bunch of other scripts doing thing in same directory, in case /srv.

now, wondering if there way make sure /srv have rwx-properties users?

right running cronjob every 5 minutes doing chmod -r 777 /srv. but, there must smoother way?

code:
johan@ubuntuserver:~$ ls /srv/ total 48 drwxrwxrwx  2 johan nfs   4096 2011-10-25 22:03 backup drwxrwxrwx 19 johan nfs   4096 2011-11-03 15:10 download drwxrwxrwx  3 johan nfs   4096 2011-11-03 19:46 incomplete drwxrwxrwx  2 root  root 16384 2011-10-25 21:19 lost+found drwxrwxrwx  9 johan nfs   4096 2011-11-03 15:08 misc drwxrwxrwx 10 johan nfs   4096 2011-11-03 15:22 movies drwxrwxrwx  2 johan nfs   4096 2011-10-27 23:14 music drwxrwxrwx 11 johan nfs   4096 2011-11-03 03:40 tv-series drwxrwxrwx  2 johan nfs   4096 2011-11-03 19:44 watch
code:
*/5 * * * * chmod -r 777 /srv/
this should like, don't store exposed web here, should ok have 777, right?

why not make /srv owned johan.nfs if it's not already? shouldn't have update permissions time. specific problem trying fix?

there users cannot write these directories? make them members of group nfs.

should able define set of group memberships , permissions apply ad infinitum. might want setgid permissions if can't figure out how make things work normal permissions.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] Persistent file permissions (or another solution?)


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support