DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"...?
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.
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:
siawacsh@debian:~$ su
Password:
setgid: Operation not permitted
siawacsh@debian:~$ sudo fdisk -l
sudo: must be setuid root
siawacsh@debian:~$
I booted into a live cd and booted straight into terminal. Then I mounted my /dev/sdb2 /mnt
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.
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:
Originally Posted by AlucardZero
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 ...).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.