Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-07-2005, 06:07 PM
|
#1
|
Member
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126
Rep:
|
Root privileges for user
Hi
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.
|
|
|
01-07-2005, 06:44 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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..
|
|
|
01-07-2005, 10:33 PM
|
#3
|
Member
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126
Original Poster
Rep:
|
Cool, thanks 
|
|
|
All times are GMT -5. The time now is 08:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|