TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:8052] Multiple /etc/skel entries?



Actually, on my system it is a binary file of type: ELF 32-bit LSB
executable.  The defaults are stored in a text file '/usr/defaults/useradd'
but I can't seem to find anyway of defining different settings for different
groups.  Their isn't a switch for specifying a different config file,
either...

I suppose I *could* write some sort of script that switches between two
different /usr/defaults/useradd files, based on a command line switch...

Ben

----------
The phrasing, style, and content of this message are the sole property of
Ben Beuchler, Inc. and may not be reproduced in any way, shape or form
without the written consent Ben Beuchler Enterprises.  All rights reserved.
Void where prohibited by law.  Do not remove under penalty of law.  Do not
spindle or fold.  Not valid in Alaska, Hawaii, or Puerto Rico.



> -----Original Message-----
> From: Christopher Palmer [mailto:reid@pconline.com]
> Sent: Thursday, September 02, 1999 10:52 AM
> To: TCLUG-List
> Subject: Re: [TCLUG:8052] Multiple /etc/skel entries?
>
>
> On Thu, 2 Sep 1999, Ben Beuchler wrote:
>
> > Is it possible to have default 'adduser' settings that are different for
> > different groups?  Specifically, I would like to have two
> groups: 'ftp' and
> > 'users.'  The 'ftp' group would need to have an /etc/skel folder that
> > contained the normal bin, lib, etc entries for a guest ftp
> account that is
> > going to be 'chroot'-ed.  The 'users' account would need
> whatever default
> > configuration files they need for KDE or bash, etc...
> >
> > Currently, I have to pick one as the default and manually make
> the changes
> > for anyone from the other group.  I suppose I could set up a series of
> > scripts to handle the manual changes for me, but it would be so muc more
> > elegant to have different defaults for each group!
>
> Create a new skel for your group. Then tweak your 'adduser' script to
> point to the new skel, and name it 'adduser-ftpgroup' or something. I'm
> not near a Linux system, but on my FreeBSD system here, 'adduser' is a
> Perl script. You should be able to make this small fix with no knowledge
> of Perl or *sh (or whatever other scripting language 'adduser' might be
> in).
>
> And now you know why 'adduser' is written in an interpreted scripting
> language on every Unix system in the world. :)
>
>
> -- Chris
>
>   Christopher Reid Palmer : http://www.innerFireWorks.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-list-help@mn-linux.org
>
>
>