--- Richard Crawford <[EMAIL PROTECTED]> wrote: > Tyler, > > This didn't quite work.
Sorry, I missed a couple of things. Permissions can be tricky, even if you work with them a lot. > > When I did this, non-root users could not create files in the > subdirectories; the permissions looked like: drwxr-xr--. Yup, my mistake. I should have said '775' instead of '2754'. > I changed > the 2754 to 2774, so that the permissions looked like: drwxrwxr--. I > then did everything again. Unfortunately, files created by non-root > users still had permissions that looked like: -rw-r--r--. This is a umask problem. A user's 'umask' is going to dictacte how new files and directories are created. For instance, a umask of '022' means that a new file will be created with '644' permisions, and a new directory will be '755' ( -rw-r--r-- and drwxr-xr-x, respectively). What you want is each user to have a umask of 002, so that when they create new files, the group has write permission. > I suppose that I could run a crontab every five minutes to do chmod > u+w on > every file, but that seems... inelegant. :-p Yes, very inelegant, and a little incorrect. :-) If you were going to use cron like this (not recommended, of course), you'd need to do a 'chmod g+w' not 'chmod u+w'. The user already has write permissions - you're trying to add group write permissions. Try this as root: chgrp -R webgroup /var/web chmod 775 /var/web chmod g+s /var/web find /var/web -type d -exec chmod 775 {} \; find /var/web -type d -exec chmod g+s {} \; Then, in each users' .profile, add: umask 002 The additional 'chmod' should set the setgid bit for each directory. The umask will force new files to be created with 'g+w', which is what you want. -Tyler ===== -- Tyler Godfrey [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users