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

Unix user logins keeps kicking back to the login screen

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US
I'm having problems logging in as another user besides root...I know this is crazy but I've created accounts and logged in as other users before. But this time when I create an account and attempt to login it acting like it's not reading the user's profile...I try to login in the user account but it keeps kicking back to the login screen...Could it be a permission problem somewhere..I've tried to changing the permission on the home directory from export to home to test..But I get the same results...Any help would be appreciated

ex: /export/home/test
 
If you are running Solaris, something you can try.

Login as root and run su - <username> to see if any errors appear. If the command is successful, run pwd and make sure you are in the users home directory.

Verify the .dt directory in the user's home directory have the correct privileges.

 
Does this happen with one user or with anything you create?
What's the command you use to create your users?

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
It happens with any user I create....Do you think the umask in the etc profile would have something to do with it...I'm running Sun 5.8 Solaris 8..

I can log into the user fine, but I'll check the the home directory to see where I'm at...But I probably be in the home directory
 
Since this is happening when you create a user, check the file /etc/passwd to verify the following entries are listed:

<username>:<userid>:<groupid>:<comments:<home directory>:<default shell>

Should look something like:

test:15:999:Im the Test User:/home/test:/bin/ksh

If you are using automount to mount your user directories in /home, make sure the proper entry is in /etc/auto_home. If you are not using automount, make sure the <home directory> in /etc/passwd is specific. example: /export/home/test
 
Yea everything is there in the passwd file as you laid out previously with /export/home/test being the home directory...

Although something strange does happen, when I log in as root and su to test and do pwd it shows me the root directory (/) instead of logging into it's own directory(/export/home/test)...This is the case for any user I create....????
 
Hi,

as for su, be aware of the difference between 'su user' and 'su - user';
I presume you did the first;
can you try again with the second?

hope this helps
 
Hi,

Mybe you are creating users with a group id that does not exist in /etc/group.
This happens when /etc/group is hacked by say vi or some other editor.
List the user of the group to verify ( lsgroup mygroup in aix )
when you su to a 'created user' and home directory is still /, issue an id command to be sure of the user id.
 
Now we are getting somewhere... Check to see if there are any entries in /etc/auto_home. Automount may be running and there may be a conflict with your explicit path in /etc/passwd. If there are other users in /etc/auto_home,
create an entry for your user:

test <servername>:/export/home/test

Modify the /etc/password and set the home directory for test to /home/test.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top