Find the answer to your Linux question:
Results 1 to 2 of 2
i am learning linux from my friend. with that he made a boot issue.with that the error msg is no login shell & permission denied .. in single user mode ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4

    Exclamation unable to login


    i am learning linux from my friend. with that he made a boot issue.with that the error msg is no login shell & permission denied..
    in single user mode i tried these following steps..
    passwd
    new pass abc
    retype pass abc
    login
    root
    abc
    again the same no login shell & permission denied error i got
    then i gave
    chmod 777 /etc/passwd
    /group
    /shadow

    chage -I never root
    chage -E never root

    then checked to passwd file first line it
    root:0:0:root:/root:/bin/bash

    then when i gave chattr -i /etc/passwd

    it shows an permisssion denied error

    at last i deleted root acc by deleting first line have root entry in /etc/passwd, /group , /shadow & created new account named root & setted passwd then
    pwconv
    &
    chmod 777 to /etc/passwd , /group , /shadow file
    this time also it shows permission denied error with chattr command

    & same login error
    can some one help me ...............

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    At this point, I'd personally recommend a fresh install. You shouldn't have to change permissions on files simply to login on a properly installed system.

    In the future, if you want to reset root or user passwords, you can use this HowTo for doing so.

    Hope it works out well for you.
    oz

Posting Permissions

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