LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2007, 06:03 PM   #1
Lantius
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
is possible that sudo always asks the password?


Hello !!!


I have a problem. Sudo asks for password sometimes. If you are using sudo in the first time after turn on the computer, It will ask you for the password and then If you use it again, probably It will not ask you the password. It is a problem to me.

are there any way to get that sudo always asks for the password?


well that is all !

thanks for your time !

greetings
 
Old 05-08-2007, 06:22 PM   #2
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
How are your sudoers privileges set?

Code:
 $ visudo /etc/sudoers
It should look something like this:

Quote:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL
<username> ALL=(ALL) ALL
~
~
~
~
~
~
~
~
 
Old 05-09-2007, 01:40 PM   #3
Lantius
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I think what you have writted about it it is not useful for me.

If I use that code sudo will never ask for the password, I need that sudo always asks for the password. ALWAYS. Does not matter if you have sent the password 300 times before I need It asks for the password again and always.

Well, I hope you understood me.

Greetings !
 
Old 05-09-2007, 04:20 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you have the root password you can just use su - (su space dash). It will always ask you for the password.
 
Old 05-09-2007, 04:30 PM   #5
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Lantius,

The /etc/sudoers file determines how sudo works on your system. That's why I asked you to post yours here... so we can determine how you have it set up. Maybe we can assist you with your problem if we knew how you have sudo set up on your system.
 
Old 05-09-2007, 04:31 PM   #6
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
From the sudoers man page:
Code:
       timestamp_timeout
                   Number of minutes that can elapse before sudo will ask for
                   a passwd again.  The default is 15.  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.
 
  


Reply



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
Windows -> Ubuntu asks for Password.. RetepNamenots Linux - Networking 6 03-25-2007 12:38 PM
samba always asks for a password ErrorBound Linux - Networking 1 07-19-2006 07:25 PM
linux asks me for a password feigenluis Linux - Newbie 10 05-31-2005 06:07 AM
network asks for password????? naginata Linux - Networking 1 03-28-2004 09:45 AM
Samba asks password element Linux - Networking 1 09-11-2003 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:23 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
Open Source Consulting | Domain Registration