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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating new users with different shells

Status
Not open for further replies.

coach38

MIS
Apr 8, 2004
104
US
I'm new to solaris. I created three test accounts (user3,user4 * user5) using the useradd command. I created each user with a different shell

/bin/sh
/bin/csh
/bin/ksh

but when I login as each user I'm only getting the local.cshrc for all users. I thought I was suppose to have different profiles for each user. Please assist...
 
The local.* files are only samples. You need to rename local.cshrc to .cshrc to have it run. When you say you are "only getting the local.cshrc", what do you mean? It shouldn't be running them at all at the moment, the only one that will be running is /etc/.login, which applies to all csh users.

Annihilannic.
 
EX:

If I login as user3 and do a ls -l. I'm seeing the following profiles. User3 was setup with the /bin/ksh
local.cshrc
local.login
local.profile

If I login as user4 and do a ls -l. I'm seeing the following profiles. User4 was setup with the /bin/csh
local.cshrc
local.login
local.profile

If I login as user5 and do a ls -l. I'm seeing the following profiles. User5 was setup with the /bin/sh
local.cshrc
local.login
local.profile
 
When you create a user using any shell the contents of /etc/skel are copied into that user's home directory. If you want them to have a particular .cshrc, .profile or .kshrc you can create them in /etc/skel, or of course if you don't want them to have those local.* files hanging around, you can move or remove them from /etc/skel.

Annihilannic.
 
To find out what shell you are currently using (which may be different to the default shell you are given at login) try typing, at the shell prompt:
echo $0 # (that is dollar zero)

I hope that helps.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top