Thanks Ralph and John, I've put those ideas into practice (manually) and everything seems OK. Neil, I already had a new group for all (i.e. 2!) users but it is not their primary group. Firstly, do I have to edit /etc/passwd to change users' primary group? Secondly, would that change and a new standard umask mean that all files are writeable to all users?

I now need to create the cron job. I'm not sure how to do it in a situation like this where I need to run the find command with sudo. I can't do su, presumably because root doesn't have a password.

Also, since I have an all-users group I guess I could change the find from:
find /home/shared -type f ! -perm -22 -ls -exec chmod go=u {} +
to:
    find /home/shared -type f ! -perm -22 -ls -exec chmod g=u {} +

(I deleted an "o"!).

John C-C, thanks for the info on setuid bit on the directories. I thought setuid was just for executables.

Regards,
John

--
Next meeting:  Bournemouth, Tuesday, 2014-09-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to