On Thu, 2004-06-24 at 21:34, Matt Alexander wrote:
> On Thu, 24 Jun 2004, Craig White wrote:
>
> > On Thu, 2004-06-24 at 20:17, Alan Dayley wrote:
> > >
> > > How does one set the permissions and ownership of the /shared directory
> > > such that all files created there have the correct group always set no
> > > matter which user is the owner?
> > ----
> > chmod g+s /shared
>
> Craig's solution is the most elegant, but another option would be to set
> the primary group for each user to the GID of "users" in /etc/passwd.
----
For home use, this completely makes sense and I think that there are a
few things that I have figured out that make life simpler for me. They
are probably in some book somewhere.
- from the outset, plan a common group of users with the most general
ambitions and have all users belong to that group as primary group.
- it keeps /home fairly neat as I tend to create user profiles for kids,
friends, anyone who is going to sit in front of one of my computers.
- don't just create users home directories in /home, make a directory
called /home/users and create users home directories there. Why?
- I put mounts in /home such as other nfs/smb servers and
access them fairly easily
- I can change my mind and mount other nfs server home
directories easily. I actually have a scenario where I have
ldap providing authentication for users on a few systems
and instead of creating a users $HOME on each system, I create
the nfs mount and their home directory is located in the same
path (and with the same uid). Yes, I know that it's not generally
a good idea to have home directories on nfs mounts but for
light duty, it's workable.
- I can relocate other data directories such as apache's there
- I can locate 'shared' directories there easily.
- I can use the same users home directory for posix user and samba
user without worrying about mucking the privileges of /home
(not a good idea). This allows netscape/mozilla roaming
profile between various computers/OS's
- I can change user defaults in /etc/default/useradd (Red Hat)
i.e.:
groupadd users-all
useradd -g users-all craig -d /home/users -n
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss