Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-19-2007, 01:08 PM   #1
LQ Newbie
Registered: May 2007
Posts: 6

Rep: Reputation: 0
How can I get root user privileges at startup?

I think a problem exists in the Samsung .ppd files for color laser printers. I need to modify the .ppd file for my printer. But when I modify the file using sudo and vi, I cannot save it. Neither can I reinstall the driver from the cd-rom. Both operations require root user privileges. I can acquire these temporarily in "terminal," but I want to log in (to the GUI) as a root user. The GUI is gnome. Please respond with simple, sequential instructions, as I do not understand the Unix operating system. Thanks.
Old 05-19-2007, 01:20 PM   #2
General Failure
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
You can run programs as root while logged in as user by pressing alt-f2 and typing
gksu programname
This will prompt you for the root password and run the program as root.

You might want to type gksu gedit for example.

Besides that, it is generally not advisable to log on graphically as root because -- for example -- a false mouse click can make the system unbootable.

Last edited by General Failure; 05-19-2007 at 01:22 PM.
Old 05-19-2007, 01:24 PM   #3
LQ Newbie
Registered: Oct 2006
Posts: 12

Rep: Reputation: 0

Some distros you can directly type "root" and root password into the initial login. If this does not work another way to get a write protected file to be able to edit it is the chmod command. The easiest one is type: chmod a+w /path/filename.ext. This will change the file to write mode and enable you to edit in a text editor such as kate. Hope this helps.
Old 05-19-2007, 03:13 PM   #4
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
What distribution are you using?
If you are running something in the Ubuntu family, you have to precede your commands with sudo to get temporary root privileges.


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
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 01:03 PM
How to give user always root privileges? SimeonV SUSE / openSUSE 18 06-23-2005 11:02 AM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration