Problem with su
Hello.
I have problem. I've installed Slackware 12.0 yesterday. It works fine exccept one thing. I have problem with su. I can login as root and user fine. But when I login as user I cannot use su. Code:
tom@metodej:/$ su Code:
cat securetty Thanks.. |
Quote:
|
Quote:
???Stupid question????? |
Quote:
Code:
su root |
If you decided to use wheel group by adding here you user name please read http://alien.slackbook.org/dokuwiki/...id=linux:admin.
|
Quote:
Code:
su root |
ctrl-alt-F1 for a terminal and make sure you can LOG IN as root. (not su)
Try changing the root password and then try su again. |
Show the output of
Code:
ls -l /bin/su Code:
$ ls -l /bin/su Also note that this is *not* the default permissions of /bin/su -- I have removed executable permissions from everyone but the root user and members of the wheel group. If that's what you're trying to do, then here's what you want: Code:
# chown root:wheel /bin/su |
This is a very interesting thread.
The wheel group and his power is normally belong to BSD (man su). Of course we can use wheel group in Slackware too, but it is not support by default: Code:
Why GNU su does not support the wheel group (by Richard Stallman) Code:
# Code:
SU_WHEEL_ONLY yes Code:
$ su But if we turn to pure BSD style and create the /etc/suauth file (without chown & chmod) Code:
# Code:
$ su @ OP I don't know what modifications did you do to your system, but this error message Code:
$ su |
Quote:
Thanks for url. It was helpfull. I forgot uncomment one line in /etc/sudoers. And that was the problem. Thanks for help to all.:) |
OK, well, I did something wrong, but I cannot for the life of me figure out what it is. This box is used only by me, but I wanted to screw around with the sudo stuff, so I followed all the advice here, and now I can't su, and only sudo certain commands, i.e. I cannot sudo vigr, but I can sudo vi /etc/group. Here is the output of the selected files:
Code:
keith@Unimatrix01:~$ ls -l /bin/su Code:
keith@Unimatrix01:~$ cat /etc/group Code:
keith@Unimatrix01:~$ sudo cat /etc/sudoers Code:
keith@Unimatrix01:~$ su |
Quote:
|
Ok, I think I got it figured out. It's working correctly, I just had to set up the aliases so that I could type
Code:
sudo pkgtool Code:
sudo /sbin/pkgtool |
Quote:
Code:
sudo vi /tmp/test Code:
chmod 4711 /bin/su Press Enter then you should be back in vi session for /tmp/test Code:
:q! It's a little less work than rebooting into single user mode Also raises the question of what commands you allow users to run via sudo... |
All times are GMT -5. The time now is 04:53 PM. |