Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Debian does not set up sudo by default. Most distros, other than Ubuntu and its clones, do not share Ubuntu's sudo fetish.
The whole Ubunutu sudo thing I think is to focus on the European market compared to the American market. Not so well known in America, a lot of the European IT companies slap an admins hand for using the root user directly and prefer best practices to "sudo su" all the commands instead. Not saying I agree or disagree with it, just noting the different expectations of company policies of Europe verse America.
Or: open a "root windows" if you see one in the applications. You can open that windows from any user. Then you have to give the root password.. and you are in it.
Thanks all. If I plug my server up to the internet directly or through port forwarding I've read that I should have signing in under root via SSH turned off. If that's the case would making my primary username a sudo user be a security risk while making the SSH security measure irrelevant because now intuders wouldn't be able to log in under root but they would be able to log in directly under my username which would have the same privileges. Thanks again.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I love that question. If I wasn't on my phone I would likely type an essay contradicting itself. I would say it's better than having root exposed but, also, if you're going to be opening SSH to the internet then use public keys if you possibly can, for security, and change the port to a non-standard high port, for your sanity when you start looking at logs for hacking attempts.
I'd think that one should limit access to root privileges. The use of sudo is a possible means to prevent various applications and services from starting unregulated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.