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
  #16  
Old 29th July 2011, 11:08 AM
malkien Offline
Registered User
 
Join Date: Dec 2007
Location: milano, italy
Age: 40
Posts: 3
linuxchrome
Re: Does sudo have to ask for my password every single time?

did anyone find an answer?
I have the same problem as the OP:

- sudo always asks for a password
- no timeout is configured in sudoers
- if I add a timeout to sudoers it is ignored
Reply With Quote
  #17  
Old 29th July 2011, 04:00 PM
bodhi.zazen's Avatar
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
windows_xp_2003firefox
Re: Does sudo have to ask for my password every single time?

Quote:
Originally Posted by malkien View Post
did anyone find an answer?
I have the same problem as the OP:

- sudo always asks for a password
- no timeout is configured in sudoers
- if I add a timeout to sudoers it is ignored
Personally I if am going to do system adminstration I use either

Code:
su -
or
Code:
sudo -I
In terms of configuring sudo, use visudo and configure your timestamp. If there is not such line, add one, lol.

See bbobbo's post or man sudoers
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #18  
Old 29th July 2011, 05:10 PM
malkien Offline
Registered User
 
Join Date: Dec 2007
Location: milano, italy
Age: 40
Posts: 3
linuxchrome
Lightbulb Re: Does sudo have to ask for my password every single time?

Quote:
Originally Posted by bodhi.zazen View Post
Personally I if am going to do system adminstration I use either
...
I think this thread has seen a lot of off-topic discussion about alternatives to sudo.
while interesting, it does not answer the question.


Quote:
Originally Posted by bodhi.zazen View Post
In terms of configuring sudo, use visudo and configure your timestamp. If there is not such line, add one, lol.

See bbobbo's post or man sudoers
you quoted my post but probably didn't read it.
I did configure sudo as expected, to no effect.
I could set the timestamp timeout in other installations in the past, but in my Fedora 14 (now 15) it fails.
It behaves as if hardcoded with timestamp_timeout=0

---------- Post added at 06:10 PM ---------- Previous post was at 05:21 PM ----------

I found the problem.
since sudo turned on the tty_tickets option by default, in the fish shell the password is requested everytime.
I tried bash and dash (no other shells installed) and they work fine.
for some reason sudo believes fish is always a different tty, but I have not investigated the problem.

I fixed the behavior in fish by adding this line to sudoers:
Code:
Defaults  !tty_tickets
Reply With Quote
  #19  
Old 29th July 2011, 06:43 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608
linuxfirefox
Re: Does sudo have to ask for my password every single time?

Just as experience sharing, since issue seems to solved from my understanding..

Having several registers open, a SU or SUDO didnt apply to the other registers as long there have NOT been sudo'd.
sudo diddnt apply to other shell's either, as they are just like a register either.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
Reply

Tags
password, single, sudo, time

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
How do I SUDO with no password ? OralDeckard Using Fedora 3 2nd August 2010 08:01 AM
Several scp's and a single password joe.pelayo Using Fedora 3 12th September 2009 09:34 AM
Is there a way to use sudo password with the gui (gnome)? Thaidog Using Fedora 1 14th January 2009 02:41 AM
Using kdesu or sudo without password Krister Hallerg Using Fedora 17 11th March 2007 05:35 AM
what is the sudo password? acerfedora Using Fedora 7 22nd July 2006 04:43 PM


Current GMT-time: 10:40 (Friday, 24-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