PDA

View Full Version : [SOLVED] Update manager didn't ask for password



aeronutt
July 24th, 2011, 05:35 PM
I just checked for updates using update manager. It found some (49) updates recommended/required, but when I clicked 'update', it started and completed the update w/o asking for sudo password.

That's not good, is it?

elliotbeken
July 24th, 2011, 05:55 PM
When did you last enter your password as if it was recent it will not ask again ?

aeronutt
July 24th, 2011, 05:59 PM
When did you last enter your password as if it was recent it will not ask again ?

I thought about that, and the first time I actually killed the download of the files, logged out, logged back in, check for updates...and it still installed w/o a password.

aeronutt
July 29th, 2011, 09:54 PM
It just did it again. I'm 100% confident I had not typed in my sudo password since I booted.

Old_Grey_Wolf
July 30th, 2011, 12:16 AM
Hum, that is strange. I have never seen updates that are labeled as "required". If you installed the updates as you said you did; then, it shouldn't be giving the option to install them again.

Do you get any further error messages when you enter "sudo apt-get update" and "sudo apt-get upgrade"?

Are you using commands; such as, "sudo -i" before this happens?

aeronutt
September 27th, 2011, 10:22 PM
Any new thoughts on this folks? I've absolutely confirmed that when I:
- Boot the computer
- Log in
- Run the 'update manager' GUI
- click on 'check'
- click on 'install updates'

that I'm never asked for sudo password.

I've also confirmed that if I run apt-get, I must run with sudo prefix.

aeronutt
October 1st, 2011, 02:20 PM
Anyone? I'd really like to confirm if this is normal or if this is a security risk.

If you're using 11.04/Natty, are you requested to enter the sudo password when using the update manager GUI?

hakermania
October 1st, 2011, 02:29 PM
Anyone? I'd really like to confirm if this is normal or if this is a security risk.

If you're using 11.04/Natty, are you requested to enter the sudo password when using the update manager GUI?

Just checked, all nomral here, 'Check for Updates' requires no passwd but 'install updates' does. ):P

aeronutt
October 1st, 2011, 03:29 PM
Just checked, all nomral here, 'Check for Updates' requires no passwd but 'install updates' does. ):P

Thanks for checking!

Well..something's odd on mine then. 'install updates' does NOT request a password for me. Oddly, I did a fresh install of 11.04 on another partition, and it does NOT require a password for 'install updates' either!!!

Kisbey
October 19th, 2011, 04:27 PM
Interesting, this just occurred for me as well, 11.10 Oneiric. Logged in this morning to check news and whatnot, system notified me there were some updates. I clicked update but was never asked for a password. I was so surpised I Googled "Ubuntu didn't ask for password" and landed here.

aeronutt
October 19th, 2011, 05:27 PM
Yea, oddly, I definately remember my 11.10 install requesting a password the first few times, but .... not anymore. No password required to do updates now on 11.10.

aeronutt
October 26th, 2011, 02:07 AM
Now, update-manager is asking for password again in my Oneiric install. Anyone have a definitive answer as to if update-manager should or shouldn't always be asking for a password?

houseworkshy
October 26th, 2011, 02:25 AM
I'm still on the lts so this may be something new. However I suspect that it should ask for a password. You could try opening a terminal and entering "sudo -k" that should kill sudo privalages. Then close the terminal and try the update thing again. If you are not asked for a password then it would ring alarm bells for me. Remember though that sudo has a default timer of 15 minets. Actually "sudo -k" is a pretty good idea after sudo anything, especially if one is browsing.

aeronutt
October 27th, 2011, 11:16 AM
I'm still on the lts so this may be something new. However I suspect that it should ask for a password. You could try opening a terminal and entering "sudo -k" that should kill sudo privalages. Then close the terminal and try the update thing again. If you are not asked for a password then it would ring alarm bells for me. Remember though that sudo has a default timer of 15 minets. Actually "sudo -k" is a pretty good idea after sudo anything, especially if one is browsing.

Good idea, but nope. Sudo -k made no difference. Password not required to update via update-manager.

rojaasensei
October 27th, 2011, 12:19 PM
I just noticed the same phenomena today.
Strange

foresthill
October 27th, 2011, 02:16 PM
Wow, this does not inspire a great deal of confidence in the security of that version of the OS. How could something as critical as that get overlooked? Kind of makes you wonder what other important stuff got neglected that has not yet come to light.

The more I see going wrong with the newer versions, the more I'm inclined to hold off on upgrading. I'm still waiting for bugs in 11.04 to get ironed out before I migrate to that version.

Sticking with 10.10 for now (maybe forever).

scania_gti
October 27th, 2011, 02:51 PM
Maybe in update manager settings cheked "install automaticaly"?

aeronutt
October 27th, 2011, 03:57 PM
Wow, this does not inspire a great deal of confidence in the security of that version of the OS. How could something as critical as that get overlooked? Kind of makes you wonder what other important stuff got neglected that has not yet come to light.

The more I see going wrong with the newer versions, the more I'm inclined to hold off on upgrading. I'm still waiting for bugs in 11.04 to get ironed out before I migrate to that version.

Sticking with 10.10 for now (maybe forever).

FYI, for me, this characteristic has been noticed in 11.04 and 11.10.

DrJohn999
October 27th, 2011, 04:15 PM
Same here -- but only since upgrading to 11.10 -- no password prompt for Update Manager to either check for updates or install, while synaptic, aptitude and apt-get prompt as expected. In my case I have multiple unresolved dependencies probably as a result of the upgrade to 11.10 over some ppa type repositories, but perhaps this is a different problem. My thought is to simply wipe the system partitions and reinstall from a checksum-verified image.

foresthill
October 30th, 2011, 09:42 AM
Turns out it's not a bug, it's a FEATURE. :lolflag:

Script Warlock
October 30th, 2011, 09:56 AM
from security (https://wiki.ubuntu.com/SecurityTeam/FAQ#Update_Manager_doesn.27t_prompt_for_security_u pdates) team

Update Manager doesn't prompt for security updates

Why does update-manager no longer prompt for the user's password?

As of Ubuntu 11.10, update-manager no longer prompts for the user's password to apply updates. This was decided to improve usability and to make it easier for users to apply security updates and therefore increase system security. The rationale is as follows:

Like in previous releases, by default only people in the admin group are allowed access to perform security updates.

Only updates for already installed software can be applied without a password. Installing additional software still requires people to enter their password.
The password prompt had become an irritant for some people such that they would just press 'Cancel' instead of installing the updates. The password prompt decreased system security for those users.
People that did dutifully apply updates became conditioned to enter their privileged password perhaps daily. When the user is prompted for the password, it should mean something and the frequency of update-manager updates meant that some people no longer thought about why they were entering their password. For these users, the password prompt had the potential to reduce security.

For environments where this change is deemed not appropriate, this functionality can be disabled by the administrator via PolicyKit or by creating users that are not in the admin group (a recommended practice to begin with).

foresthill
October 30th, 2011, 06:41 PM
Hmm. So it is indeed a "feature".

Sort of reminds me of how Ubuntu a couple versions back stopped asking for a password to mount other partitions on the hard drive, which I did not like because it allowed someone I allowed to use my computer browse my Windows partitions and files.

I like security and passwords myself, that's one of the main reasons why I use Linux. And I don't like the trend toward idiot-proofing the OS, but there's not much I can do to stop it. :(

aeronutt
October 30th, 2011, 08:00 PM
Thanks, at least now I know nothing's wrong with my system.
But, sounds like it's dummying down security. I'm guessing figuring out how to disable this 'feature' isn't trivial for the average user. Any tutorial on 'policykit' relative to disabling this?

philinux
October 30th, 2011, 08:11 PM
Thanks, at least now I know nothing's wrong with my system.
But, sounds like it's dummying down security. I'm guessing figuring out how to disable this 'feature' isn't trivial for the average user. Any tutorial on 'policykit' relative to disabling this?

I really see this as an improvement as it only exhibits this behavior for installed software and the admin user. There is no security risk in this.

unknown user
May 14th, 2012, 07:21 AM
I also came across this issue the other week and thought that my system was playing up. it is good to hear that it is a feature and not a bug. I am still in two minds though if I think it is a good feature or not. Possibly the better way around it would be to allow users the option to either enable or disable it via a check box un the update manager preferences screen. That way you cover both angles and keep everyone happy.

jazzerit
May 22nd, 2012, 04:28 PM
I really see this as an improvement as it only exhibits this behavior for installed software and the admin user. There is no security risk in this.

I dunno... I mean, if someone malicious gets control of the repositories, couldn't they push out malicious updates? It's pretty unlikely, but I assume it could happen.

zombifier25
May 22nd, 2012, 04:30 PM
I dunno... I mean, if someone malicious gets control of the repositories, couldn't they push out malicious updates? It's pretty unlikely, but I assume it could happen.

No, at least very very very hard. Even if some hackers took control of the repository, they still cannot digitally sign the packages. If Ubuntu detects unsigned packages while updating, it will scream out something like "untrusted packages" or sort.

jazzerit
May 22nd, 2012, 04:41 PM
No, at least very very very hard. Even if some hackers took control of the repository, they still cannot digitally sign the packages. If Ubuntu detects unsigned packages while updating, it will scream out something like "untrusted packages" or sort.

Oh yeah... I forgot about that. I sort of knew that ubuntu signs it packages, I'm just being very tired, and thinking about what happened over at kernel.org a little while ago. But yeah, Thanks for that.