LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2004, 07:33 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question What command will give me root access from the gui?


I need my admin account to have root rights in the gui... what command does that?
 
Old 09-21-2004, 07:38 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Just su to root user in an xterm:

su -
root password
 
Old 09-21-2004, 07:41 AM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Did not work... I need to go in to konqueror and delete a directory.
 
Old 09-21-2004, 07:45 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Is there a problem with

rm -rf <directory path>

as root user from an xterm?

or alternately log in as root user.
 
Old 09-21-2004, 07:50 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

when u login into ur gui through gdm/kdm then u need to login through account whcih has root right asigned to it

regards
 
Old 09-21-2004, 07:56 AM   #6
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Ubuntu 20.04 / Manjaro
Posts: 439

Rep: Reputation: 48
Quote:
Originally posted by Skyline
Is there a problem with

rm -rf <directory path>

as root user from an xterm?.
I'll 2nd that! root and gui not good idea, doesn't matter how much linux exp. you have, WAY to easy to screw something up. What distro and gui are you using? Most of them will automatically ask for a root pword.

Last edited by snatale1; 09-21-2004 at 07:58 AM.
 
Old 09-21-2004, 08:11 AM   #7
iamacomma
LQ Newbie
 
Registered: Sep 2004
Location: Deutchland
Distribution: Mandrake Linux 10
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by Thaidog
Did not work... I need to go in to konqueror and delete a directory.
For those of us who are command-line impared, opening Konqueror (or any app) with su status is a simple matter in Mandrake (and probably others). Select "Run Command..." from your KDE menu, klick "Options" on the new window, tick "Run as a different user" and fill in your root username and password.
 
Old 09-21-2004, 08:47 AM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I agree with the above comments mostly. If at all possible, try to use the command line only to do administrative tasks like moving, deleting and changing the permissions of files. If you don't know how to do it now, LEARN HOW! Don't allow yourself to continue to lean on the GUI crutch.

That said, there are times when you want or need to launch a GUI application as root. One easy way to do it is to give temporary permission for root to use the X server. Before you use the app, type "xhost +localhost" in a regular (current user, not root) terminal. This lets any user on the local computer access the X server. Now you can launch the application you want to use from a root console. When you're finished, go back to the current user's terminal and type "xhost -localhost" to remove the permissions again.
 
Old 09-21-2004, 09:20 AM   #9
iamacomma
LQ Newbie
 
Registered: Sep 2004
Location: Deutchland
Distribution: Mandrake Linux 10
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by David the H.
I agree with the above comments mostly. If at all possible, try to use the command line only to do administrative tasks like moving, deleting and changing the permissions of files. If you don't know how to do it now, LEARN HOW! Don't allow yourself to continue to lean on the GUI crutch.
...
It took me many years to build up the courage and desire to switch to Linux. My wife still won't. The reason? Because you have to do everything the hard way. I'm quite surprised at how easy linux actually is, and look forward to learning new - and more complex tricks and techniques every day.

It baffles me when someone has such a simple question, and receives so many responces about gdm's and su's and X servers. Yes, it's all good, wonderful advice ... but you scare away many people who could become faithful linux users ... and eventually contributing members to the linux comunity.

If a GUI is a crutch to you, don't use it. But a linux newbie - practically by definition - kinda needs what the GUI has to offer ... and could really use the help and support from someone like you who as grown past the need for the pretty lights and fancy bells.

If you know a simpler answer, why not use it?
 
Old 09-21-2004, 09:39 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

running away fro ;inux isnot a solution to the problem

u will learn more when u try to explore new things

also when u tru do something diferent,then u will initially face some problems

tell me in the above problem,if the OS was windows ,then too u need to make a user,assign the user the adminstrative rights
and the next time u need to login with that username

so how is it different here in linux,if u r using a simple desktop manager????

regards
 
  


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
how to give apache root access Roll Linux - Software 2 03-02-2005 07:55 AM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 05:52 PM
the opposite command of su? can i access user logins when i am root? how? kublador Linux - Newbie 3 09-11-2003 03:43 AM
how to give root ftp access blaha Linux - Software 3 05-30-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 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
Open Source Consulting | Domain Registration