Jon wrote:
>
> On Sat, Apr 29, 2000 at 05:43:03PM +0200, Deim �goston wrote:
>
> > Hi all !
>
> Hello!
>
> > Since I deleted the buggy linuxconf and don't want to use webmin
> > or any other GUI interface I have some questions.
>
> > 1.) which config file should I edit if I want that all new users go to
> > the librarians group and create a home directory under for them
> > /home/librarians/
>
> You could edit the /etc/default/useradd file, or you could use
> the useradd command itself to change some of these values for
> you. Editing the file works fine, however.
>
> > 2.) If a user is a member of two different groups, like librarians and
> > readers (the librarian is the primary/initial group) and creates a text
> > file and the permissions of the file set to 660 will the members of
> > the readers able to read and modify this file ?
>
> No. The file would be owned by the user, and in the librarian group,
> with no permission given to anyone else. They would have to remember
> to chgrp or chmod the file after creation to give the "readers" access,
> or you'll have to modify your group scheme.
>
> > 3.) If I have a user and he has his own group but I want to change
> > his group to librarians what should I do ? I tried the usermod -g
> > librarians user_name but all of his files and subdirs has the same
> > owner and group as before (username:username, not
> > username:librarians)
>
> I'd personally just use "vipw" and edit the password file to change the
> group on the user I wanted..
>
> ie:
>
> root:x:0:0:root:/root:/bin/bash
>
> ^ change this number to the group you want.
This is what I'd do too, but it won't change the owner or group of any
*exising* files of his, just of new files. You'll need to chown or
chgrp the existing files to change them.
>
> Hope this helps you out. As always, the views expressed here are MHO.
>
> --
> Jon Changnon, Director of Operations
> e: [EMAIL PROTECTED] p: 440.951.9525
> http://www.dncc.net
--
"Brian, the man from babble-on" [EMAIL PROTECTED]
Brian T. Schellenberger http://www.babbleon.org
Support http://www.eff.org. Support decss defendents.
Support http://www.programming-freedom.org. Boycott amazon.com.