SUMMARY: New user script

From: Spalding, Stephen <SSpaldin_at_mem-ins.com>
Date: Mon, 19 Oct 1998 17:29:09 -0500

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
Received on Mon Oct 19 1998 - 22:31:38 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT