On Tue, Aug 15, 2000 at 04:25:55PM -0500, Chris Garrigues wrote:
> 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.

Replace "find ." with "find /var/qmail /etc/qmail/owners", and yes, it
should work.  /etc/qmail/owners (a symlink from /var/qmail/owners)
contains a set of files that are stat'ted to determine the desired user
or group ID.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

PGP signature

Reply via email to