LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   error "su: permission denied sorry." (https://www.linuxquestions.org/questions/linux-general-1/error-su-permission-denied-sorry-111535/)

jacksonscottsly 11-02-2003 01:36 PM

error "su: permission denied sorry."
 
alrightyaok ljklkjl;kjlkjlkjsdfdf

alrighty...I've been having problems using the su command on my laptop (running gentoo 1.4f). Everytime I su and return, it prompts for the password (which i type in properly) and then i get a silly little error message saying "permission denied. sorry." Now, i searched the forums and could come up with nothing, other than adding my username into the wheel group (at /etc/group, i believe) and changing permissions. Well, i tried changing permissions, no luck... tweaking got me nothing but the inability to even execute su, so i chmoded back to -x-rx-rx-r or something like that. I also tried adding my user to /etc/group. I changed the a line from "wheel::10:root" to "wheel::10:root,me (where me is my username)...which did SOMETHING...it changed my error from "permission denied. sorry." to "authentication failure. sorry." So, great...progress? I dunno. Regardless, keep in mind that I am not even doing this through a console program from some windowmanager (although, it does the same thing in eterm through enlightenment) I am using commandline straight up. Root login works fine. User login works fine. su just wont do it's job, though. please help me if possible, thanks.

Tinkster 11-02-2003 03:51 PM

What's the output of
Code:

ls -l `which su`
?

Cheers,
Tink

jacksonscottsly 11-02-2003 11:27 PM

Quote:

Originally posted by Tinkster
Code:

ls -l `which su`
?
output:
Code:

-r-wr-xr-x  1 root  root  24304  Oct 26  00:23  /bin/su
Does that help you/me?

Tinkster 11-02-2003 11:35 PM

It clarifies that belonging to group wheel
won't do anything for you...

Cheers,
Tink

core 11-03-2003 01:47 AM

Quote:

Originally posted by jacksonscottsly
output:
Code:

-r-wr-xr-x  1 root  root  24304  Oct 26  00:23  /bin/su
Does that help you/me?

well not you, not him, but me....

su needs the SUID bit set.. so you gotta chmod it correctly..


as root: chmod u+s /bin/su

should be solved then..


All times are GMT -5. The time now is 10:32 PM.