Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't login as a normal user
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
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Thu Aug 29, 2002 8:59 pm    Post subject: Can't login as a normal user Reply with quote

I Recently created a user named ale with the script superadd. The process went fine, but when i try to log in with this user this is what i get:

login: ale
Password:
login(pam_unix)[12029]: session opened for user ale by (uid=0)
No directory /home/ale!
login(pam_unix)[12029]: session closed for user ale

So I try a different thing
Code:

bash-2.05a# su ale
Cannot execute /bin/bash: Permission denied


I check my group file
Code:

bash-2.05a# cat /etc/group | grep ale
wheel::10:root,ale
audio::18:ale
users::100:games,ale


and passwd file

Code:

bash-2.05a# cat /etc/passwd | grep ale
ale:x:1001:100:,,,:/home/ale:/bin/bash


but looks fine to me

I also check the permissions

Code:

bash-2.05a# ls -ld /home/ale
drwx--x--x    2 ale      users        4096 Aug 29 14:23 /home/ale

bash-2.05a# ls -l /bin/bash
-rwxr-xr-x    1 root     root       588340 Aug 29 12:30 /bin/bash

bash-2.05a# ls -l /etc/group /etc/passwd           
-rw-r--r--    1 root     root          644 Aug 29 16:55 /etc/group
-rw-r--r--    1 root     root         1493 Aug 29 16:52 /etc/passwd



and looks fine too.

I don't know what else to do. Any suggestion is welcome
Thanks in advance
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Aug 29, 2002 9:15 pm    Post subject: Reply with quote

I'm not sure how you made your password, but no utility I found to make a new user could properly specify a password--the only thing I could get to work is use the command
Code:
passwd 'user'
after creating the user while logged in as root. I don't think this is your whole problem though because I am certain that I was unable to log in as my user before doing this. Very curious errors!!

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Thu Aug 29, 2002 9:35 pm    Post subject: Reply with quote

Quote:

I'm not sure how you made your password, but no utility I found to make a new user could properly specify a password--the only thing I could get to work is use the command
Code:
passwd 'user'
after creating the user while logged in as root. I don't think this is your whole problem though because I am certain that I was unable to log in as my user before doing this. Very curious errors!!

Regards,
BonezTheGoon


The command passwd that you mention for password creation is actually the one used by the superadduser script. Thanks anyway
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Aug 29, 2002 11:00 pm    Post subject: Reply with quote

What entry is in /etc/shadow for ale?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Fri Aug 30, 2002 4:59 am    Post subject: Reply with quote

This is the entry in the shadow file for the user ale

ale::11928:0:99999:7:::

the encoded password was removed intentionally
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Aug 30, 2002 5:03 am    Post subject: Reply with quote

Is there anything unusual compiled into your kernel vis a vis security, such as grsecurity, ACLs, or anything else? Is /home on a separate partition? Do other users have this problem? Do only users created with superadduser have this problem?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Fri Aug 30, 2002 1:29 pm    Post subject: Reply with quote

The kernel is compiled with no security or unusual options.
The /home is in the same partition of the entire system.
No other users can login, no matter if is was created with the adduser command or the superadduser script.

Thanks for your attention.
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Fri Aug 30, 2002 6:38 pm    Post subject: Reply with quote

You know, this is going to be an odd request, but try to make a user manually to see if it works.

mkdir /home/test
vi /etc/passwd and add a user in with the syntax of the others
vi /etc/group and pop in your user to the users group
chown test:users /home/test
passwd test

that's pretty much all there is to making a user...
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Fri Aug 30, 2002 8:12 pm    Post subject: Reply with quote

ciclic0 wrote:
login: ale
Password:
login(pam_unix)[12029]: session opened for user ale by (uid=0)
No directory /home/ale!
login(pam_unix)[12029]: session closed for user ale


I dont understand how come your user ale can have uid=0 i think only root can have that uid
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Fri Aug 30, 2002 11:06 pm    Post subject: Reply with quote

arkane wrote:
You know, this is going to be an odd request, but try to make a user manually to see if it works.

mkdir /home/test
vi /etc/passwd and add a user in with the syntax of the others
vi /etc/group and pop in your user to the users group
chown test:users /home/test
passwd test

that's pretty much all there is to making a user...


when I try to passwd test i get:

Code:

bash-2.05a# passwd test
passwd: Authentication token manipulation error


something is wrong with my system because this the entry for test ans it's fine

test:x:1002:100::/home/test:/bin/bash

and i added the user to the users group and the dir was created with the right permissions
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Fri Aug 30, 2002 11:14 pm    Post subject: Reply with quote

vers_iq wrote:
I dont understand how come your user ale can have uid=0 i think only root can have that uid


I am doing the same question to me
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Fri Aug 30, 2002 11:34 pm    Post subject: Reply with quote

If I didn't know any better, I'd swear your systems been trojaned :)

If it were me, I'd be rebuilding the system. I wouldn't trust it.
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sat Aug 31, 2002 2:36 am    Post subject: Reply with quote

arkane wrote:
If I didn't know any better, I'd swear your systems been trojaned :)

If it were me, I'd be rebuilding the system. I wouldn't trust it.


I have that feeling too, or maybe the system has been compromised.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Aug 31, 2002 2:59 am    Post subject: Reply with quote

Try emerging pam again. I have seen at least one another reported case in the forum when this fixed a login problem.
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sat Aug 31, 2002 3:03 am    Post subject: Reply with quote

The part that is most bugging me is that pam is reporting the uid of 0, as vers_iq was saying.

But, guess it couldn't hurt :)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 31, 2002 3:05 am    Post subject: Reply with quote

arkane wrote:
The part that is most bugging me is that pam is reporting the uid of 0, as vers_iq was saying.

Couldn't that just be because /bin/login is running as root?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sat Aug 31, 2002 3:14 am    Post subject: Reply with quote

Could be I guess.
Back to top
View user's profile Send private message
ciclic0
n00b
n00b


Joined: 29 Aug 2002
Posts: 44

PostPosted: Sat Aug 31, 2002 5:40 am    Post subject: Reply with quote

Naan Yaar wrote:
Try emerging pam again. I have seen at least one another reported case in the forum when this fixed a login problem.


I already did that. In fact I did an emerge system.
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