Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange problem when adding new users - they can't login! :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Wed Mar 03, 2004 10:49 pm    Post subject: Strange problem when adding new users - they can't login! :( Reply with quote

Hi!

I have a serious strange problem. I have two working accounts (root and my self) on my system. I wanted to add a friend, but I when trying to login as this new user, strange things occur:

Code:

qbox root # useradd -m test
qbox root # su test
Cannot execute /bin/bash: Permission denied
qbox root # su - test
Unable to cd to "/home/test"
qbox root # ls -ld /home/test/
drwxr-xr-x    2 test     users        4096 Mar  3 23:46 /home/test/
qbox root # ls -l /bin/bash
-rwxr-xr-x    1 root     root       732484 Feb 23 08:11 /bin/bash
qbox root # groups test
users


Any ideas? :-/

Best,
KS.
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1002
Location: GMT-8 (Spokane)

PostPosted: Wed Mar 03, 2004 10:58 pm    Post subject: Reply with quote

just curious question...what groups is the user test apart of?
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Wed Mar 03, 2004 10:59 pm    Post subject: Reply with quote

Just the "users" group (as shown in the last two lines of the code ;)
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1002
Location: GMT-8 (Spokane)

PostPosted: Wed Mar 03, 2004 11:05 pm    Post subject: Reply with quote

doh...my bad for not seeing that.

have you yet run "passwd test" yet?
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
simulacrum
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2002
Posts: 128
Location: St Paul, MN

PostPosted: Thu Mar 04, 2004 4:12 am    Post subject: Reply with quote

It would be helpful to see the portion of your /etc/passwd for that user. My initial guess is the user doesn't have a shell as you didn't specify one in your useradd command. Try something like this:

useradd -m -s /bin/bash user
Back to top
View user's profile Send private message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Thu Mar 04, 2004 7:53 am    Post subject: Reply with quote

Yes, I have tried giving "test" a password. The result is however excatly the same! By default in Gentoo, users gives the bash shell.

Code:

# grep test /etc/passwd
test:x:1003:100::/home/test:/bin/bash

# grep test /etc/shadow
test:$1$OQtBVLkT$ZdT8MN8oxGratYwXZz1xJ/:12481:0:99999:7:::


I have just set my ACCEPT_KEYWORDS="~x86" in make.conf but unfortunately I have not added new users (except my personal account) before the upgrade.

I have never seen anything like this before! :-/
Back to top
View user's profile Send private message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Thu Mar 04, 2004 8:04 am    Post subject: Reply with quote

I have just tried with a couple of my friends, one running stable and one unstable. Both can add users like a charm.

I have not "tampered" with the passwd file - but well .. can it be that it corrupted with some special character?

Cheers!
Back to top
View user's profile Send private message
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 726

PostPosted: Thu Mar 04, 2004 10:26 am    Post subject: Reply with quote

Check your syslog for any weird error messages?
Should be /var/log/messages or /var/log/everything/current, depending on which logger you've installed.
Back to top
View user's profile Send private message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Thu Mar 04, 2004 11:32 am    Post subject: Reply with quote

Nothing weird there! The user is authenticated just as normal in the log ... Same if I try to ssh to localhost .. authentication ok says the log, but from the client side, the login fails - just as before.
Back to top
View user's profile Send private message
ks
n00b
n00b


Joined: 03 Feb 2003
Posts: 21
Location: Denmark

PostPosted: Fri May 07, 2004 4:54 pm    Post subject: Reinstall was the only thing that helped Reply with quote

Update:

I have now reinstalled the system (again :) .. and this time, I didn't modify the user-id's (making the first user 1001 instead of 1000)... and now everything works perfect.... It still bothers me though, that I never found out the excact reason.... :-/
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Fri May 07, 2004 5:07 pm    Post subject: Reply with quote

It looked to me like you had a permission on /bin/bash that kept the user from running it.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
dmitri
n00b
n00b


Joined: 17 Sep 2003
Posts: 20

PostPosted: Thu Jun 03, 2004 9:26 pm    Post subject: Reply with quote

Check your permissions on /

See this thread for more info.

https://forums.gentoo.org/viewtopic.php?p=1207156
_________________
Evil does not wear a BONNET!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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