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.
My gnome got crashed. Now i am using kde. Some of the file permissions have automatically changed. I need to fix them. For that i need to login as root. My kde working well with no problems except the root login part.
I am using Centos 5, KDE desktop
Linux <hostname> 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:36:49 EST 2008 i686 i686 i386 GNU/Linux
Reinstalling isn't a problem for me. I have all the data i need as backup. Only thing is, this gnome crash happend on my other machine also. I just want to reinstall gnome only. If my root login works fine, i would like to stay in kde only.
If you cannot login as root, then the best thing to do, in my opinion, is to use a rescue CD or LiveCD. If you already have a LiveCD laying around, that will probably work fine. Otherwise, a good, yet small, rescue CD that looks pretty promising is found at http://www.sysresccd.org/Main_Page
Download and burn this to a CD if that is possible, then boot from it. Once you are booted, you can mount your root partition by simply making a temporary folder (mkdir [FOLDER_NAME]) then mounting the partition root (/) is stored on ("mount /dev/hda1 /mnt/root", for example, replacing "hda1" with your root partition and "/mnt/root" with the folder you created).
Typical rescue CDs will boot automatically as root, while LiveCDs might not, though LiveCDs will usually let you run "sudo su" to switch to root.
Okay, once you have your root partition mounted, all you have to do is issue the command to change the permissions of /bin/su, which will look something like this:
#chmod 4755 /mnt/root/bin/su
Once done, all you have to do is reboot and give it a try...I think it will work after that, though.
I tried the rescue mode and it worked fine in a terminal. I was able to run the su command. But then, when I rebooted my kde also get crashed. My user account was also deleted. May be i made some mistake during rescue mode. I had no other choice except to reinstall the OS.