View previous topic :: View next topic |
Author |
Message |
bart n00b
Joined: 13 Apr 2002 Posts: 60
|
Posted: Thu May 09, 2002 10:59 pm Post subject: as root 'su nobody': permission denied |
|
|
There is something I don't understand on my Gentoo-experimentaion-box.
I modified the /etc/passwd and changed the shell for user 'nobody' to '/bin/bash'.
Than, as root, I do: 'su nobody'. What I expect is to go further as 'nobody'. But I get a 'Cannot execute /bin/bash: Permission denied'
A 'ls -la /bin/bash' says tha the permissions of /bin/bash are 755. So, what's wrong? |
|
Back to top |
|
|
Mr. Atoz Tux's lil' helper
Joined: 06 May 2002 Posts: 84 Location: Colorado
|
Posted: Thu May 09, 2002 11:11 pm Post subject: Re: as root 'su nobody': permission denied |
|
|
bart wrote: | There is something I don't understand on my Gentoo-experimentaion-box.
I modified the /etc/passwd and changed the shell for user 'nobody' to '/bin/bash'.
Than, as root, I do: 'su nobody'. What I expect is to go further as 'nobody'. But I get a 'Cannot execute /bin/bash: Permission denied'
A 'ls -la /bin/bash' says tha the permissions of /bin/bash are 755. So, what's wrong? |
I thin think the user nobodyhas no password by default. As root, you might try a passwd nobody to set the password. _________________ ---Atoz |
|
Back to top |
|
|
bart n00b
Joined: 13 Apr 2002 Posts: 60
|
Posted: Fri May 10, 2002 4:22 pm Post subject: |
|
|
Nope. Problem allready found: I trashed my PAM configuration, resulting in an not working 'su'. After reinstalling some things everything is working fine. |
|
Back to top |
|
|
chemical n00b
Joined: 10 Apr 2002 Posts: 29 Location: San Diego, CA
|
Posted: Sat May 11, 2002 5:06 pm Post subject: Re: as root 'su nobody': permission denied |
|
|
Mr. Atoz wrote: |
I thin think the user nobodyhas no password by default. As root, you might try a passwd nobody to set the password. |
For future refernance. Not setting a password for a user does not effect that ability to `su` to that user. It only prevents you from logging into the system wiht that user. |
|
Back to top |
|
|
|