[EMAIL PROTECTED] qmailscan]# su -c "/var/qmail/bin/qmail-scanner-queue.pl -g" qmailq
[EMAIL PROTECTED] qmailscan]#


After the su command, there's no change to quarantine-attachments.db.
What's the difference between the way those two commands work??

Does qmailq have a no login shell in /etc/passwd (e.g. /bin/false,
/etc/noway or something similar)?


su -c logs into the account and runs the command, setuidgid doesn't log in.

BTY ... qmailq should be qscand, I have apparently confused things by using
my slim knowledge of older qmailscan versions.


Micha Silver writes:


What happens when you run:


su -c "/var/qmail/bin/qmail-scanner-queue.pl -g" qscand

does it error out or actually work?


Hello Ed:


It's strange. When I use the daemontools setuidgid it works, but with su -c
it silently ends, without doing anything:


[EMAIL PROTECTED] qmailscan]# setuidgid qmailq /var/qmail/bin/qmail-scanner-queue.pl
-g
perlscanner: generate new DB file from
/var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 16 entries.
[EMAIL PROTECTED] qmailscan]# su -c "/var/qmail/bin/qmail-scanner-queue.pl -g" qmailq
[EMAIL PROTECTED] qmailscan]#


After the su command, there's no change to quarantine-attachments.db.
What's the difference between the way those two commands work??


--Micha




------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to