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