Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
as root 'su nobody': permission denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
bart
n00b
n00b


Joined: 13 Apr 2002
Posts: 60

PostPosted: Thu May 09, 2002 10:59 pm    Post subject: as root 'su nobody': permission denied Reply with quote

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
View user's profile Send private message
Mr. Atoz
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2002
Posts: 84
Location: Colorado

PostPosted: Thu May 09, 2002 11:11 pm    Post subject: Re: as root 'su nobody': permission denied Reply with quote

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
View user's profile Send private message
bart
n00b
n00b


Joined: 13 Apr 2002
Posts: 60

PostPosted: Fri May 10, 2002 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
chemical
n00b
n00b


Joined: 10 Apr 2002
Posts: 29
Location: San Diego, CA

PostPosted: Sat May 11, 2002 5:06 pm    Post subject: Re: as root 'su nobody': permission denied Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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