LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-20-2011, 10:13 PM   #1
WTFsandwich
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Can I avoid Having to type in root password over and over again on Fedora 14?


I was curious if there's some way I can automatically give my account root privileges on login or something.

The reason I want this, is that I'm sick of having to type the root password every time I want to do something.

This is a pretty fresh install, so I'm already tired of typing it every time I try to install software and the like.

Any help would be great, thanks.
 
Old 03-20-2011, 10:24 PM   #2
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 195

Rep: Reputation: 50
Quote:
Originally Posted by WTFsandwich View Post
I was curious if there's some way I can automatically give my account root privileges on login or something.

The reason I want this, is that I'm sick of having to type the root password every time I want to do something.

This is a pretty fresh install, so I'm already tired of typing it every time I try to install software and the like.

Any help would be great, thanks.
You can put your user account into sudo, but you will still have to type sudo before the command.


type visudo at the command line as root.

find this line:
# %wheel ALL=(ALL) NOPASSWD: ALL

Add this line under the line above: (replace username with your user account name)
username ALL=(ALL) NOPASSWD: ALL
 
Old 03-20-2011, 10:44 PM   #3
WTFsandwich
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Nearly all of the times it asks for the root password, it's not while I'm working in the terminal. It's mostly installing software, making some minor system changes, both of which I've been doing with GUIs.

If I add myself to the sudoers file, will it stop the prompts even outside the terminal?
 
Old 03-20-2011, 10:57 PM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04
Posts: 1,260

Rep: Reputation: 147Reputation: 147
Try using gksu (if Fedora has it). I think after logging in as root once with it, that you don't have to keep entering the password.
 
Old 03-20-2011, 10:57 PM   #5
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

Rep: Reputation: 10
Hi

Are you using GDM or KDM?
In KDE, with KDM, open the control panel and go down to 'system administration', under that select 'login manager' and click 'administrator mode' (unless you are root already). From there you can enable auto-login and password-less login for certain users.
For GDM, you can edit /etc/gdm/gdm.conf and you probably can find an option to allow that somewhere.
I would strongly reccommend that you do not do that, as logging in as root automatically, and without a password esentially bypasses all the security on your system (except perhaps a firewall), so anyone who has physical access ro can hack into it from the web can see, execute, and modify everything on your computer. If you want the convenience of auto-login, do so as a normal user, and actually you should use only a normal user for almost all tasks.
 
Old 03-20-2011, 11:08 PM   #6
WTFsandwich
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I mispoke. I don't want to be logged into the root account per say, just, I want my username to have root privileges for simple tasks, like installing software, without me having to type it in every time.

Also, Fedora doesn't seem to have gksu.
 
Old 03-20-2011, 11:40 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
How are you installing the software ?. If you use System -> Administration -> Add/Remove Software you should only need to toss in the root password once per session. Do it all at once.
Else use "su -c <whatever>", or just "su -" then have at it. Depends on the situation. I don't find Fedora particularly onerous in this regard.

As regard gksu, try "beesu".
 
Old 12-24-2011, 12:38 PM   #8
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Rep: Reputation: 7
I've been looking for the same thing, but for Debian.

Try: Stop Telling sudo Your Password and Useful Tricks Forever: Change the GRUB Menu Timeout on Fedora 14, Fedora 15 .

This is from a comment in the first link: 'sudo -S "your command" < ~/.mypasswd' where ~/.mypasswd contains your password should do the trick. Ensure that only you can read / write to ~/.mypasswd.

I've not tried these, but please tell me what works best.

Last edited by Advice Pro; 12-24-2011 at 12:41 PM.
 
  


Reply


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
Linux Fedora *root password* Jamesq106 Linux - Desktop 11 10-02-2012 06:19 PM
Root Password on Fedora 10 Atwin Linux - Laptop and Netbook 7 01-12-2009 06:29 PM
Can I avoid giving password when su-ing to root? bspus Linux - General 12 06-17-2007 01:50 PM
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 03:20 AM
Keyboard won't work to type root password Stevetgn Linux - Newbie 2 06-14-2003 06:11 AM


All times are GMT -5. The time now is 11:51 PM.

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