[NTLUG:Discuss] create a newuser's template file/scriipt?

MadHat madhat at unspecific.com
Wed Jan 23 09:43:46 CST 2002


At 02:27 PM 1/23/2002 +0000, m m wrote:



>>From: MadHat <madhat at unspecific.com>
>>>>From: MadHat <madhat at unspecific.com>
>>>>>it will
>>>>>automatically do the followings:
>>>>>
>>>>>set group id as: wrokgroup
>>>
>>>I also try the GROUPID=600 (600 is workgroup's  #, it does not work)
>>
>>What was the rest of this?  What exactly did you type?
>this is my /etc/defaullt/useradd file.

Right and GROUPID does not exist.  Where did that come from?  I am not 
following.

># useradd defaults file
>GROUP=500
>HOME=/home
>INACTIVE=-1
>EXPIRE=
>SHELL=/bin/bash
>SKEL=/etc/skel
>QUOTAUSER="sk"
>
>in etc/password there is a line:
>workgroup:x:500:500:/bin/.....

should be in /etc/group not /etc/passwd for groups.
And to change that I would use the -D option on adduser.

>I do have a user sk which have quota limitation.
>is QUOTAUSER="sk" line right?

 From what I have read, yes.  But I don't use quotas on any of my systems, 
so I don't have a good way for me to test. If this doesn't work, the next 
best option would be for a custom script to add users.


--
MadHat at unspecific.com





More information about the Discuss mailing list