LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-20-2009, 06:17 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 838

Rep: Reputation: 51
Angry Mandriva GUI Root: Is there such a thing?


I understand that Mandriva has stricter rules on Root privileges more so than let's say Ubuntu. I'd like to work from the outside in on this problem. If a system program/application dose not show a dialog box prompting a root user password, does the operation have to be done in the terminal such as Bash? As a user of a shell Mandriva will not allow me to do these things and it seems too out of the way to use system commands. Mandriva as far as I know does not allow the root user to use GUI unless prompted. Any suggestions?
Thanks in advance
I edited this. If you create a root account Mandriva still requires you to enter a root password so this option has no benefit.Also on a root account you obviously have a different desktop. So I guess the answer is to create a user group that is the same as root and don't create files etc while in root mode. I'll try this.

Last edited by theKbStockpiler; 09-20-2009 at 10:46 PM.
 
Old 09-20-2009, 08:17 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Wink

Hi, one way to get the gui for root is to select "console" to login from the login screen.

you should get a shell prompt.

Type in root and enter root password.

Type startx and you should be taken to root gui. (As I see it (the question))

The other thing to do is to add your "user" to the wheel group.

Edit the /etc/sudoers file
Code:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
%wheel  ALL=(ALL) ALL

# Same thing without a password
%wheel  ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
to edit as root type...

su -p
(enter root password)

vi /etc/sudoers

Once in vi use "i" to insert (edit)

use arrow keys to navigate....

Uncomment the lines....

use "Esc" to exit insert mode

use ":wq" to write to file and quit vi

see how you go.

Regards Glenn

<edit> reboot or restartx to test. </edit>

Last edited by GlennsPref; 09-20-2009 at 08:33 PM.
 
Old 09-20-2009, 09:06 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
There's never any good reason to run a whole gui x-session as root. Anything you need to do can be just as easily done in other ways. There are several ways to launch gui programs with root privileges.

You can run almost any application as root by using the gksu or kdesu commands (depending on your desktop). These are the programs that provide the gui for entering the root password. e.g. "gksu gedit". You can also use them in your menu and icon launcher commands.

Sudo is also a good option, as the previous post detailed. There are even gksudo and kdesudo gui versions of the command as well that work similarly to gksu and kdesu, except that the programs must be configured properly in sudo first.


To run a gui program directly from a root terminal without needing any of the above commands you need to have two things set up. First, the running x-server must be configured to allow root to access it. That's most easily done with "xhost +local:root", run by the user that owns the x-session (it's not the most secure method, but for most home systems it's not a big worry). Second, the root user's environment must have DISPLAY=:0.0 set (or whatever the actual display is), so that the programs know which display to use.

Last edited by David the H.; 09-20-2009 at 09:18 PM. Reason: minor rewording
 
Old 09-21-2009, 04:35 PM   #4
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 838

Original Poster
Rep: Reputation: 51
Thanks

Thanks for the great in depth responses. I appreciate you taking the time to share your expertise. The information you have provided is topnotch. From my own perspective I don't respect why a computer user can't be given an extra password when it is needed. It seams the hierarchy causes a burden that is not worth it. If as a user on Mandriva when you are prompted for a password you either have it, you can get it, or you have restricted use for a reason. You can accomplish your tasks eventually but it is labor intensive. Most people don't want hierarchy for the sake of hierarchy. If you are the root it would seam that you have to use the terminal and not the GUI which is okay as long as you know. Having a root account that doesn't have any privileges doesn't make sense. The root privilege thing amounts to a (dummy switch) if it is your own computer.

Thanks also for answering Mandriva questions as Ubuntu has pretty much taken over.
 
Old 09-21-2009, 09:50 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, I don't agree entirely, but Mandriva is more secure than most other Nix's default settings.

You can and may change the system to allow root access if and when you need it, I do.

I also have a single-user system.

When you setup ksudo or gtksudo, the gui for password should pop up anytime you select an operation that requires root privs.

I go one step further and use zsh instead of bash, I can set aliases for common commands that require root passwords. Seemless intergration.

Not secure for multi-user systems, but nice for us.

regards Glenn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dont know how to log on as root in the gui - mandriva 2008 mandrakeBren Linux - Newbie 6 01-06-2009 06:58 AM
how to enable GUI root login in Mandriva? zebra90210 Mandriva 4 03-13-2008 07:20 AM
I thing Mandriva distributions are only for this who know everything. klauspm Mandriva 1 10-09-2006 08:53 AM
problem with fc3 gui interface. thing once painted are done for ever amolgupta Linux - Software 2 03-14-2006 07:05 AM
Does this thing have a GUI(Graphical User Interface)? lorengd Slackware 6 09-19-2003 02:09 PM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration