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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-21-2004, 07:33 AM
|
#1
|
|
Member
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 608
Rep:
|
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?
|
|
|
|
09-21-2004, 07:38 AM
|
#2
|
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Just su to root user in an xterm:
su -
root password
|
|
|
|
09-21-2004, 07:41 AM
|
#3
|
|
Member
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 608
Original Poster
Rep:
|
Did not work... I need to go in to konqueror and delete a directory.
|
|
|
|
09-21-2004, 07:45 AM
|
#4
|
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Is there a problem with
rm -rf <directory path>
as root user from an xterm?
or alternately log in as root user.
|
|
|
|
09-21-2004, 07:50 AM
|
#5
|
|
Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
|
09-21-2004, 07:56 AM
|
#6
|
|
Member
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Sabayon 6 / Ubuntu 10.04 LTS
Posts: 379
Rep:
|
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.
|
|
|
|
09-21-2004, 08:11 AM
|
#7
|
|
LQ Newbie
Registered: Sep 2004
Location: Deutchland
Distribution: Mandrake Linux 10
Posts: 6
Rep:
|
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.
|
|
|
|
09-21-2004, 08:47 AM
|
#8
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,568
|
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.
|
|
|
|
09-21-2004, 09:20 AM
|
#9
|
|
LQ Newbie
Registered: Sep 2004
Location: Deutchland
Distribution: Mandrake Linux 10
Posts: 6
Rep:
|
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?
|
|
|
|
09-21-2004, 09:39 AM
|
#10
|
|
Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:19 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.
|
Latest Threads
LQ News
|
|