View previous topic :: View next topic |
Author |
Message |
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Thu Aug 29, 2002 8:59 pm Post subject: Can't login as a normal user |
|
|
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 |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Thu Aug 29, 2002 9:15 pm Post subject: |
|
|
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 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 |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Thu Aug 29, 2002 9:35 pm Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 29, 2002 11:00 pm Post subject: |
|
|
What entry is in /etc/shadow for ale? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Fri Aug 30, 2002 4:59 am Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Aug 30, 2002 5:03 am Post subject: |
|
|
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 |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Fri Aug 30, 2002 1:29 pm Post subject: |
|
|
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 |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Fri Aug 30, 2002 6:38 pm Post subject: |
|
|
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 |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Fri Aug 30, 2002 8:12 pm Post subject: |
|
|
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 |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Fri Aug 30, 2002 11:06 pm Post subject: |
|
|
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 |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Fri Aug 30, 2002 11:14 pm Post subject: |
|
|
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 |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Fri Aug 30, 2002 11:34 pm Post subject: |
|
|
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 |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Sat Aug 31, 2002 2:36 am Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sat Aug 31, 2002 2:59 am Post subject: |
|
|
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 |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Sat Aug 31, 2002 3:03 am Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Aug 31, 2002 3:05 am Post subject: |
|
|
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 |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Sat Aug 31, 2002 3:14 am Post subject: |
|
|
Could be I guess. |
|
Back to top |
|
|
ciclic0 n00b
Joined: 29 Aug 2002 Posts: 44
|
Posted: Sat Aug 31, 2002 5:40 am Post subject: |
|
|
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 |
|
|
|