Logging in as root.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Logging in as root.

Postby newyorkpaulie on Sat Mar 23, 2013 1:27 pm

In Mint 11 I was able to login as root at the graphical login screen.
In trying out Mint 14 I find that there is a message: "You are not allowed to login as administrator." (or something very similar).
Anyone know how to change this? Yes, I know all about the dangers, but have been using this for years. I know one can use "su" and go from there, but there are times when I want to use the GUI to make my changes, adjustments, etc. and not have to use the command line.
Dual-booting Linux Mint 14 Nadia Mate/WinVistaBiz64bit on a T61 ThinkPad.
newyorkpaulie
Level 2
Level 2
 
Posts: 68
Joined: Tue Mar 09, 2010 6:23 pm

Linux Mint is funded by ads and donations.
 

Re: Logging in as root.

Postby viking777 on Sat Mar 23, 2013 1:54 pm

but there are times when I want to use the GUI to make my changes, adjustments, etc. and not have to use the command line.


Then login as a normal user and start a gui program as root, that is what the rest of us do - if we need to that is.

You can't login as root unless you create a root account btw.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Logging in as root.

Postby newyorkpaulie on Sat Mar 23, 2013 4:39 pm

Can you explain how you "start a gui program as root" please? Once you've logged in aren't all your gui programs started in "your username"?
Dual-booting Linux Mint 14 Nadia Mate/WinVistaBiz64bit on a T61 ThinkPad.
newyorkpaulie
Level 2
Level 2
 
Posts: 68
Joined: Tue Mar 09, 2010 6:23 pm

Re: Logging in as root.

Postby xenopeek on Sat Mar 23, 2013 7:09 pm

Press Alt+F2 to open the run dialog, then type the command to launch your program and prefix it with gksudo (or kdesu for KDE). So for example if you want to open Gedit as root, you run:
Code: Select all
gksudo gedit

You are asked for your password and then program will open as root. This limits what accidental stupid things you can do, as only one program is running as root and not all. Aside from the obvious security implications of running as root.

If you insist you want to log in as root, then do so. It's disabled by default but you can allow the system administrator to log in in the Login Window application.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14562
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Logging in as root.

Postby newyorkpaulie on Tue Mar 26, 2013 4:52 pm

You said "you can allow the system administrator to log in in the Login Window application". What app is that... I couldn't find it. It can't be the login screen. Can you point me to it please? Thanks!
Dual-booting Linux Mint 14 Nadia Mate/WinVistaBiz64bit on a T61 ThinkPad.
newyorkpaulie
Level 2
Level 2
 
Posts: 68
Joined: Tue Mar 09, 2010 6:23 pm

Re: Logging in as root.

Postby xenopeek on Tue Mar 26, 2013 5:19 pm

On Linux Mint 14 it's in your menu, administration section. But on all expect Xfce you can just open your menu and start typing "login window" to find it for you :wink:
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14562
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Logging in as root.

Postby renatov on Wed Mar 27, 2013 2:22 am

Menu >> Administration >> Login window >> Security (tab) >> enable "Allow local system administrator login"

But seriously, what you're doing is totally wrong. There are graphical interfaces for su and sudo, like gksu. You should not login as root.
User avatar
renatov
Level 2
Level 2
 
Posts: 62
Joined: Mon Mar 25, 2013 8:45 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Darcy, karlchen, Niely, WharfRat and 26 guests