Just wondering what people come up with as far as the easiest way to create a sub-directory under all users home directory with appropriate permissions. In the order of 400 users, with approx 50 in one primary group and the rest in another primary group. Permissions need to be 700.
I thought of two ways:
1. copy a known sub-directory already in all users home to the new sub-directory name and then deleting the contents of the newly copied sub-directory....rather laborious method but would have the desired effect. Surely there's a better way...
2. create the directory then look up the primary group of the user and set permissions that way???? I'm sure this would be possible in some way but not exactly sure how.....
Having seen what people come up with with other little bits and pieces was wondering what possibilities there are.
Fil -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
