LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   New user failed to login using GUI, But for root it is working (https://www.linuxquestions.org/questions/solaris-opensolaris-20/new-user-failed-to-login-using-gui-but-for-root-it-is-working-572281/)

kcarun 07-25-2007 08:11 PM

New user failed to login using GUI, But for root it is working
 
HI Friends,

I am usig Open Solaris 10.5 in i386 Machine,
I created a new user 'guest' But this user can login only in command line mode.

In GUI Mode , after typing the userame & passwd. system agin comes back to the login screen, Is it because of any user permission issues??
(But root can able to login in GUI Mode.)


Kindly advice

ARUN(INDIA)

jlliagre 07-26-2007 03:43 AM

Did you try login the user under all of CDE / JDS and Failsafe sessions ?

kcarun 07-27-2007 08:28 PM

HI jlliagre,

Thanks for your response,
1) I am using JDS in my machine,Only root can login in that mode

2) In failsafe mode i tried to login but the result was as follows

Quote:

# su guest
su: Unknown user ID
#
3) I dont know how to test in CDE ? ( Can I switch to CDE from JDS?)


..Arun

jlliagre 07-28-2007 02:58 AM

Login under CDE or failsafe is something you choose from the Login screen.

Anyway, if you can't su to the user account, the there is no chance you can login to it.

How did you create it ?

kcarun 07-28-2007 08:21 AM

jlliagre,

I creaetd the user(guest) by followig 2 commands

Quote:

# useradd guest
&
# passwd guest
"su" in command terminal (in GUI) is working
Quote:

# su guest
$pwd
/
$ who am i
root pts/4 Jul 28 18:41 (:0.0)

Just now I created a new user(guest1), but the result is same
Quote:

# useradd guest1
# passwd guest1
New Password:
Re-enter new Password:
passwd: password successfully changed for guest1
#

jlliagre 07-28-2007 08:33 AM

If guest home directory is / , it's no surprise it can't log in under a graphic environment.

/ is root's homedir under Solaris.

Run these commands
Code:

mkdir -p /export/home/guest
chown guest /export/home/guest
usermod -d /home/guest guest

and add this line to the /etc/auto_home file:
Code:

guest localhost:/export/home/guest
That should fix guest's login issue.

kcarun 07-28-2007 09:29 AM

HI jlliagre ,

Yes that was the Problem , Now it is Ok, Thak yoy jlliagre , this is the first time i am getting a fastest solution,
Thak you Once Again, Ia am sending this post in that "Guest" Login

Arun

There was a small mistake in your previous post( Here I mentioned to help for the other members who will come to this page)



Quote:

mkdir -p /export/home/guest
chown guest /export/home/guest
usermod -d /home/guest guest
The 3rd line should be
usermod -d export/home/guest guest

jlliagre 07-28-2007 02:01 PM

Quote:

Originally Posted by kcarun
There was a small mistake in your previous post( Here I mentioned to help for the other members who will come to this page)

Actually, there is no mistake there.
Quote:

The 3rd line should be
usermod -d export/home/guest guest
This works too, but breaks the Unix convention of having home directories under /home.

kcarun 07-29-2007 03:07 AM

HI ,

Sorry Jlliagre, I am a newbie in Linux/Unix, Thank you for your advice,

Arun


All times are GMT -5. The time now is 08:50 AM.