tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Spalding, Stephen" <SSpaldin () mem-ins ! com>
To: tru64-unix-managers
Subject: SUMMARY: New user script
Date: Mon, 19 Oct 1998 22:29:09 +0000	[thread overview]
Message-ID: <96078724211955.tru64-unix-managers.marc@archive.invalid> (raw)

My original message is:

"When ever I add a new user using dxaccounts, there are some files which I
> have to manually add to the new user's home directory which is kind of a
> pain. I have created a script which will create these files for me, but
> the
> way that this would work the best is if I could get dxaccounts to execute
> this script when ever I create the new user. Does anyone know how to do
> that?"
> 
> 
I got lots of replies from people who suggested that I put the files that I
need copied into /usr/skel which is the directory that gets copied to the
new user's home directory when that directory is created. In this situation,
that wouldn't work as the files which I need to create are unique to each
user, such as .forward and .rhosts.

What I ended up doing is creating a script to create the files with the
appropriate user info and then calling that script from the .profile that is
in the /usr/skel directory. Once the .profile in the user's home directory
has been run for the first time (creating the unique files), the line which
calls the script is then taken out of the user's .profile. I've tried this
once so far, and it seems to work okay.

Thanks to all who replied.

-Stephen Spalding

                 reply	other threads:[~1998-10-19 22:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox