Tyler,

This didn't quite work.

When I did this, non-root users could not create files in the subdirectories; the permissions looked like: drwxr-xr--. 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--.

I suppose that I could run a crontab every five minutes to do chmod u+w on every file, but that seems... inelegant. :-p



At 12:47 PM 7/29/2003 -0700, you wrote:
Given the following directory:
        /var/web

As root:
chgrp -R webgroup /var/web
chmod 2754 /var/web
find /var/web -type d -exec chmod 2754 {} \;

In order, these commands do the following:
- change ownership of /var/web, and all files, subdirectories, etc. to
be group-owned by webgroup. Obviously, you'll need to substitute
whatever group name you use.
- change the permissions on /var/web to look like: drwxrwsr--. This
will force anything created in this directory to 'inherit' the
permissions of /var/web.
- do the same as above for all subdirectories under /var/web.

I'd strongly suggest some reading along the lines of one of the
following. These should answer many of your recent questions:

'Unix Power Tools' published by O'Reilly
'Essiential System Administration' published by O'Reilly
'Unix System V Release 4: The Complete Reference' published by
McGraw-Hill
'Unix System Administration Handbook' published by Prentice Hall

Other good information can be found at docs.sun.com, specifically
http://docs.sun.com/db/prod/solaris.

Of course, sending a message off to this list works well too... :-)

-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

_______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to