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.
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146
Rep:
Run as administrator or as desktop user?
Hi,
I installed Linux Mint 9 a couple of days ago (from a live usb) and my 'Account type' was set as 'Custom'.
I had to change the 'Account type' to 'Administrator' so I could edit the 'Network Manager' configuration (the 'Apply' button in Network Manager was disabled until I changed to Administrator).
Is it ok to leave it as 'Administrator' or should I change it to 'Desktop user' until I need to change system settings again?
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146
Original Poster
Rep:
@frankbell: Thanks for the quick response.
Is being an 'Administrator' the same as being 'root'? The reason I ask is because any file I create is owned by my username rather than 'root', and I still have to do 'sudo' to access anything owned by 'root'. And I still have to enter my password to do system changes, like updating packages.
I originally switched to 'Administrator' because I couldn't work out how to do 'sudo' on the gui 'Network Manager'.
"Root" is Linux for what Windows calls "Administrator," yes.
Requiring you to enter you password is a way of protecting the computer--a piece of malware or a bad guy who breaks in through the back door is unlikely to know your password and is therefore prevented from doing bad stuff--it may gain access to your home folder, but not to system configuration files. Therefore, it can't set spyware or bots.
[RANT MODE ON]
One of the reasons I'm not a big Ubuntu fan is that it (and its derivatives) disable the root account by default. I prefer distros such as Slackware or Debian in which there is an active root account, so I can log in as root or I can su, do root stuff, log out, and do daily computing as user.
[RANT MODE OFF]
But that's just me.
I know why they do it. They are trying to make the computer more secure when it's being used by folks who may not be careful enough.
There are ways to turn on the root account in Ubuntu or Mint, but on my Ubuntu boxes I just live with sudo. It's mildly annoying, but it works and I can live with it.
Ditto the rant about Ubuntu and no root account by default---this aside, Mint is a very good distro.
I have heard Mint described as "Ubuntu done right." I ripped the HDD out of my test machine to do some testing for someone else. I plan to load it up with Mint when I get everything put back together.
I believe what the OP is calling an "Administrator" is actually a user on the sudoer list. I've never used Mint, but with it's roots in Ubuntu that makes sense. So he's not actually running as root, so the answer is "yes, you want to be the administrator." There is a root account, but unless you set a password for it you won't be able to log in as root. I would imagine there are further hurdles to graphical root logins.
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221
Rep:
It is trivial to enable the root account in Ubuntu.
Frankbell said:
Quote:
One of the reasons I'm not a big Ubuntu fan is that it (and its derivatives) disable the root account by default. I prefer distros such as Slackware or Debian in which there is an active root account, so I can log in as root or I can su, do root stuff, log out, and do daily computing as user.
I have a short comment:
Code:
sudo passwd root
Once my expertise improved to the point that I was comfortable, I moved almost entirely into Debian, and I am used to rootly privileges. I use Ubuntu on laptops because I have fewer compatability problems, but, like Frank this sudo stuff made me nuts. So I decided to treat Ubuntu like Debian. I even put the Debian repositories in my
Code:
/etc/apt/sources.list
. Just so you know, it works fine to treat Ubuntu like Debian.
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146
Original Poster
Rep:
For those unfamiliar with Mint, in the 'User Settings' gui, I can change my user name, account type and password. If I click on the 'Account Type' : 'Change...' button I get a window titled 'Change User Account Type'. There are three account types to choose from, each with explanatory subtext:
- Custom 'This account is using special settings that have been defined manually. Use the Advanced Settings dialog to tune them.'
- Administrator 'Can change anything on the system, including installing and upgrading software.'
- Desktop user 'Can perform common tasks. Can't install software or change settings affecting all users.'
My question was about changing to 'Desktop user' but I wondered if it would cause problems in using the system (or if it might lock me out of switching back to 'Administrator' at a later date).
But it sounds like it's safe to leave it as 'Administrator'.
But it sounds like it's safe to leave it as 'Administrator'.
Yes, a user type of "Administrator" can become root with sudo -i or sudo command
You should only stay as root for as long as it takes to make the change(s) you need. Then revert to running as yourself.
Non-administrator users cannot use sudo by default, unless you (as root) enable this for them on an individual basis.
Once my expertise improved to the point that I was comfortable, I moved almost entirely into Debian, and I am used to rootly privileges. I use Ubuntu on laptops because I have fewer compatability problems, but, like Frank this sudo stuff made me nuts. So I decided to treat Ubuntu like Debian. I even put the Debian repositories in my
Code:
/etc/apt/sources.list
. Just so you know, it works fine to treat Ubuntu like Debian.
So by default on Ubuntu, as a normal user, I can just sudo my way into anything without being prompted for a password? I've been using Debian for a while. Last time I tried Ubuntu I couldn't get used to it.
I like the "sux" command in Debian. I can be in a normal terminal session, use "sux" (prompts for root password) to gain root access, do everything I need to do without typing sudo before everything, and then exit to be dropped back to my regular terminal session.
At the risk of belaboring this, note that--while you can turn on the root account using "sudo passwd root"-- you'll still be prompted for your regular user name when doing certain "admin" tasks. To me, this just makes things even more confusing.
Distribution: Ubuntu, Ubuntu Server, Linux From Scratch, Fedora, Mac OSX, and Windows sometimes.
Posts: 20
Rep:
Quote:
Originally Posted by replica9000
Wasn't sure, but any article I've read for Ubuntu that requires root privledges usually says to sudo this and sudo that...
You can use sudo - but you will need to enter your password unless you change some things in the sudoers file. Wim Sturkenboom was saying "No you can't" to sudo-ing without using a password.
Personally I see no reason to give root a password (so you can login as root) on a desktop machine. You can use
Quote:
sudo -s
to start a shell with root privileges (similar to Debian's "sux" I guess) or
Quote:
sudo -i
which is more like logging in as root on a terminal. Also
Quote:
sudoedit somerootfile
is handy too. This is how I like to work - YMMV. However actually logging in as root does make sense in other cases, for instance my router "only" has a root login.
Last edited by merlinblack; 06-30-2010 at 11:13 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.