Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user initialization files 1

Status
Not open for further replies.

tech84

Technical User
May 18, 2000
126
US
I'm studying for SCSA, and I'm having trouble with this one. I'm going to paraphrase the book I'm using to study: When a user account it created, Bourne and Korn shells both use /etc/skel/local.profile, and the C shell uses /etc/skel/local.cshrc and /etc/skel/local.login. And when the account is created, the appropriate file is rename .profile or .cshrd & .login, respectively, and added to the user's home directory.

But here's what I'm seeing in reality. The /etc/skel folder contains 4 files, .profile, local.cshrc, local.login, and local.profile. Well, whenever I create a new user account, whether I use Bourne, Korn, C, TC, Z... any shell, I always get all 4 of these files copied verbatim to the new user's home directory. This is very confusing to me! I'm running Solaris 8 on a SPARCstation5, and installed the entire distribution. Can anyone explain why I'm not seeing what the book tells me is supposed to happen? Any help would be GREATLY appreciated!

Thanks! Mike
[morning]
 
how are you adding a user? with useradd? if so, what switches are you using with useradd?


crowe
 
Yes, useradd -c "user name" -d /export/home/user1 -m -g 10 -s /bin/ksh user1

Mike
[morning]
 
when u add user from the command prompt, i.e
useradd -md /export/home/user user,
the contents in the /etc/skel directories get
copied to the user home directory. u will have to manually rename the appropriate file.
eg. mv local.profile .profile or local.login to .login
when u use admintool to add users, by default it will rename the appropriate file. u don't have to do it manually.so according to the book, the user is created using admintool.
 
Thanks! The book was just very unclear in that area. It never mentioned having to manually rename the user initialization files. I'm finding out some other bad things about this book as well! Thanks for the tip, though! I tested it out and sure enough, it worked! Much appreciated! Mike
[morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top