Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
the last filed of /etc/passwd file is the login_shell; how if I replace it to /usr/bin/date what would it happen. by the way I try to use $ su but ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    16

    [SOLVED] about /etc/passwd

    the last filed of /etc/passwd file is the login_shell;
    how if I replace it to /usr/bin/date
    what would it happen.
    by the way
    I try to use $ su
    but do't know the password.
    what s the default root passworf for ubuntu

  2. #2
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    718
    use this to set the root password:

    Code:
    sudo passwd root

  3. #3
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    In Ubuntu use

    sudo command

    and give your password
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Quote Originally Posted by ionguang View Post
    what s the default root password for ubuntu
    Typically, the default root password would be the same as the password for the first account that you setup on the machine.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Jun 2010
    Posts
    16
    yea
    I have tried that. type my first account password, and blank password.
    didn't work.
    and I tried to change my login shell by chsh and attempt to change to /usr/bin/date
    it didn't allow.

    thx for replaying.

    Could anyone just tell me what would happend when the last filed of /etc/passwd
    is /usr/bin/date

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Typically, I would advise against editing /etc/passwd by hand.
    What is it that you're trying to accomplish?
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  7. #7
    Just Joined!
    Join Date
    Jun 2010
    Posts
    16
    yea i have tried that .
    It didn't allow me to do that, if i change anything .i will unable to save it.
    what would happend when the last filed of /etc/passwd
    is /usr/bin/date
    this is what i want.
    thx

  8. #8
    Just Joined! REVEREND_FLIBBLE's Avatar
    Join Date
    Jun 2007
    Posts
    26
    Code:
    sudo su
    will get you into root
    from there you can use passwd to set a password so you can just use
    Code:
    su
    from then on

  9. #9
    Just Joined!
    Join Date
    Jun 2010
    Posts
    16
    thx
    sudo su
    works.
    but when I change the last filed of /etc/passwd
    seems nothing change. is that right?
    I guess should be somewhere difference.

  10. #10
    Just Joined!
    Join Date
    Jun 2010
    Posts
    16
    damn.
    I use sudo su
    and chsh
    then i change to /usr/bin/date
    and exit the terminal
    then i open the terminal again
    and try chsh ,did't allow
    and sudo su
    it appears
    Cannot execute /usr/bin/date: No such file or directory

Page 1 of 2 1 2 LastLast

Posting Permissions

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