UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: Which of the following uses of sudo do you prefer to gain root?
I use either sudo su or sudo su -, depending on whether I am feeling lazy and pampered and want to have my own environment or I want to use a correct and complete root environment. For the most part I just use sudo <progname> to avoid messing up a system by being root and forgetting what I am doing.
I use sudo -s and sudo -i depending on my needs...
Typing sudo -s , I gain root user without affecting my current working directory while typing sudo -i brings me instantly to /root directory.
Therefore, typing
ionrivera@it-024138:~/Documents/myscripts$ sudo -i vim test.txt
Will not result to see test.txt file on $HOME/Documents/myscript
but on /root/test.txt
I don't like sudo. I would rather have an actual root password and use the root account directly.
I agree. This is why I avoid the *buntus.
BUT, if you are going to use a *buntu, then you should use it the *buntu way -- no sudo su. If you can't, then do as I do & don't use them at all. JMNRHO.
BUT, if you are going to use a *buntu, then you should use it the *buntu way -- no sudo su. If you can't, then do as I do & don't use them at all. JMNRHO.
No root account and you can't enter single user mode without rebooting... two obvious problems with Ubuntu.
Whenever I need to do something that requires root (sudo) privileges, i just use plain old sudo.
I have never (and I have been using Ubuntu since the inaugural version of 4.10) found the need to use anything else, or to enable the root account (which is not recommended in Ubuntu). There is never any real need for sudo this or sudo that or sudo whatever!
I never, and I mean never, have any problems with Ubuntu either. Perhaps this is because I follow what the Ubuntu developers recommend!
I find the lack of a root account on Ubuntu to be refreshing. Anyone who actually signs on with the root account should have the most secure box in the world, and they better know what they are doing.
Using sudo to assign temporary root privileges is much safer in all regards. Never had a problem with it, and one of the reasons I choose Ubuntu.
When I'm doing things from the console, it really annoys me to not be able to "su -" to root. If I have several things to do at once, I don't want to put my password in over and over again, and I set timestamp_timeout=0 in sudoers. Besides, if you're careful and think about what you're doing, there's no reason to worry about being root using the console.
Besides, if you're careful and think about what you're doing, there's no reason to worry about being root using the console.
You're talkin' to the world's biggest cyber-klutz here.
I think as the Linux user base grows, we will be seeing more and more people who simply don't know a lot about how Linux works. sudo is a safety measure.
For what it's worth, I actually prefer the way other distros use a separate root account instead of using sudo. However, Ubuntu uses sudo, and recommends that the root account not be enabled and used. I am fine with that though.
For every distro that I use I follow what the developers of that distro recommend. If I strongly objected to using sudo, I would simply not use Ubuntu. If I strongly objected to using a distro that has a package manager that has no dependency management, I would not use Slackware. Linux is about choice and freedom. There is a distro to match everyone's preferences.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.