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

user logon in loop, can u help me ??

Status
Not open for further replies.

fishfat3

Technical User
Mar 22, 2002
8
US
i'm running Solaris7(intel). Created a userid using admintool, logout and attempted to logon with new userid, the screen flashed something up but it's so quick i cannot read it.logon process then loops back to logon screen. now i cannot logon with root. i'm trying not to blow away it away and reinstall if i can help it. also, user home dir is $HOME.

john
 
you have no home dir. as long you use admintool for create users account you never will learn how to do this by hand.
1) edit /etc/passwd, append the new user
2) run /bin/pwconv, to check /etc/[passwd|shadow]
3) run: passwd username, set the passwd
4) make the user-home-dir
5) chown -R username:usergroup user-home-dir
that's all ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
Are there any users who can log onto the system? If so, log on as one of them and try to su (without the -) to root. If not you may have to boot to the cdrom and modify the /etc/passwd file to change the root users home dir (if that is the problem).

Also, to add a user, try this:

# useradd -u (uid) -g (gid) -c "comment" -d /export/username username
# mkdir /export/username
# chown username:group /export/username

I have scripted this process to read from a file the new username and who to copy it from and it adds the user and creates the dirs and all for me. Even sets the passwd to expired.

Will
 
hey guys, i would like to give it a shot, but at present i cannot logon to the system as root. first the system went into a loop while trying to logon with newly created user and when i tried to logon as root the screen would flash as if it was going to come up in a console mode and then went back to the logon screen. this is a machine i'm using to learn solaris on and i can just "nuke" it but i would like to recover as if this was in the real world.
 
power off the system. Put the Solaris Softdisk disk 1 of 2 in the drive. When you power it on and it starts to boot, press <STOP><A> and you will get an ok prompt. Type 'boot cdrom -s' and it will boot the OS from the cd into single user mode. This will not mount any filesystems for you. You will need to mount the filesystem that contains /etc to /mnt. At this point you can go to /etc and vi passwd to change the home dir to / for root if that is the problem. If that doesn't fix it, please post a copy of your /etc/passwd file so we can look at it.

Will
 
make sure that you change the initial login to CDE and not
motif, this will cause th problem you are describing.
on the intial login screen (Enter username) there
is a pulldown for &quot;Session&quot;, make sure it is set for CDE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top