View previous topic :: View next topic |
Author |
Message |
iker n00b
Joined: 06 Dec 2002 Posts: 5
|
Posted: Fri Dec 06, 2002 4:16 am Post subject: Can not log with a user different from root! |
|
|
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 |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Fri Dec 06, 2002 5:02 am Post subject: |
|
|
mkdir /home/iker,its a good thing to chmod it
edit /etc/passwd, add /bin/bash in the iker's column |
|
Back to top |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Fri Dec 06, 2002 5:02 am Post subject: |
|
|
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 |
|
|
iker n00b
Joined: 06 Dec 2002 Posts: 5
|
Posted: Fri Dec 06, 2002 2:21 pm Post subject: |
|
|
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 |
|
|
theBlackDragon l33t
Joined: 23 Nov 2002 Posts: 768 Location: Belgium
|
Posted: Fri Dec 06, 2002 4:25 pm Post subject: |
|
|
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. ) |
|
Back to top |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Fri Dec 06, 2002 5:31 pm Post subject: |
|
|
try emerge superadduser
after u use it u see the whole process of adding a user |
|
Back to top |
|
|
iker n00b
Joined: 06 Dec 2002 Posts: 5
|
Posted: Fri Dec 06, 2002 6:02 pm Post subject: |
|
|
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?
|
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri Dec 06, 2002 9:19 pm Post subject: |
|
|
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 |
|
|
mooman Apprentice
Joined: 06 Nov 2002 Posts: 175 Location: Vancouver, WA
|
Posted: Fri Dec 06, 2002 9:25 pm Post subject: |
|
|
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 |
|
|
iker n00b
Joined: 06 Dec 2002 Posts: 5
|
Posted: Sat Dec 07, 2002 2:41 am Post subject: |
|
|
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 |
|
|
theBlackDragon l33t
Joined: 23 Nov 2002 Posts: 768 Location: Belgium
|
Posted: Sat Dec 07, 2002 8:48 am Post subject: |
|
|
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 |
|
|
iker n00b
Joined: 06 Dec 2002 Posts: 5
|
Posted: Sat Dec 07, 2002 3:41 pm Post subject: |
|
|
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 |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Sat Dec 07, 2002 5:10 pm Post subject: |
|
|
see who owns /home/iker |
|
Back to top |
|
|
spacemonkey n00b
Joined: 05 Feb 2003 Posts: 34 Location: CA
|
Posted: Fri Feb 21, 2003 1:38 am Post subject: |
|
|
I have exactly the same problem! _________________ Planet Starbucks |
|
Back to top |
|
|
BlackBart Apprentice
Joined: 07 Oct 2002 Posts: 252
|
Posted: Fri Feb 21, 2003 1:50 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20054
|
Posted: Fri Feb 21, 2003 6:38 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
spacemonkey n00b
Joined: 05 Feb 2003 Posts: 34 Location: CA
|
Posted: Fri Feb 21, 2003 7:45 pm Post subject: |
|
|
HA! look what i found!
Can't wait to get home and try this.. _________________ Planet Starbucks |
|
Back to top |
|
|
|