Results 1 to 9 of 9

Thread: Not able to run system as root

  1. #1
    Join Date
    Feb 2020
    Beans
    8

    Not able to run system as root

    Hi,

    I installed Xubuntu yesterday, i don't see a section here at these forums for this 'flavor', neither for other languages (Spanish, my case).

    Well i have realized now that i'm not able to do anything as # what step i'm missing here?:

    Code:
    kaos@kaos-pc:~$ su 
    Contraseña: 
    su: Fallo de autenticación
    kaos@kaos-pc:~$ su -
    Contraseña: 
    su: Fallo de autenticación
    kaos@kaos-pc:~$ sudo apt update
    [sudo] contraseña para kaos: 
    Obj:1 http://us.archive.ubuntu.com/ubuntu eoan InRelease
    Des:2 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]
    Obj:3 http://security.ubuntu.com/ubuntu eoan-security InRelease
    Des:4 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]
    Descargados 186 kB en 1s (223 kB/s)  
    Leyendo lista de paquetes... Hecho
    Creando árbol de dependencias       
    Leyendo la información de estado... Hecho
    Se pueden actualizar 3 paquetes. Ejecute «apt list --upgradable» para verlos.
    kaos@kaos-pc:~$
    Sorry for my questions and my poor english,

    Saludos
    Last edited by alfero; February 26th, 2020 at 09:00 PM.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,245
    Distro
    Ubuntu

    Re: Not able to run system as root

    You used sudo and it worked, so what's the issue?
    Ubuntu sets root as locked by default.
    See:https://help.ubuntu.com/community/RootSudo
    I installed Xubuntu yesterday, i don't see a section here at these forums for this 'flavor',
    Official flavors of Ubuntu are just as openly supported in the main forums as main Ubuntu is, so post away.

    neither for other languages (Spanish, my case).
    These forums are officially English, though we do have minor sub forums for loco communities and other languages here:
    https://ubuntuforums.org/forumdisplay.php?f=183
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jun 2019
    Location
    Dirndl-land
    Beans
    417
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: Not able to run system as root

    Ubuntu does not allow a user to operate as "root" or "su".

    Using "sudo" you can elevate the rights of single commands with your password, eg, "sudo apt upgrade".

  4. #4
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,234
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Not able to run system as root

    If you really want a root shell (rarely useful), you can use sudo -s. That has the same effect as su, but you have to provide your own password, not root's password.

  5. #5
    Join Date
    Feb 2020
    Beans
    8

    Re: Not able to run system as root

    Thank you very much!.

  6. #6
    Join Date
    Mar 2007
    Beans
    633

    Re: Not able to run system as root

    You can also run sudo -i which sets the home directory Usuallu /root) and shell in accordance with the password file for root.\
    This is the same thing that would happen if you logged in as root.
    It's useful sometimes if you need to strore scratch files.
    Last edited by rsteinmetz70112; February 27th, 2020 at 12:13 AM.

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    20,231
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Not able to run system as root

    Quote Originally Posted by rsteinmetz70112 View Post
    It's useful sometimes if you need to strore scratch files.
    A technique for that is to use tee with sudo.
    Code:
    $ egrep -i 'reject' /var/log/mail.log  | sudo tee /root/spammers
    Assuming I understand the goal.

  8. #8
    Join Date
    Mar 2007
    Beans
    633

    Re: Not able to run system as root

    When I'm doing a lot of administration or trouble shooting I sudo -i in a terminal window so I don't have to keep typing sudo. The fact I'm in /root (unless I change it) means I know where scratch files I make to store command output I may make go. Since I started fooling with *nix long before sudo existed I'm comfortable as root when I need to be. I often have several terminal windows open on my desktop doing things on different machines, some as sudo -i and others as my main user on that machine.

  9. #9
    Join Date
    Jul 2019
    Location
    Beauvais France
    Beans
    94
    Distro
    Ubuntu 19.04 Disco Dingo

    Re: Not able to run system as root

    As I am a great fan of Midnight Commander I often use
    sudo mc
    in a text console to avoid entering password too many times.
    It works with ssh login too.
    PS : On a local machine gpm allows using mouse in text mode.
    Happy user of Ubuntu-19.04 on a Beelink BT3pro mini PC

Bookmarks

Posting Permissions

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