Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd January 2007, 12:43 PM
Krister Hallerg Online
Registered User
 
Join Date: Jan 2006
Posts: 71
Using kdesu or sudo without password

I would like to be able to use Software Updater (pup) and Add/Remove Software (pirut) without having to enter a password every time.

So I used visudo to edit sudoers, unblocking %wheel ALL=(ALL) NOPASSWD:ALL
and added myself to the wheel group.

When using kdesu ("kdesu /usr/bin/pirut") I get asked for the password, so I may as well do without using kdesu. When using sudo ("sudo /usr/bin/pirut")it will not load the application pirut. (pup)

"sudo konqueror" does not seem to give me root access to files

Could live with entering the Password, but it would be nice to do without it, if anyone could help me, Thanks
Reply With Quote
  #2  
Old 8th January 2007, 10:52 PM
Krister Hallerg Online
Registered User
 
Join Date: Jan 2006
Posts: 71
Am a bit disappointed that nobody can give me a tip how to get rid of all these entries of passwords. Cheers!
Reply With Quote
  #3  
Old 26th January 2007, 12:29 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
I'm trying to figure this out too. So far in the sudoers file I used lines:

root ALL= NOPASSWD: /usr/bin/kdesu /usr/bin/pirut
jamesjpn ALL= NOPASSWD: /usr/bin/pirut
jamesjpn ALL= NOPASSWD: /usr/bin/kdesu /usr/bin/pirut

but none of these work. If you have made any progress, please share it!
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #4  
Old 26th January 2007, 12:33 AM
JN4OldSchool Offline
"Sean The Terrible" -- The forum(er) Vista® rep
 
Join Date: Nov 2005
Posts: 8,823
I cant answer this as I dont know but I would like to say that you might not want to go this route. The root system is in place for your protection. There are good reasons why you need to su to install or change any software. If you want to bypass this you might as well just install XP and use that.
Reply With Quote
  #5  
Old 26th January 2007, 12:55 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
OK, I found something that can work from the command line. First of all, I added to sudoers:

jamesjpn ALL = NOPASSWD: ALL

(Replace jamesjpn with your user name)

Now when pup gives me a message of updates, I open terminal and enter this command:

sudo pup

And now I'm not prompted to type a password!
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #6  
Old 26th January 2007, 12:57 AM
JN4OldSchool Offline
"Sean The Terrible" -- The forum(er) Vista® rep
 
Join Date: Nov 2005
Posts: 8,823
thats cool, you still have to sudo. I guess I misintrepreted what you were getting at.
Reply With Quote
  #7  
Old 26th January 2007, 01:03 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
Quote:
Originally Posted by JN4OldSchool
I cant answer this as I dont know but I would like to say that you might not want to go this route. The root system is in place for your protection. There are good reasons why you need to su to install or change any software. If you want to bypass this you might as well just install XP and use that.
I'm never going back to XP! Fedora Core rocks! IMHO, because I'm the only soul with access to my machine, I don't think it's poor security to bypass a prompt for a password for convenience sake. I've already typed a password to get into my user account, why type another? Am I now more vulnerable to hackers by editing the sudoers file to bypass having to type the root password? I'm still a relative newbie in using Linux for only the past 2 years and am always seeking to learn more. Any comments are appreciated.
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #8  
Old 26th January 2007, 01:06 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
Quote:
Originally Posted by JN4OldSchool
thats cool, you still have to sudo. I guess I misintrepreted what you were getting at.
Cool. Thanks!
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #9  
Old 26th January 2007, 01:08 AM
JN4OldSchool Offline
"Sean The Terrible" -- The forum(er) Vista® rep
 
Join Date: Nov 2005
Posts: 8,823
no, you are good. You said the magic words, in a business environment what you did is a no-no, but as a home user as long as you trust everyone around your computer it wont matter. Just as long as you still have to physically allow anything to install itself you should be fine.
Reply With Quote
  #10  
Old 26th January 2007, 01:25 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
Thank you for your advice and encouragement! I want to learn all I can to help others move from Windows to Liinux. From what I heard about Windows Vista, things are looking pretty bleak. Perhaps it will encourage more people to move to Linux. I'm glad I moved when I did.
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #11  
Old 5th February 2007, 11:12 PM
Krister Hallerg Online
Registered User
 
Join Date: Jan 2006
Posts: 71
Had given up on this thread, but happened to see that there has been some posts. Thanks jamesjpn!

Adding to this line to /etc/sudoers:
krister ALL=NOPASSWD: ALL
QUOTE:
This does not solve my problem. Neither "sudo pup" or "kdesu# works. I get the following messages with "sudo pup":

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Traceback (most recent call last):
UNQUOTE

Am I doning something wrong?

Krister
File "/usr/sbin/pup", line 31, in ?
import gtk
File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?
_init()
File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init
_gtk.init_check()
RuntimeError: could not open display
Reply With Quote
  #12  
Old 8th February 2007, 03:24 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
Hi Krister,

I used to get the error message:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

in Fedora Core 5 when I ran the sudo command followed by the program I wanted to run in root. For example every time I tried sudo gedit I would get that error message and gedit wouldn't load. But for some reason this seems to be fixed in FC 6. The sudo pup command works fine for me. I just don't know what to tell you. I myself am still a relative newbie of only 2 years in Linux.
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #13  
Old 8th February 2007, 05:26 PM
Krister Hallerg Online
Registered User
 
Join Date: Jan 2006
Posts: 71
Thanks jamesjpn. I am a relative newbie too, 18 months in Linux. Interesting what you say about FC5. I did not do a fresh install of FC6, but upgraded from FC5.

It is not just pup that dows not work for me. sudo pirut is the same. sudo kate works and i can open log-files in the root directory. sudo konqueror seems to work, but I cannot open log-files in the root directory because I dont have permission. With seem to work I mean that I am not asked to enter password, which is the point of my query.

Anybody else that can help? This works with SuSE, Kubuntu and Mandriva, why not Fedora??
Reply With Quote
  #14  
Old 10th February 2007, 04:33 PM
Krister Hallerg Online
Registered User
 
Join Date: Jan 2006
Posts: 71
Tried a fresh install of FC6 (instead of upgrade), and yes, now I can sudo pup and sudo pirut without being asked for a password. Have to tick the run in terminal box though.
Reply With Quote
  #15  
Old 12th February 2007, 03:10 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
Quote:
Originally Posted by Krister Hallerg
Tried a fresh install of FC6 (instead of upgrade), and yes, now I can sudo pup and sudo pirut without being asked for a password. Have to tick the run in terminal box though.
You must be using the Run Application applet. I have a shortcut to Terminal on my Gnome panel that I just click to open a Terminal window and then type commands. To each his own. I wish I could figure out how to make a launcher icon on the Desktop to run sudo pup, but so far it hasn't worked.
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
Reply

Tags
kdesu, password, sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why no kdesu and gksu? Dutchmaster Using Fedora 11 11th May 2010 11:13 PM
Sudo password timeout AnimeFreak Security and Privacy 7 21st January 2009 11:26 PM
Is there a way to use sudo password with the gui (gnome)? Thaidog Using Fedora 1 14th January 2009 02:41 AM
kdesu and/or gksu on F10? RGB Using Fedora 2 27th November 2008 03:55 PM
what is the sudo password? acerfedora Using Fedora 7 22nd July 2006 04:43 PM


Current GMT-time: 20:56 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat