Package: sux
Version: 1.0.1-6
Severity: normal

Hello Meike,

sux -h and sux --help seems to output su -h message, which is quite confusing:

sux --help
Usage: su [options] [LOGIN]

Options:
  -c, --command COMMAND         pass COMMAND to the invoked shell
  -h, --help                    display this help message and exit
  -, -l, --login                make the shell a login shell
  -m, -p,
  --preserve-environment        do not reset environment variables, and
                                keep the same shell
  -s, --shell SHELL             use SHELL instead of the default in passwd

Furthermore su-to-root has inconsistent behaviour whether DISPLAY is set or not:

%unset DISPLAY
%sux id
Unknown id: id
%sux -c id
Password:
uid=0(root) gid=0(root) groupes=0(root)
%DISPLAY=:0 sux id
Unknown id: id
%DISPLAY=:0 sux -c id
Unknown id: eval $TERM;      exec env  TERM='linux' DISPLAY=':0'  "id";

'man sux' seems to imply that [username] is an optionnal parameter but it is
not the case:

%DISPLAY=:0 sux root id
Password:
uid=0(root) gid=0(root) groupes=0(root)
%sux root id
Password:
zsh: can't open input file: id
%sux root -c id
Password:
uid=0(root) gid=0(root) groupes=0(root)
%DISPLAY=:0 sux root -c id
Password:
env: -c: No such file or directory

So If DISPLAY is set, then [username] is mandatory and -c must beommited and it 
is
is the opposite when DISPLAY is not set.

Sorry to report three bug in one, but I am trying to fix su-to-root and I am
confused about the expected behaviour.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to