pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "su -m" found in rc.d does not exist on my Linux



Hmm I don't why Slackware should use a different "su", but the option
exists in all Linux distributions, I know.

-m, --preserve-environment
             do not reset environment variables


Cheers, Zafer.



2006/7/30, Joel CARNAT <joel%carnat.net@localhost>:
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






Home | Main Index | Thread Index | Old Index