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!
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.
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.