Re: qmail GID change

This is a discussion on Re: qmail GID change within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Dave, I am a bit puzzled, I compiled qmail on one machine and transferred the binaries to another machine with ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-01-2004
Vahid Moghaddasi
 
Posts: n/a
Default Re: qmail GID change

Dave,
I am a bit puzzled, I compiled qmail on one machine and transferred the
binaries to another machine with totally different UID's and GID's
than where I compiled it on.
Sorry, maybe I didn't explain the problem clearly, here is what I
have in my /etc/passwd file:
alias:x:7790:2108::/var/qmail/alias:/bin/true
qmaild:x:7791:2108::/var/qmail:/bin/true
qmaill:x:7792:2108::/var/qmail:/bin/true
qmailp:x:7793:2108::/var/qmail:/bin/true
qmailq:x:7794:2107::/var/qmail:/bin/true
qmailr:x:7795:2107::/var/qmail:/bin/true
qmails:x:7796:2107::/var/qmail:/bin/true
but I need to change gid's 2108 to 400 and 2107 to 401.

Can I just stop qmail, change the gid's in passwd file, chgrp the
files and restart qmail?
Thanks,

Reply With Quote
  #2 (permalink)  
Old 09-01-2004
Dave Sill
 
Posts: n/a
Default Re: qmail GID change

"Vahid Moghaddasi" <sunman@ureach.com> writes:

> I am a bit puzzled, I compiled qmail on one machine and transferred the
> binaries to another machine with totally different UID's and GID's
> than where I compiled it on.


You can't do that.

> Sorry, maybe I didn't explain the problem clearly, here is what I
> have in my /etc/passwd file:
> alias:x:7790:2108::/var/qmail/alias:/bin/true
> qmaild:x:7791:2108::/var/qmail:/bin/true
> qmaill:x:7792:2108::/var/qmail:/bin/true
> qmailp:x:7793:2108::/var/qmail:/bin/true
> qmailq:x:7794:2107::/var/qmail:/bin/true
> qmailr:x:7795:2107::/var/qmail:/bin/true
> qmails:x:7796:2107::/var/qmail:/bin/true
> but I need to change gid's 2108 to 400 and 2107 to 401.
>
> Can I just stop qmail, change the gid's in passwd file, chgrp the
> files and restart qmail?


No, you have to compile qmail on a system with the UIDs/GIDs as the
system you're going to run it on. You can temporarily change the
UIDs/GIDs on the build system to match the target system, then set
them back when you're done with the build.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0