LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-22-2006, 02:31 AM   #1
paul123
Member
 
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Rep: Reputation: 15
Red face How do you become root in desktop?


I know how to become root in command line, SU. However Ive installed Mandriva 2007 and KDE, my system says at login "root logins not permitted" so I can only get to KDE graphical desktop as a user. I tried entering SU in graphical command line, nothing happens?

Im just trying to read locked logs in Konqueror. I can read them in console with

su
cd /var/log
cat syslog

but if I just want to open from KDE there must be a way????
 
Old 11-22-2006, 02:43 AM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
At the KDE login, use
username: root
password is your root password

Your KDE should be a BIG RED background to tell you that you are logged in as root. Be careful!

If you only want to read logs, you can issue the command in a console in KDE as a normal user:
Code:
kdesu kwrite
Now kwrite application is running as root and you can open your log files. That is probably the safer way to do it.

The kdesu command opens KDE applications as root.

Last edited by Micro420; 11-22-2006 at 02:45 AM.
 
Old 11-22-2006, 02:54 AM   #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
If you need to run a graphical program as root, start it with kdesu. This is a graphical version of the su command and it will ask you for your root password before launching the program.

'kdesu program'

(edit: Aargh. beaten to the punch.)

Last edited by David the H.; 11-22-2006 at 02:55 AM.
 
Old 11-22-2006, 03:28 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Micro420
At the KDE login, use
username: root
password is your root password

Your KDE should be a BIG RED background to tell you that you are logged in as root. Be careful!
He clearly states that the system tells him that root logins are NOT allowed. So I don't think that that will work.
 
Old 11-22-2006, 03:31 AM   #5
paul123
Member
 
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Micro420
At the KDE login, use
username: root
password is your root password

Your KDE should be a BIG RED background to tell you that you are logged in as root. Be careful!
My system doesnt allow this at KDE login. I think it may be because I set security as "high" when I did the Mandriva installation.

If you try the root login it says "root logins are not allowed"

Thanks for the other information everybody. kdesu is just what I was looking for.

Thanks again.
 
Old 11-22-2006, 03:53 AM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
root is not allowed (or shouldn't be) to log in using X because it produces security problems. Simply that's why. Of course logging in as root in console is a possible security hole as well, and if possible, one should consider freezing the whole root account and privilege one maintenance user for su for the tasks that need root privileges; this way not everything can be done if somebody happened to break it, but the needed things can be done with root privileges, but again without actually using a root login - if a program is run as root and it happened to crash, the root login was still open. If you did something with sudo instead and it crashed, sudo should just die too, leaving the unprivileged account "open" instead of root account.

Most of the things I do, if I happen to use a graphical environment and need root account, I do using a terminal emulator or preferrably switch to a console, login as a regular user and use sudo to do the job. It's not that big a problem, since in a well-configured environment root privileges are not needed every other minute.

You could alter your configuration so that root logins were accepted (in X), but I advice you not to; you don't need the whole graphical desktop for doing something as root, if you need some graphical app, you can run it well without the whole root-privileged desktop. kdesu is a nice app for this (as is gksudo), but you can just as well launch a terminal emulator and use the regular sudo command instead.
 
Old 11-22-2006, 06:49 AM   #7
paul123
Member
 
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks for all the above. My root problems are over.... I think.
 
Old 11-22-2006, 02:46 PM   #8
royceH
Member
 
Registered: Nov 2006
Distribution: Debian and variants
Posts: 45

Rep: Reputation: 15
Just to add my 2c worth, when I need to run graphiacl apps as root, I open up a root console (or type "su root" at a user one) then type the command "konqueror" This opens up a file browsing window, allowing me to just navigate to the files I want and doubble click on them. This comes from my past as a windows user, and has proved a habit that I'm finding rather hard to break.
 
Old 11-22-2006, 03:52 PM   #9
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Quote:
Originally Posted by royceH
Just to add my 2c worth, when I need to run graphiacl apps as root, I open up a root console (or type "su root" at a user one) then type the command "konqueror" This opens up a file browsing window, allowing me to just navigate to the files I want and doubble click on them. This comes from my past as a windows user, and has proved a habit that I'm finding rather hard to break.
Hey, whatever works!
 
  


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
Gnome: root desktop applied to user desktop nick1 Linux - Newbie 1 02-24-2006 02:36 PM
root desktop disappearing.. sailu_mvn Linux - Software 1 12-27-2004 03:31 AM
No desktop as root kendo Linux - Newbie 2 01-31-2002 09:32 AM
no desktop GUI for root?? tdnik Linux - General 2 01-08-2002 11:13 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 10:18 AM


All times are GMT -5. The time now is 02:33 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