Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not log with a user different from root!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iker
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Fri Dec 06, 2002 4:16 am    Post subject: Can not log with a user different from root! Reply with quote

Hello,
I see that many people have problem doing a su root, but to me it is the opposite. I just can not log with a user different from root.
When i do su iker, it tells me "Can not execute /bin/bash"
When I try on a console it tells me No directory /home/iker"
Of course, /bin/bash is executable and /home/iker exists....
Any ideas?

Iker
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Fri Dec 06, 2002 5:02 am    Post subject: Reply with quote

mkdir /home/iker,its a good thing to chmod it
edit /etc/passwd, add /bin/bash in the iker's column
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Fri Dec 06, 2002 5:02 am    Post subject: Reply with quote

grep iker /etc/passwd see if u have /bin/bash at the end of it , if not add it :) sorry for dual post but i am using netscape 4.X
Back to top
View user's profile Send private message
iker
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Fri Dec 06, 2002 2:21 pm    Post subject: Reply with quote

I added the user Iker using either manual command line (useradd ) or the super useradd script. The /etc/passwd field on Iker is correct and the /home/iker is accessible (755) even /home is crossable (755).
This is really strange!
Back to top
View user's profile Send private message
theBlackDragon
l33t
l33t


Joined: 23 Nov 2002
Posts: 768
Location: Belgium

PostPosted: Fri Dec 06, 2002 4:25 pm    Post subject: Reply with quote

Being read/writable for a user is not enough for a home directory.
/home/ikert should be owned by ikert, otherwiser you'll get that error(I had the same problem once. :oops: )
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Fri Dec 06, 2002 5:31 pm    Post subject: Reply with quote

try emerge superadduser
after u use it u see the whole process of adding a user :)
Back to top
View user's profile Send private message
iker
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Fri Dec 06, 2002 6:02 pm    Post subject: Reply with quote

Guys,
I have used the superadduser or even did it myself. Everything is correct (/home/iker belongs to iker etc...). The permissions are also good.
The problem does not come from here.
Any other idea?
:roll:
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Fri Dec 06, 2002 9:19 pm    Post subject: Reply with quote

Just to make sure, you can login with the user in console? so using (a/min)getty or similar, so we should concentrate our efforts on su and not on /etc/passwd /home dir etc. can you find some info in /var/log (pam or something) ?

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
mooman
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 175
Location: Vancouver, WA

PostPosted: Fri Dec 06, 2002 9:25 pm    Post subject: Reply with quote

Okay, just throwing out ideas here...

Is that user a member of a valid group? Is /etc/group okay?

Have you checked to see if there's something screwy in that user's .profile/.bashrc/etc stuff? Ditto for the global ones?


Not that I expect any magic with these, just trying to explore other causes...
_________________
Linux user off and on since circa 1995
Back to top
View user's profile Send private message
iker
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Sat Dec 07, 2002 2:41 am    Post subject: Reply with quote

Here is what I receive from PAM.
Session opened
Session closed!

Super....Sometimes it writes that it has problems with crwriter:
"getgrname failed for cdwriter"
I have no cdwriter user, may be I should add one. But i think this will has no link with my problem.
The global behaviour has been described in the first message i wrote, concerning what happens when I do a su, and what happen when I try to log on a console!!!!

Iker
Back to top
View user's profile Send private message
theBlackDragon
l33t
l33t


Joined: 23 Nov 2002
Posts: 768
Location: Belgium

PostPosted: Sat Dec 07, 2002 8:48 am    Post subject: Reply with quote

I don't know what causes you problem but I'll describe how I did it (just in case :) ).

Fist I made a home dir for my user.
I then added the user with the command:

Code:
adduser -G users, wheel -d /home/theblackdragon -s /bin/bash theblackdragon

I then used the chmod option of mc to change the ownership of my home dir.

I really hope you made some mistake in one of those steps, otherwise I fear you're in serious problems :?
Back to top
View user's profile Send private message
iker
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Sat Dec 07, 2002 3:41 pm    Post subject: Reply with quote

I am in serious trouble then.
I told you that I tried by hand and with the superadduser script.
The problem comes from something else!

Iker
PS:I tried with your command line and the rsult is the same:i can not log in!
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Sat Dec 07, 2002 5:10 pm    Post subject: Reply with quote

see who owns /home/iker
Back to top
View user's profile Send private message
spacemonkey
n00b
n00b


Joined: 05 Feb 2003
Posts: 34
Location: CA

PostPosted: Fri Feb 21, 2003 1:38 am    Post subject: Reply with quote

I have exactly the same problem! :(
_________________
Planet Starbucks
Back to top
View user's profile Send private message
BlackBart
Apprentice
Apprentice


Joined: 07 Oct 2002
Posts: 252

PostPosted: Fri Feb 21, 2003 1:50 am    Post subject: Reply with quote

iker wrote:
Here is what I receive from PAM.
Session opened
Session closed!

Super....Sometimes it writes that it has problems with crwriter:
"getgrname failed for cdwriter"
I have no cdwriter user, may be I should add one. But i think this will has no link with my problem.
The global behaviour has been described in the first message i wrote, concerning what happens when I do a su, and what happen when I try to log on a console!!!!

Iker

i get the cdrwriter error too but I can log in just fine. have you done "chown iker.users /home/iker"?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20054

PostPosted: Fri Feb 21, 2003 6:38 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
spacemonkey
n00b
n00b


Joined: 05 Feb 2003
Posts: 34
Location: CA

PostPosted: Fri Feb 21, 2003 7:45 pm    Post subject: Reply with quote

HA! look what i found!

Can't wait to get home and try this.. :D
_________________
Planet Starbucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum