If I'm running with BruceG's autouidgid patch and want to change the uids and
gids that qmail uses, am I correct in assuming this will work:
/etc/rc.d/init.d/qmail stop
/etc/rc.d/init.d/smtp stop
/etc/rc.d/init.d/pop3d stop
/etc/rc.d/init.d/imapd stop
vi /etc/passwd # Do my dirty business
vi /etc/shadow # Do more dirty business
cd /var/qmail
find . -follow -user <oldnum> -exec chown alias {} \;
find . -follow -user <oldnum> -exec chown qmaild {} \;
find . -follow -user <oldnum> -exec chown qmaill {} \;
find . -follow -user <oldnum> -exec chown qmailp {} \;
find . -follow -user <oldnum> -exec chown qmailq {} \;
find . -follow -user <oldnum> -exec chown qmailr {} \;
find . -follow -user <oldnum> -exec chown qmails {} \;
find . -follow -group <oldnum> -exec chgrp qmail {} \;
find . -follow -group <oldnum> -exec nofiles qmail {} \;
/etc/rc.d/init.d/qmail start
/etc/rc.d/init.d/smtp start
/etc/rc.d/init.d/pop3d start
/etc/rc.d/init.d/imapd start
I wanted to ask before I try it.
Chris
--
Chris Garrigues http://www.DeepEddy.Com/~cwg/
virCIO http://www.virCIO.Com
4314 Avenue C
Austin, TX 78751-3709 +1 512 374 0500
My email address is an experiment in SPAM elimination. For an
explanation of what we're doing, see http://www.DeepEddy.Com/tms.html
Nobody ever got fired for buying Microsoft,
but they could get fired for relying on Microsoft.
PGP signature