SlackwareThis Forum is for the discussion of Slackware 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.
I just usually fire up a terminal prompt and su to root. That works for me:-)
Works for single-user machine when you're not worried about security (read: you don't have anything valuable on your machine and couldn't care less if it was trashed or used in acts of crime without asking your permission). In any other case it's strongly recommended not to use 'su' in daily usage..use 'sudo' instead, and use your brains when configuring it (so you don't accidentally let everybody have a root login shell without password-asking trough sudo).
Best configuration is probably to disable root account completely and do admin tasks using well configured sudo. Restrict everything, permit as little as possible so that things still work; a lot better than allowing everything and restricting a few funny things.
Works for single-user machine when you're not worried about security (read: you don't have anything valuable on your machine and couldn't care less if it was trashed or used in acts of crime without asking your permission). In any other case it's strongly recommended not to use 'su' in daily usage..use 'sudo' instead, and use your brains when configuring it (so you don't accidentally let everybody have a root login shell without password-asking trough sudo).
Best configuration is probably to disable root account completely and do admin tasks using well configured sudo. Restrict everything, permit as little as possible so that things still work; a lot better than allowing everything and restricting a few funny things.
Thanks for the reply:-)
When you say that my box could get trashed are you speaking about it getting hacked over the Internet?
My box is reasonably secure behind a router, I run it as a regular user. My unit is not a server and ssh and other services are disabled. I scan my unit for hacking attempts on a semi-regular basis. Given that my unit is only used by me in my home do you think that using su poses a real threat for my desktop?
b0uncer, I must disagree with you. I think using "su" is perfectly safe if you want to perform administrative tasks (ie installing programs etc.) without actually signing in as root (which is even more dangerous). In fact, I think setting up sudo aliases that grant permission to install programs using only your USER password is MORE dangerous than using "su" to act as root. With all these sudo aliases, if anyone hacks into your machine (or if anyone has physical access), they only need info about the account to which you are currently logged in to trash your system. That is a little more dangerous in my opinion than logging in as a user having almost no permissions (besides maybe mounting/unmounting etc.) and becoming root through "su" to perform administrative tasks, which should NOT be every two seconds. Plus, using "su" only opens the root account in the terminal you are currently using.
IF, however, you are on a multiuser system and you want to grant access to others, sudo is the best way (ie you should never give your root password to anyone if you are the system administrator). So, in this case, you are correct -- you can allow others to do things without requiring the root password. However, if you are the system administrator, YOU should still use "su" instead of sudo aliases that are more lenient (ie only require your user password).
I am not knowledgeable on the subject, so feel free to rip apart everything I just said. I, however, will continue to use "su" unless someone shows that it really is much less secure than sudo aliases.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.