[95462] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: Users and Groups

daemon@ATHENA.MIT.EDU (Charles Galpin)
Sun Oct 18 21:17:07 1998

Date: Sun, 18 Oct 1998 21:13:35 -0400
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: immortalis <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

===== Original Message from immortalis <redhat-list@redhat.com> at 10/18/98 
7:48 pm
>Hey all :)
>	I currently have my users set up in a way that they belong to their own
>group. anything that is created by the user is automatically assigned to
>the same group to.
>	eg.  in \home, the users listed with an ls - l are as follows..
>
>	drwx------   5 majost   majost       1024 Sep 30 11:08 majost
>	drwx------   3 maxwedge maxwedge     1024 Sep  1 06:34 maxwedge
>	drwx------   5 info   info       1024 Oct  5 01:25 info
>
>	i wanna make a group called "users" with the same priviledges, and assign
>all these existing users to this group. is there an easy way to do this?
>i'd like to set it up so that any new users that i add will assign the
>group "users" to it.
>
>	also, what is the best way to change the group of a user? i've done this
>by editing the passwd file.. .. just wanna know the "right" way to do it :)
>
>	thanks in advance,
>	sze
>

I'm no expert at these things, but just want to point out that you are 
trying to defeat what is known as the user private group scheme. I think 
it's documented inthe RH book that comes with the boxed version. Anyway it's 
a really cool idea. If youve every worked on multiple projects at the same 
time you will appreciate it. If my default group was proj1, and I'm helping 
out on project 2 ( with group proj2, all file I create are likely to be 
inaccesable by the proj2 giys ( depending on your umask of course ). This 
sucks. The answer is to use the user private group scheme and set the group 
on the directories that will be shared. then all files created in those 
directories will have the right group.

this is a bit of an oversimplification, but I hope I got the point across. 
If you want this users group for those reasons, see if you can do that.

hth
charles

--
Charles Galpin   <cgalpin@lighthouse-software.com>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post