Dear list,
I was playing with xfe (which by the way I consider a great program) and
noticed that opening a root window with sudo in OBSD doesn't work.
After a bit of debugging, I found out that the root cause is the
following definition inside xfedefs.h:
#define SUDOCMD "-fn 7x14 -geometry 60x4 -e sudo su -c 'nohup xfe >& /dev/null
& sleep 1'"
Now, launching sudo that way returns an error:
just22@poseidon:[xfe]> sudo su -c ls
su: no such login class: ls
so basically sudo is parsing the "-c" option instead of passing it to
su. Probably this is just a bad practice in sudo usage, nevertheless I
never encountered such a problem in the Linux world...
Now: which should be the right suggestion to make upstream? How the
command should be written (preferably preserving the "su" call, just to
minimize the impact on the code)?
>From the sudo's man page:
-- The -- option indicates that sudo should stop processing
command line arguments.
I tried something like this, without luck:
just22@poseidon:[xfe]> sudo -- su -c ls
su: no such login class: ls
(but it's very likely I'm misinterpreting the option).
And, in any case, why the same command works in Linux? do they use a
modified/patched version?
Thanks in advance for your time
--
Alessandro DE LAURENZIS
[mailto:[email protected]]
LinkedIn: http://it.linkedin.com/in/delaurenzis