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.
Well, I can figure out that it have been a bad idea, but, isn't any solution ??
I mean, any easy solution (not re-installing..) ??
Isn't anything I can try ? Changing groups attributes, ownerships ??
Can anybody imagine what had happened to my system?
I tend to agree with egag, but if you have anything on the disk that you really want, let's try to explore whether or not we can get you logged in to do so. Not sure if this will even be possible, but what's the harm in trying?
So, if I understand, you can't log in to the machine at all..right? If so, what, if any, are you using as your boot loader? We're going to try to use the basic command from the boot loader to reset some permissions and see if we can get you logged in. I have no idea if we can even change permissions from the boot loader command line, but let's try...
Assuming you're using a boot loader, when it gets to it we need to get into edit mode. In grub (which is the only one I"ve really used much, and therefore the only one I can use for this example) if you hit the "e" key, it will let you edit the boot commands and enter simple bash-like commands. So, if you can manage to get into the edit mode, try tightening up the permissions with something like this:
chmod -R 755 /boot
chmod -R 755 /proc
and maybe even
chmod -R 755 /usr
now try and boot the usual kernel and log in. Oh, and cross your fingers.
Now, if by some miracle this works, it's still a good idea to re-install, as your permissions are still going to be hopelessly screwed up and it'd take you days to manually restore all the proper ones to their correct state, plus you'd pretty much have to look at aonther system to see what each directory and file should be set to. Ugh!