Subject: "su -m" found in rc.d does not exist on my Linux
To: NetBSD/pkgsrc-users <pkgsrc-users@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 07/30/2006 11:50:45
--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

Hi,

I was installing clamav on a Linux domU (Slackware 10.2 /
2.6.11.12-xenU) from pkgsrc-2006Q2. Compilation and installation wen't
OK but when I started the rc.d script I got:
########################################################################
# sudo bash -x /usr/pkg/share/examples/rc.d/freshclamd start
<...>
Starting freshclamd.
+ '[' -n '' ']'
+ _doit='/usr/pkg/bin/freshclam -c 2 -d'
+ '[' -n vscan ']'
+ _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
+ '[' -z '' ']'
+ return 1
+ '[' start '!=' stop ']'
<...>
########################################################################

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).

I read the su.1.xml from the '4.0.17' version, and there seem to be "-m"
option. I didn't check when it appears though.

Anybody has such a shadow version on his Linux ? Meaning I would have to
manually upgrade the 'shadow' version rather that tweak the rc.d script.

TIA,
	Jo

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFEzID10/VH7L7F7Y4RAuE9AKCJQ+WJ5pHUy7JZLtq4MIHy/VaxQACfdvrt
ERM+STqbCFmZrl+d9A/Eo/k=
=CJi2
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--