On Mon, Jul 31 2006 - 09:54, Jeremy C. Reed wrote: > > + _doit='/usr/bin/su -m vscan -c > > '\''/bin/sh -c "/usr/pkg/bin/freshclam -c 2 -d"'\''' > > + eval /usr/bin/su -m vscan -c ''\''/bin/sh' -c > > '"/usr/pkg/bin/freshclam' -c 2 '-d"'\''' > > ++ /usr/bin/su -m vscan -c '/bin/sh -c "/usr/pkg/bin/freshclam -c 2 -d"' > > /bin/bash: vscan: No such file or directory > > What is that bash error for? > well... I don't really know... I expect it to be from the rc.d script which is run by /bin/sh (which is /bin/bash on slackware). ######################################################################## root@guarana:~# echo $SHELL /bin/bash root@guarana:~# /usr/pkg/share/examples/rc.d/freshclamd start Starting freshclamd. /bin/bash: vscan: No such file or directory root@guarana:~# exec /bin/csh %echo $SHELL /bin/bash %/usr/pkg/share/examples/rc.d/freshclamd start Starting freshclamd. /bin/bash: vscan: No such file or directory ######################################################################## > > I checked the "su" manpage and this Linux version has no "-m" flag. > > I see mine is part of the 'shadow 4.0.3' package. It is still the case > > in the bleeding-edge branch (meaning upgrade has to be manual). > > Your su from shadow at that version should have it since it had it way > before that version and after. su -m is standard. > > Did you try running su -m manually to check? > yes I did. ######################################################################## root@guarana:~# /usr/bin/su -m vscan -c '/bin/sh -c "/usr/pkg/bin/freshclam -c 2 -d"' /bin/bash: vscan: No such file or directory root@guarana:~# /usr/bin/su -m ptijo -c '/bin/ls /' /bin/bash: ptijo: No such file or directory root@guarana:~# /usr/bin/su ptijo -c '/bin/ls /' Linux-2.6.11.12-xenU boot etc lib mnt root sys usr bin dev home lost+found proc sbin tmp var root@guarana:~# /bin/csh %/usr/bin/su -m ptijo -c '/bin/ls /' /bin/bash: ptijo: No such file or directory %/usr/bin/su ptijo -c '/bin/ls /' Linux-2.6.11.12-xenU boot etc lib mnt root sys usr bin dev home lost+found proc sbin tmp var ######################################################################## looks like the 'cu' command runs bash (or sh, which is a symlink to bash) and '-m' makes it believe the next args is a command rather than a username. > Your error message above is caused by something else. I didn't succeed in compiling the "shadow" package with the "new" su command, so I can't tell for sure that it is "su" related. But, in ChangeLog, from "shadow-4.0.14", I read: ######################################################################## <...> 2005-12-10 Tomasz K³oczko <kloczek%pld.org.pl@localhost> <...> * NEWS, src/su.c: added handle -s/--shell, -m/-p/preserve-environment options like GNU su (based on patches from Debian submited by Nicolas François <nicolas.francois%centraliens.net@localhost>) <...> ######################################################################## This date corresponds to the release of "shadow-4.0.14". Debian (sarge I think) seems to have a lower version too, but Zafer said "<...>the option exists in all Linux distributions, I know." ; so I'm puzzled :-/
Attachment:
pgp8QvObaWjJ9.pgp
Description: PGP signature