Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-07-2005, 05:07 PM   #1
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Rep: Reputation: 15
Root privileges for user


Is there any way that I can have my user account gain complete (or mostly) root privileges. It is my own computer so I obviously know the root password, but most of the time I need the terminal to be root, and I'm sick of typing the password over and over.

Some points you should know:

1. Ofcourse, sudo is an option but it has the same problem that I need to type "sudo" and the password all the time.
2. Also, I know that it is not a good practice to give root access to the user but as I said, the machine is used by me only and I would like it.
3. I could just login into root by default but I do not want to do that. I'm specifically looking for root privileges for the user account.

Any help appreciated, thanks.
Old 01-07-2005, 05:44 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You can setup sudo not to ask for a password. You can do stuff either like

sudo su

To get root access or

sudo mount -t vfat /dev/hda /mnt/win

for a command that only root would usually be allowed. Simply add the line

# User alias specification
loginname ALL = NOPASSWD: ALL

and your done. As always bad security practices etc, etc..
Old 01-07-2005, 09:33 PM   #3
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
Cool, thanks


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
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 09:38 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:06 AM.

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
Open Source Consulting | Domain Registration