Ticket #86 (new Defect)

Opened 3 months ago

Last modified 4 weeks ago

Make autosu work on setups where sudo doesn't require password

Reported by: isak Assigned to: isak
Priority: Medium Milestone: 1.3.1
Component: main Version: 1.2.4
Severity: Minor Keywords: autosu ubuntu debian
Cc:

Description

If sudo is setup to not require password, autosu will not work.

It would be nice if autopackage could detect this and don't display a password prompt. It should, however, ask whether the application should be installed systemwide or locally.

Mailing list discussion.

Change History

05/26/08 14:15:23 changed by lemmit

You could try adding something like below. The syntax is probably not autopackageish, but you'll get the idea. It works on my Ubuntu 7.04 box both when passwordless sudo is enabled and when disabled.

echo | sudo -S echo > /dev/null 2>&1

if [ $? = 0 ]; then

echo "I'm root and will install lots of wooden horse thingies"

else

echo "seems we need a password after all"

fi

08/01/08 20:02:18 changed by Jan-Nik

  • milestone changed from 1.2.6 to 1.3.

Milestone 1.2.6 deleted

08/04/08 11:01:11 changed by Jan-Nik

  • milestone changed from 1.3 to 1.3.1.