Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-19 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manvendra Bhangui wrote: >> How often does the code actually reference the UID/GID? Could you >> have a function to look it up and cache it in a static once found? >> >> A quick check and it looks like it's only refer

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-18 Thread Manvendra Bhangui
On Tue, 2009-08-18 at 18:34 -0500, Tom Collins wrote: > How often does the code actually reference the UID/GID? Could you > have a function to look it up and cache it in a static once found? > > A quick check and it looks like it's only referenced when adding a >

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-18 Thread Itamar Reis Peixoto
> > How often does the code actually reference the UID/GID?  Could you have a > function to look it up and cache it in a static once found? sounds great, the best solution at this moment. > A quick check and it looks like it's only referenced when adding a user or > updat

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-18 Thread Tom Collins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 17, 2009, at 4:03 PM, Matt Brookings wrote: Itamar Reis Peixoto wrote: storing uid / gid in a config file will be light Lighter than accessing an authentication database, agreed. Like I said, I'm hoping to add configuration A

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Itamar Reis Peixoto wrote: > storing uid / gid in a config file will be light Lighter than accessing an authentication database, agreed. Like I said, I'm hoping to add configuration API to vpopmail that will replace all the configure-time

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Itamar Reis Peixoto
storing uid / gid in a config file will be light On Mon, Aug 17, 2009 at 5:57 PM, Matt Brookings wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Itamar Reis Peixoto wrote: >> my suggestion is related about which user and group vpopmail run's >> >>

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Matt Brookings
thentication backend stores user and group information. This means you're accessing an authentication database for uid/gid information. Whether you choose to do password comparisons is up to you, but the call is just as expensive. - -- /* Matt BrookingsGnuPG Key FAE067

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Itamar Reis Peixoto
my suggestion is related about which user and group vpopmail run's not about authentication. no authentication is involved in this On Mon, Aug 17, 2009 at 5:52 PM, Matt Brookings wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tren Blackburn wrote: >> And since no one else has me

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tren Blackburn wrote: > And since no one else has mentioned this...some of us don't use > /etc/passwd for authentication. So searching /etc/passwd would not work > anyway. Isn't there a C function call to check user/group id? Or at > least a universal

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Tren Blackburn
okings To: vchkpw@inter7.com Sent: Mon Aug 17 09:18:19 2009 Subject: Re: [vchkpw] vpopmail UID/GID hardcoded in config.h -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Itamar Reis Peixoto wrote: > currently vpopmail user and vchkpw group's need's to be created before > running ./c

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Itamar Reis Peixoto
it can, but I need to use a fixed uid and gid, this is not good. the vpopmail can be compiled in a build system like koji http://koji.fedoraproject.org/koji/ and it will be installed in another machine with different's uid's / gid's. > Could the user and group be created in the %pre section

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread T.J. Drennan
Itamar Reis Peixoto wrote: currently vpopmail user and vchkpw group's need's to be created before running ./configure. this is not good for packaging it as rpm, because in rpm the user and group are created in %post section (after vpopmail installed) #define VPOPMAILGID 503 #define VPOPMAILUID

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Itamar Reis Peixoto
on some systems. > > I'm looking at adding a configuration file to vpopmail for the 5.5 branch that > will contain all the stuff that usually you have to set at configure time.   > The > UID/GID would be contained here as well, but that's not currently available. > Jus

Re: [vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Matt Brookings
Parsing /etc/passwd every time a vpopmail binary is invoked could be expensive on some systems. I'm looking at adding a configuration file to vpopmail for the 5.5 branch that will contain all the stuff that usually you have to set at configure time. The UID/GID would be contained here as well,

[vchkpw] vpopmail UID/GID hardcoded in config.h

2009-08-17 Thread Itamar Reis Peixoto
currently vpopmail user and vchkpw group's need's to be created before running ./configure. this is not good for packaging it as rpm, because in rpm the user and group are created in %post section (after vpopmail installed) #define VPOPMAILGID 503 #define VPOPMAILUID 507 any chance to improve t

Re: [vchkpw] Vpopmail uid/gid problem

2005-12-12 Thread Rick Widmer
Peter Hillerström wrote: Hello! I find the documentation for vpopmail very lacking on the subject of uid/gid handling. Where does vpopmail look up the uid/gid information for virtual domains (and their users) when using the default flat file db? /var/qmail/users/assign Why is the uid

[vchkpw] Vpopmail uid/gid problem

2005-12-12 Thread Peter Hillerström
Hello! I find the documentation for vpopmail very lacking on the subject of uid/gid handling. Where does vpopmail look up the uid/gid information for virtual domains (and their users) when using the default flat file db? Why is the uid/gid information hard-coded to vpopmail on the

Re: [vchkpw] Purpose of uid/gid fields in MySQL tables

2005-02-28 Thread Tom Collins
On Feb 28, 2005, at 2:39 PM, [EMAIL PROTECTED] wrote: I was just checking my database and the uid and gid fields are always '0' for users. I checked in vpopuser source and in the function vadduser() from vpopmail.c it seems these are not set during account creation, and are only used in a chown()

[vchkpw] Purpose of uid/gid fields in MySQL tables

2005-02-28 Thread brianmas
Hello List, a search of archives didn't turn up anything so ... I was just checking my database and the uid and gid fields are always '0' for users. I checked in vpopuser source and in the function vadduser() from vpopmail.c it seems these are not set during account creation, and are only used in a

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread X-Istence
r that takes me through the files and allows me to edit them. /etc/shadow doesn't seem to have any uid/gid in there, but I could be wrong. I think I smell an enhancement to vpopmail just waiting to happen. Wouldn't it be nice if I could specify the uid/gid when I run --configure??

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Ajai Khattri
Don Walters wrote: I have vipw (I'm running RH9) but it seems to be just a incantation of the vi editor that takes me through the files and allows me to edit them. Essentially it *is* a wrapper but it also does some file-locking and other housekeeping... RH also has pwd_conv to manually create /

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Ken Jones
ipw (I'm running RH9) but it seems to be just a incantation of the > vi editor that takes me through the files and allows me to edit them. > /etc/shadow doesn't seem to have any uid/gid in there, but I could be > wrong. > > I think I smell an enhancement to vpopmail just waiting

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Don Walters
h the files and allows me to edit them. /etc/shadow doesn't seem to have any uid/gid in there, but I could be wrong. I think I smell an enhancement to vpopmail just waiting to happen. Wouldn't it be nice if I could specify the uid/gid when I run --configure?? I mean, that's k

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Ajai Khattri
Cristiano Deana wrote: User and group are vpopmail and vchkpw. UID and GID are specified in your operating system's configuration file. Usually they are not in /etc/passwd but in another file, readeable only by root (master.passwd, shadow, something_else). You must read you man pages about pa

Re: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Cristiano Deana
Il giorno Friday 07 November 2003 08:23, Don Walters mi scriveva: > I have tried going into some of the config files and I found a couple of > places where it specifies 89.89 for the uid/gid. I have even tried > changing these to what I want them to be, but now my qmail isn't worki

RE: [vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Ross Davis - DataAnywhere.net
0-470-9192 -Original Message- From: Don Walters [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:23 PM To: [EMAIL PROTECTED] Subject: [vchkpw] vpopmail uid/gid 89 Can somebody explain what I need to do in order to change the uid/gid for vpopmail to something other than

[vchkpw] vpopmail uid/gid 89

2003-11-07 Thread Don Walters
Can somebody explain what I need to do in order to change the uid/gid for vpopmail to something other than 89.89. I have poured over the archives looking for a way, but I can't find anything that explains how. Is there some special reason it needs to be 89? I have tried going into so

Re: [vchkpw] dom_89 and uid/gid with mysql

2002-10-22 Thread Ken Jones
dom_89 should exist within the mysql dir_control table to keep track of directory layouts for domains. The name should be dom_'user id of vpopmail user'. Ken Jones On Friday 18 October 2002 09:15 am, [EMAIL PROTECTED] wrote: > Are you asking permission? :) > > There is no software out there that

Re: [vchkpw] dom_89 and uid/gid with mysql

2002-10-18 Thread vol
Are you asking permission? :) There is no software out there that we are aware of that creates a domain 'dom_89'. Go ahead and remove it. tech wrote: > > hello all, > > i have 2 questions: > > can i delete the dom_89 domain? (why is it created?) > > why the pw_uid and pw_gid is 0 and not 89

[vchkpw] dom_89 and uid/gid with mysql

2002-10-18 Thread tech
hello all, i have 2 questions: can i delete the dom_89 domain? (why is it created?) why the pw_uid and pw_gid is 0 and not 89? thanks in advance for your help ;-) Ivan Rambeau FranceOnLine

[vchkpw] executing commands ... without the need of vpop UID/GID

2002-09-10 Thread Matthias Henze
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, atatched you will find a litte pice of alpha quality code allowing to execute some vpopcommands WITHOUT the need of vpop UID/GID. the programm "vcommander" listens on a port using tcpserver (what else :-). i use it for my tests like t

wrong UID/GID after moving to a new HDD .. "wrong password"

2001-08-06 Thread Anton Pirnat
our HDD ran out of space so i had to move to a new one. I did install a base qmail/vpopmail and followed LWQ. All was working well, but not the pop3d authentication. :( After checking the whole install several times i found out, that vdominfo shows me UID 504 and GID 100 for my domains, but t

Re: UID/GID Domains

2001-06-08 Thread Ken Jones
var/qmail/users/assign and change the path to the domain and the uid/gid then rebuild the cdb file with /var/qmail/bin/qmail-newu Then you would need to update the mysql table to reflect the new path to each users email directory. Don't change any of the other fields. Ken

UID/GID Domains

2001-06-08 Thread Kieran Barnes
Is there a way to convert an existing domain (~vpopmail/domains/domain) to be in /etc/passwd users home I understand I'd need to move the actual data - assuming there is no mail in there. What else would I need to alter? I use mysql "in large site mode". Just the pw_dir, pw_uid and pw_gid field

from 1 uid/gid to a uid/gid per domain.....how?

2001-02-04 Thread Yavuz Aydin
Hello all, I want to move from 1 uid/gid to a uid/gid per domain. But I want to have the existing domains to remain unmodified. Can i just change /var/qmail/users/assign and then chmod -R uid.gid /home/vpopmail/domains/domain.com, and then run /var/qmail/bin/qmail-newu? Will that work? Thanks

Re: UID/GID

2001-01-17 Thread Francis P. Ling
Is this action just restore the ownership and re-enforce the UID/GID to the file/directory? This is because, let's say on the old machine the UID/GID of vpopmail:vchkpw is 1000:1000 and on the new machine is vpopmail:vchkpw 1200:1234 Thanks. > Not in all cases. You may well use ano

Re: UID/GID

2001-01-16 Thread Bill Shupp
Just remember that the vpopmail.vchkpw uid/gid is stored in the /var/qmail/users/assign file. If you are manually recreating the virtualdomain on the new box (vadddomain), then this isn't an issue. But if you're copying over the qmail control files (like I did once), you need to make

Re: UID/GID

2001-01-16 Thread Gabriel Ambuehl
-BEGIN PGP SIGNED MESSAGE- Hello Francis, Tuesday, January 16, 2001, 9:38:32 AM, you wrote: > At the new target, I will simply restore the tar gzip file under the same > location. > Now, must I use the same UID/GID as in the old machine? What effect if I > use other UID/GID,

RE: UID/GID

2001-01-16 Thread Shawn Delano
EMAIL PROTECTED] Southern California Systems http://www.socalsys.com/ -Original Message- From: Francis P. Ling [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:39 AM To: [EMAIL PROTECTED] Subject: UID/GID Hi all, Let's say my vchkpw UID/GID is 500

UID/GID

2001-01-16 Thread Francis P. Ling
Hi all, Let's say my vchkpw UID/GID is 500/500. If I want the whole domain files to move to another site/hdd, I would simply tar gzip all files under ~vpopmail/domains/ At the new target, I will simply restore the tar gzip file under the same location. Now, must I use the same UID/G

variable uid/gid in vpopmail-4.9.5

2000-10-09 Thread Krzysztof Dabrowski
Hello.. vpopmail 4.9.5 incorporates most of my changes but also adds new option -u and removes the old -u/-g for choosing uid/gid. This patch adds that functionality back (with different option names: -i/-g). the uid/gid selection "overwrites" the -u results so you can use -u to grab