Results 1 to 5 of 5

Thread: Sudo Su

  1. #1
    Join Date
    Sep 2023
    Location
    Indonesia, West Java
    Beans
    39
    Distro
    Kubuntu

    Sudo Su

    Isnt any other way to automatically enable sudo su?

    everytime i open terminal, and i want to become root user.
    i must putting password everytime.

    is there a way to automacially become a root user, everytime i open terminal?

    -------------------------------------------------------------------------------------------------------------------------------------


    and for second question, i once create a few threads before 2024. does it will get delete automatically?
    because i can't find it on my profile.

  2. #2
    Join Date
    Feb 2024
    Beans
    28

    Re: Sudo Su

    see this post
    it's a really bad idea btw

  3. #3
    Join Date
    Sep 2023
    Location
    Indonesia, West Java
    Beans
    39
    Distro
    Kubuntu

    Re: Sudo Su

    ah i see, thanks for answering.

  4. #4
    Join Date
    May 2010
    Beans
    3,240

    Re: Sudo Su

    Running absolutely everything as root isn't wise. If you prefix with sudo and type your password you will get a grace period and you can use sudo for a while without having to re-enter your password you'll probably be OK. Not everything needs root

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sudo Su

    Quote Originally Posted by rifqilubis View Post
    Isnt any other way to automatically enable sudo su?

    everytime i open terminal, and i want to become root user.
    i must putting password everytime.
    You can use the intended method of sudo -i or sudo -s. That won't remove the need to enter a password. Almost anything can be scripted. Also, sudo has settings that could be used. The sudoers manpage explains and even has examples.

    Quote Originally Posted by rifqilubis View Post
    is there a way to automacially become a root user, everytime i open terminal?
    Yes, almost anything can be scripted. But running as root is a bad idea. Ubuntu isn't designed to be used in that manner, especially on a desktop install. If you have to ask how, you definitely shouldn't. Running all commands as root is asking to trash your system. OTOH, it is your system, so go ahead and do it. Be prepared to reinstall multiple times and make excellent backups.

    You've been warned.

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
  •