Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old March 18th, 2005   #1
reedlaw
Just Give Me the Beans!
 
reedlaw's Avatar
 
Join Date: Feb 2005
Location: China
Beans: 49
Ubuntu Breezy 5.10
Send a message via AIM to reedlaw Send a message via MSN to reedlaw Send a message via Yahoo to reedlaw
Sudo without password bug

I had been using sudo like normal for a long while now, when suddenly I boot up today and discover that sudo is running everything immediately after the command, without asking for the root password. I am running Hoary and I apply all the synaptic updates everyday. Even when I open update-manager or synaptic, instead of the usual gksudo pop-up window that promts me for the root password I get no password prompt and the application opens. I am worried about the security implications of this and am not sure what changed in the updates that I applied to cause this behavior.
reedlaw is offline   Reply With Quote
Old March 21st, 2005   #2
reedlaw
Just Give Me the Beans!
 
reedlaw's Avatar
 
Join Date: Feb 2005
Location: China
Beans: 49
Ubuntu Breezy 5.10
Send a message via AIM to reedlaw Send a message via MSN to reedlaw Send a message via Yahoo to reedlaw
Re: Sudo without password bug

Quote:
Originally Posted by reedlaw
I had been using sudo like normal for a long while now, when suddenly I boot up today and discover that sudo is running everything immediately after the command, without asking for the root password. I am running Hoary and I apply all the synaptic updates everyday. Even when I open update-manager or synaptic, instead of the usual gksudo pop-up window that promts me for the root password I get no password prompt and the application opens. I am worried about the security implications of this and am not sure what changed in the updates that I applied to cause this behavior.
Anyone else get this problem yet? I still am not asked the root password for any activity. I can run any command simply by prefixing sudo to it. I tried logging into the root account with the original root password and it doesn't allow me to. Do I need to change my root password? What about this Ubuntu system is making sudo run without a password?
reedlaw is offline   Reply With Quote
Old March 21st, 2005   #3
HungSquirrel
Ubuntu Extra Shot
 
HungSquirrel's Avatar
 
Join Date: Oct 2004
Location: Mobile, AL, USA
Beans: 336
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to HungSquirrel Send a message via MSN to HungSquirrel
Re: Sudo without password bug

Does this happen every single time, or does it sometimes ask for a password and sometimes not? Sudo has a timeout (I believe the default is five minutes) during which time you don't need to re-enter your password every time you do a sudo command; you need only enter it the first time.

Of course, if it's not asking at all, then you have a major problem that needs to be addressed!
__________________
$ whatis themeaningoflife
themeaningoflife: not found
HungSquirrel is offline   Reply With Quote
Old March 22nd, 2005   #4
Roptaty
Just Give Me the Beans!
 
Roptaty's Avatar
 
Join Date: Dec 2004
Location: Oslo, Norway
Beans: 61
Kubuntu 8.04 Hardy Heron
Re: Sudo without password bug

What is the contents of /etc/sudoers file?
Roptaty is offline   Reply With Quote
Old April 1st, 2005   #5
reedlaw
Just Give Me the Beans!
 
reedlaw's Avatar
 
Join Date: Feb 2005
Location: China
Beans: 49
Ubuntu Breezy 5.10
Send a message via AIM to reedlaw Send a message via MSN to reedlaw Send a message via Yahoo to reedlaw
Re: Sudo without password bug

Quote:
Originally Posted by Roptaty
What is the contents of /etc/sudoers file?
here is /etc/sudoers
Quote:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults !lecture,tty_tickets

# User privilege specification
root ALL=(ALL) ALL

# Added by Ubuntu installer
reed ALL=NOPASSWD: ALL
Sudo is not asking for a password all the time. From the moment I log in I can open update-manager, synaptic, etc. all without supplying the superuser password.

Edit: Looking at the file I guessed that removing the NOPASSWD would do the trick and it did. Thanks for the suggestions. I still wonder how that got there in the first place.

Last edited by reedlaw; April 1st, 2005 at 09:57 PM..
reedlaw is offline   Reply With Quote
Old April 5th, 2005   #6
smarttaz
Just Give Me the Beans!
 
smarttaz's Avatar
 
Join Date: Mar 2005
Location: Romania
Beans: 28
Re: Sudo without password bug

Quote:
Originally Posted by reedlaw
I had been using sudo like normal for a long while now, when suddenly I boot up today and discover that sudo is running everything immediately after the command, without asking for the root password. I am running Hoary and I apply all the synaptic updates everyday. Even when I open update-manager or synaptic, instead of the usual gksudo pop-up window that promts me for the root password I get no password prompt and the application opens. I am worried about the security implications of this and am not sure what changed in the updates that I applied to cause this behavior.
Read the thread http://www.ubuntuforums.org/showthre...ghlight=visudo for a GOOD answer.

Change with visudo in the file /etc/sudoers, the line:
Code:
Defaults		!lecture,tty_tickets
with:
Code:
Defaults		!lecture,tty_tickets,timestamp_timeout=0
or:
Code:
Defaults		!lecture,!tty_tickets



because of (from the sudoers manpage):


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.

smarttaz is offline   Reply With Quote
Old April 9th, 2005   #7
rb1235
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 2
Re: Sudo without password bug

i have the reverse problem, i need to be root but cannot.
rb1235 is offline   Reply With Quote
Old April 11th, 2005   #8
Xgates
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 21
Re: Sudo without password bug

Yeah its great when you can just type --> 'sudo -s' and hit enter, and then you are at the root prompt without the need for a password, man talk about ---> ZERO SECURITY!

Tisk Tisk Ubuntu Team --->
Xgates is offline   Reply With Quote
Old April 14th, 2005   #9
Spudgun
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Wales, UK
Beans: 113
Re: Sudo without password bug

You still need a password to do that.
Spudgun is offline   Reply With Quote
Old December 28th, 2005   #10
harisund
Skinny Soy Caramel Ubuntu
 
harisund's Avatar
 
Join Date: Sep 2005
Location: Baton Rouge
Beans: 685
Xubuntu 6.06
Send a message via ICQ to harisund Send a message via AIM to harisund Send a message via MSN to harisund Send a message via Yahoo to harisund Send a message via Skype™ to harisund
Re: Sudo without password bug

Why does your last line readreed
ALL=NOPASSWD: ALL
I think that is why you are not asked for a password
harisund is offline   Reply With Quote

Bookmarks

Thread Tools
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


All times are GMT -4. The time now is 05:33 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry