Re: Modifying the /etc/skel

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 04/28/04


Date: Wed, 28 Apr 2004 15:26:24 -0000

On Tue, 27 Apr 2004 14:43:05 -0700, Matias Silva
  <matt@nospam.com> wrote:
> How can modify the skel so that it adds subdirectories that are custom
> to each user account?
>
> For instance say I want to add a user bpfish and so I create a
> directory /etc/skel/Web but but when I adduser bpfish I want to create
> /home/bpfish/Web/bpfish. So when I adduser jmclam the system creates
> /home/bpfish/Web/jmclam.
>
> I know I can write a customized "adduser" script that does all this,
> but I was wondering if I can leverage existing stuff.
>
> Thanks
> Matt

man adduser
     If the file /usr/local/sbin/adduser.local exists, it will be
executed
       after the user account has been set up in order to do any local
setup.
       The arguments passed to adduser.local are:
       username uid gid home-directory, and the environment variables
DEBUG
       and VERBOSE will be set according to the settings in the master
program.

-- 
Giraffe: a ruminant with a view.


Relevant Pages

  • Re: Modifying the /etc/skel
    ... >>How can modify the skel so that it adds subdirectories that are custom ... >>to each user account? ...
    (alt.os.linux)
  • Re: Easy way/script to add another user like me?
    ... believe ultimately all the system tasks on a stock system should be ... from one user account to another. ... Maybe this isn't a compelling use of programming resources ... there's no such thing as a "skel" user, ...
    (Ubuntu)
  • Re: dcomcnfg Machine Debug Manager problem
    ... is your user account admin on both machine? ... if your answer is "no" for first question, ... use custom access ... The System Account ...
    (microsoft.public.win2000.security)
  • Re: Default User Folder Not Inheriting New Username
    ... Create a Custom Default Profile ... I customized a new user account called 'test' for the purpose of ... off and logged back in as admin and then went to user accounts ...
    (microsoft.public.windows.terminal_services)
  • Modifying the /etc/skel
    ... How can modify the skel so that it adds subdirectories that are custom to each ... For instance say I want to add a user bpfish and so I create a directory /etc/skel/Web but ... but when I adduser bpfish I want to create /home/bpfish/Web/bpfish. ...
    (alt.os.linux)