user accounts
Hi, I am noticing when I try to use sudo or even log in as root I am getting the following;
Code:
|
You have (or something has) blown away the permissions on (at least) sudo and su. Both must be setuid root, with permissions -rwsr-xr-x or 4755 in octal. You'll have to boot from a LiveCD and change the permissions, if you don't have a root terminal up already.
|
Yes, I forgot to mention I was studying and messing around with a LPI tutorial on chgrp, chown, umask and the like. I created a bunch of files and couple of directories in my home and played around changing group ownership. I think what might have done it was changing a text file's group ownership to audio. Just a guess.
Anyway, one things I still have not understood about Debian is the fact that I cannot go into gnome as root. Neither have I been able to get hold of a live CD. All my Debian CD/DVD's have been install but would't boot live. Unless you meant to boot into any Debian derivative in which case I have a few including sidux, and a less known distro called DreamLinux. Assuming I managed to get into a root terminal are saying I grep for su and sudo and change their permissions? Can you elaborate about what you mean I should do with "setuid"...? Many thanks in advance |
Here the files I was playing with in my home directory. I would appreciate it if you could walk me through what has to be done.
Code:
|
Here is my fstab. At the moment /sdc1 which is my external ide/usb drive is not mounting any more. Sometimes the internal cdrom drive wont eject and when I try to do it manually i get an error saying drive is not mounting. A reboot solves it though.
Code:
|
You need to check the permissions of the sudo and su programs.
ls -l /usr/bin/sudo /bin/su -rwsr-xr-x 1 root root 35904 2009-10-23 23:41 /bin/su -rwsr-xr-x 1 root root 190248 2009-10-19 14:36 /usr/bin/sudo You may need to boot into single user mode to fix it. First try logging in as root in one of the virtual terminals. It is normal to not allow root logins in X. You should never do that. You must have done more then change permissions in an xyz/ directory. |
Boot from any live CD, it doesn't have to be Debian. Mount your local disk. Change the permissions with chmod to 4755 on su and sudo on the mounted disk.
Next time be more careful with chmod (do not lightly run chmod -R 777 ...). |
I did exactly as AlucardZero instructions but still getting the following;
Code:
Then chmod 4755 /bin/su* and chmod 4755 /usr/bin/sudo I now remember another thing that I did which might have caused this. I did chown -R cowon cowon being a local directory listed in fstab at the time of issuing command my usb music player was connected it was taking a long time going through all the files. I decided to stop the command with Control-C then disconnected the drive. |
I said /mnt/bin/su* .
chown root /mnt/bin/su /mnt/usr/bin/sudo chmod 4755 /mnt/bin/su /mnt/usr/bin/sudo |
super user problem
Thanks for spelling the solution out for me. It worked a treat. Thank you to all you wonderful experts. I wish there was a way I could return the favor. Your certainly most welcome to Dublin.
As to your warning about chmod, I am learning on a blank system. All my personal data is on an external drive, so as long as I keep away from that the rest of the system can get rebuilt without too much agony. Quote:
|
All times are GMT -5. The time now is 07:37 AM. |