LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /bin/su (https://www.linuxquestions.org/questions/linux-newbie-8/bin-su-176933/)

ziox 05-02-2004 08:54 AM

/bin/su
 
Hello ..
after upgradeing from kde(RedHat~9) to kde(fedora)
/bin/su wont work correctly when switching from a
user to the root...
so i #chmod 0641 /bin/su it worked just the first step
but wont accept the password at all (i'm writeing it correct)
anyOne has an idea???..
thanks
i changed to 0641 because it keeps saying permission denied when i'm trying su - ..So when i changed it giveing the user X permission it execute the program but keep saying password incorrect i also changed the proG
to 0755 before i post the question ..the same


:Pengy:

blueser 05-02-2004 09:58 AM

This is very odd, you shouldn't need to change /bin/su permissions. Also, 0641 is wrong, you are setting permissions to:

rw-r----x

This would basically turn any file 'unexecutable' (owner can read/write, group can read and olny others can execute -- but not read, which ends up turning executable flag useless).

The right permissions should be 4755:

~ ls -l /bin/su
-rwsr-xr-x 1 root root 95957 Mar 3 12:47 /bin/su*

Please note the extra '4': it means you're turning set user ID on.

HTH


All times are GMT -5. The time now is 05:21 PM.