Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hey..
I was so foolish to do this... My friend gave me his hard disk to partition it.. I did that and plugged it into ma system for copying some files...
After mounting a drive, I tried changing the permissions of that drive using "chmod 777 -R /media/1 " ( that drive mounted at /media/1)
But seeing it was taking a long time, I exited the console and shut down the system..
Now, I am not able to 'su'... it gives the setgid error..
I cant login as root...
I checked the content of /var/log/auth.log
It says at one point ,
Dec 26 15:26:48 debian su[2946]: Successful su for root by hari
Dec 26 15:26:48 debian su[2946]: + pts/5 hari:root
Dec 26 15:26:48 debian su[2946]: bad group ID `0' for user `root': Operation not
permitted
Dude, before mounting the HDD, were you root? I mean, did you mount the HDD as root? The permissions would have been st accordingly. How many files did the HDD have? When you use <chmod> on a directory or on an entire drive, it takes some time. Again, this depends on the number of files that are on your HDD. You should not have stopped the process. Anyway, this is not a matter of concern. BTW, I thing you were trying to do some operation which is not permitted for users other than root.
One more thing, you cannot login as root on Debian, as it does not allow it. But this can be overcome by logging in via the terminal by removing the temporary file "/tmp/.X0-lock" - something like that. You can also do this: Goto Desktop->Administration->Users and Groups and then change the permissions for users regarding the mounting etc.
I don't quite get it... so you mounted it and copied some files to the drive, so you already had access. Why did you need to chmod it?
Did you copy with root? If you do that you should use cp -p to preserve ownership.
Also, you can interrupt a process by pressing ctrl-c in the console... no need to shut down.
Hey....
I did something and got ma 'su' back.. but some problems are persisting..
What I did is.. I used the debian rescue disk.. rescue mode... then typed 'su'.. became root..
Then i did 'chown root:root /usr/bin/sudo'
then.. 'chmod 4755 /usr/bin/sudo'
then.. 'chmod 4755 /bin/su'
i dono anything abt chown.. i copy-pasted it from some blog...
Then.. I booted back to Debian... now I can use 'SU'..
But still I cannot Login as root either from KDM or from console...
it says login:root
login incorrect
????????
and I am not able to mount CDROM drive in NORMAL USER MODE... If i run konqueror as superuser.. then I can mount it...
I was not able to copy after mounting as normal user.. then used chmod using 'su'.. there was a big folder already on the drive which i copied using windows xp( me using dual boot).. so got tired of chmod and did tht foolishnes...
Anyway.. after that I formatted that partition.. its permissions are hence not a concern for me..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.