What command will give me root access from the gui?
Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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????
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.