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.
I installed Mandrake community (10.1) and experienced slow web page loading. I modified /etc/modprobe.conf by adding two lines to the file to correct it. I had to logout and logon as root to do this. Is there a way to open a file in Kedit as user and save the file as root??
(1) Log into X-Windows as a regular user
(2) Open up a Konsole/xterm
(3) Become root by typing in 'su -' and your password
(4) Go to /etc (cd /etc)
(5) Run 'kedit modprobe.conf' and edit the file
(6) Close Kedit
(7) Get out of the Konsole using exit
It is very bad policy to login as root to X-Windows. It is extremely insecure and leaves you open to a lot of vulnerabilities and attacks.
Of course, you have the option of going to one of the consoles (CTRL+F1), logging in as root and editing the file from there. But, then, you'd have to use something like vim, emacs, nano, pico, ...
Thanks for the help. The first reply from linux terror seems to work best. I may have other problems cause I get error messages "can't open without gui" or something like that. Then, I get error on root and then again after exit root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.