Find the answer to your Linux question:
Results 1 to 5 of 5
Well I made some edits recently to /etc/passwd and /etc/groups on my fedora. I think that's what screwed it up. So now I can login to root but not my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    Login problem!


    Well I made some edits recently to /etc/passwd and /etc/groups on my fedora. I think that's what screwed it up.

    So now I can login to root but not my user account,
    when I try to login to my user account I get this message :

    No Directory /home/gsubasin!
    Loggin in with home = "/".
    -bash: /home/gsubasin/.bash_profile: Permission denied
    -bash-3.1$

    I went into Root and started the GUI interface, where I went to System/Administration/Users and Groups which gave me the error
    "The user database cannot be read. THis problem is most likely cause by a mismatch between /etc/passwd and /etc/shadow or /etc/group and /etc/gshadow. The program will exit now"


    Someone please inform me on how to fix this.

  2. #2
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    run /usr/sbin/pwck as root

    oh and run /usr/sbin/grpck too maybe these will help you pinpoint which file
    is messed up.

    if your pwck and grpck isnt in those dirs then run this:

    `find / -name grpck -print`

    *no response is good*

    `find / -name pwck -print`

    *will say some logins dont have home directories*
    *watch for something significant*

    or try

    chown -R gsubasin /home/gsubasin

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19
    run /usr/sbin/pwck as root
    Message :
    user pcap: direcotyr /var/arpwatch does not exist
    user tester1: no group 504
    pwck : no change

    I deleted the user tester1, I am guessing this is what I need to do


    chown -R gsubasin /home/gsubasin
    Did this as well, Still having the same problem

    *I also noticed that during the boot proccess, the following message appears
    "mount: cannot mount block device /dev/Main/home read-only [FAILED]"

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Quote Originally Posted by geeshan
    *I also noticed that during the boot proccess, the following message appears
    "mount: cannot mount block device /dev/Main/home read-only [FAILED]"
    This must be your problem. With no access to /home you won't be able to log onto any users except for root (since root's home partition isn't in /home).

    Did you make any hardware changes recently? If not, I think you might have a failed hard drive.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19
    No hardware changes recently....there has to be a way to fix this!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •