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

MadHat madhat at unspecific.com
Thu Jan 17 14:21:05 CST 2002


At 07:26 PM 1/17/2002 +0000, you wrote:
>could someone can give me a direction that every time I create a new user, 
>it will
>automatically do the followings:
>
>set group id as: wrokgroup
>quato is limited: 5 MB
>automatic create sub directory: temp
>this sub directory with permission: 757
>
>I know I can put the parameter, but should have a better.

OK, for the Quota, edit the file /etc/adduser.conf or /etc/default/useradd 
you should be able to add a line that says
QUOTAUSER="USER"

and it will dup that use for all new users
basically run a
edquota -p USER newuser

But I haven't tried it, so YMMV.



--
MadHat at unspecific.com





More information about the Discuss mailing list