LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   root account expired (https://www.linuxquestions.org/questions/linux-newbie-8/root-account-expired-423575/)

The helpless one 03-10-2006 01:56 PM

root account expired
 
I'm quite new to linux and I don't know what I did...

Whenever I try to boot up linux, it says that there are problems with the root file and kicks me into shell. When I type the command 'su' to try to login, it tells me that the root account has expired.

How can I reenable my root account?

btw, I'm using Red Hat 9

Thanks.

marozsas 03-10-2006 02:48 PM

Quote:

Whenever I try to boot up linux, it says that there are problems with the root file
Based on the above statement, I don't think there is a problem with the root account, but with the root file system.

You already is root in the above scenario. When some filesystem needs manual repair, you are left in a single user mode.

You need to fix any problems in the filesystems before linux can boot in normal multi-user mode again.

The disk repair program is "fsck". It needs a filesystem path as argument. Do you know what filesystem is damaged ? The command "fdisk -l" shows all partitions in your disks. Just in case, run fsck for each device in the first column which has Id=83 ! Attention: Run fsck only in partitions of type 83. Ignore any other.

If you can, post the output of "fdisk -l", just to be sure.

regards,

marozsas 03-10-2006 02:51 PM

PS: Add the output of "cat /etc/fstab" and "mount". This is all info we need.

The helpless one 03-10-2006 03:15 PM

omg, I can't thank you enough

Just keep reading this ==> Thanks for your help man!

marozsas 03-11-2006 01:27 PM

You are Welcome !


All times are GMT -5. The time now is 05:53 AM.