Results 1 to 3 of 3

Thread: Lost password to su command

  1. #1
    Join Date
    Jan 2013

    Lost password to su command

    I install Ubuntu 12 in my desktop PC. I did not set up account password. There is no login asking me each time turn on the computer. But there is a password every time I run to su in a terminal. I remember that yesterday I can enter my long time using password for su command.

    Today I cannot enter su in the terminal. It is not like I misremember the password. I have tried to recover account password after entering the recover mode. I run
    ls /home
    command in a terminal. There is no account info echoed.

    Now, I have no idea what my su password is, or how to reset that password.

    It is really bizarre to me. I do not thing I use other password in this Ubuntu PC.

    Could you help me to enter su?

    Thanks a lot.

  2. #2
    Join Date
    Jan 2005
    South Africa
    Ubuntu 12.04 Precise Pangolin

    Re: Lost password to su command

    su will prompt your for the root password (if no username is specified); in ubuntu (and a number of other distros), the root account as such is disabled so you can't log in as root. You need to use sudo (e.g. sudo -i)and provide your normal user password.
    If you don't make backups of your important data, your data is obviously not important to you.

  3. #3
    Join Date
    Jun 2010
    London, England
    Ubuntu Development Release

    Re: Lost password to su command

    When we install Ubuntu we are required to give a user name and password. We are also given the option to log in to Ubuntu automatically. If we choose that option Ubuntu will load straight to the desktop. We will not get a log in screen.

    But that user name and password will still be important. We will be using Ubuntu as a standard user. When we try to do anything that requires administrator privileges then we will be asked to authenticate. That is when we enter the password.

    We do not use su in Ubuntu. If a command requires administrator privileges then we prefix the command with sudo and we are asked to enter our password. The administator privileges expire when the task is complete or few minutes have passed by.

    This explains the use of sudo in Ubuntu

    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530

Tags for this Thread


Posting Permissions

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