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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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: Successful su for root by hari
Dec 26 15:26:48 debian su: + pts/5 hari:root
Dec 26 15:26:48 debian su: bad group ID `0' for user `root': Operation not
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.
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..