/usr/bin/sudo: invalid option -- '-'

Bug #802191 reported by Michael Monreal on 2011-06-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stephen Brandt

Bug Description

Using haguichi-1.0.9-26.1.noarch on Fedora 15, when starting Haguichi I see the following on the console:

[mimox ~]$ haguichi
/usr/bin/sudo: invalid option -- '-'
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u
            user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...

I guess whatever sudo is used for will not work in this case?

Stephen Brandt (ztefn) wrote :

Hi Michael,

That's normal on systems with only plain sudo available. On startup Haguichi checks if the configured sudo command is still available by running "{configured sudo command} --help". Because sudo (unlike gksudo, gnomesu, kdesudo, etc) doesn't have the option --help, it's displaying the "invalid option" message.

Please be aware that without graphical sudo command on your system (i.e. Fedora), you need to set up the right permissions to start and stop the hamachi deamon in advance.

Changed in haguichi:
status: New → Won't Fix
Stephen Brandt (ztefn) wrote :

I've just committed a faster and cleaner way to check if a command exists on the system: http://bazaar.launchpad.net/~ztefn/haguichi/1.0/revision/202

Using this new method the reported message will not occur.

Changed in haguichi:
status: Won't Fix → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Stephen Brandt (ztefn)
milestone: none → 1.0.11
Stephen Brandt (ztefn) on 2011-08-27
Changed in haguichi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers