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

2nd January 2007, 12:43 PM
|
|
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
|

8th January 2007, 10:52 PM
|
|
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!
|

26th January 2007, 12:29 AM
|
|
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!
|

26th January 2007, 12:33 AM
|
|
"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.
|

26th January 2007, 12:55 AM
|
|
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!
|

26th January 2007, 12:57 AM
|
|
"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.
|

26th January 2007, 01:03 AM
|
|
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.
|

26th January 2007, 01:06 AM
|
|
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!
|

26th January 2007, 01:08 AM
|
|
"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.
|

26th January 2007, 01:25 AM
|
|
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.
|

5th February 2007, 11:12 PM
|
|
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
|

8th February 2007, 03:24 AM
|
|
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.
|

8th February 2007, 05:26 PM
|
|
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??
|

10th February 2007, 04:33 PM
|
|
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.
|

12th February 2007, 03:10 AM
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 20:56 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|