Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > sudo lost it's memory?

sudo lost it's memory?
Thread Tools
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 6, 2004, 09:28 AM
 
this machine hasn't had a clean install for some time. i was using sudo yesterday. i go to use it today, and i get this:
[PowermacG4:~] phil% sudo vim /Library/QuickTimeStreaming/Config/streamingserver.xml

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

#1) Respect the privacy of others.
#2) Think before you type.

Password:
eh? correct me if i'm wrong, but i thought that only happened the very first time you issue a sudo command?

does anyone know why this would happen, and should i expect anything else to have reset itself?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
May 6, 2004, 10:33 AM
 
That is peculiar and unusual behavior...however, were you logged in as the same user both days when running the sudo command?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 6, 2004, 10:35 AM
 
Originally posted by gorickey:
That is peculiar and unusual behavior...however, were you logged in as the same user both days when running the sudo command?
i know it is... yes, and yes.

i even sudo'd after the security update made me reboot, and then this just happened today. curiouser and curiouser...
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
May 6, 2004, 10:37 AM
 
Wildness I tell you...WILD!
     
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status: Offline
Reply With Quote
May 6, 2004, 12:14 PM
 
Originally posted by philzilla:
this machine hasn't had a clean install for some time. i was using sudo yesterday. i go to use it today, and i get this: eh? correct me if i'm wrong, but i thought that only happened the very first time you issue a sudo command?

does anyone know why this would happen, and should i expect anything else to have reset itself?
From the sudo man page:

Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (5 minutes unless overridden in sudoers).
From the sudoers man page:

Defaults

Certain configuration options may be changed from their default values
at runtime via one or more Default_Entry lines. These may affect all
users on any host, all users on a specific host, or just a specific
user. When multiple entries match, they are applied in order. Where
there are conflicting values, the last value on a matching line takes
effect.

Default_Type ::= 'Defaults' ||
'Defaults' ':' User ||
'Defaults' '@' Host

Default_Entry ::= Default_Type Parameter_List

Parameter ::= Parameter '=' Value ||
Parameter '+=' Value ||
Parameter '-=' Value ||
'!'* Parameter ||


timestamp_timeout
Number of minutes that can elapse before sudo will ask for
a passwd again. The default is 5. Set this to 0 to always
prompt for a password. If set to a value less than 0 the
user's timestamp will never expire. This can be used to
allow users to create or delete their own timestamps via
sudo -v and sudo -k respectively.
weird wabbit
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:38 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2