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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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, |
|
|||
|
"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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|