Bug 210936 - [mail/maildrop] pkg-static: Unknown user: --- 'uid'
Summary: [mail/maildrop] pkg-static: Unknown user: --- 'uid'
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: Guido Falsi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-09 08:24 UTC by Aleks
Modified: 2016-08-26 11:43 UTC (History)
0 users

See Also:
madpilot: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleks 2016-07-09 08:24:53 UTC
vmail:*:1005:1005:Virtual Mail User:/var/spool/virtual:/dev/null
vmail:*:1005:

/usr/ports/mail/maildrop# cd /usr/ports/mail/maildrop &&  make WITH_AUTHLIB=yes MAILDROP_TRUSTED_USERS=vmail MAILDROP_SUID=1005 MAILDROP_SGID=1005

Make install

pkg-static: Unknown user: '1005'
pkg-static: Unknown user: '1005'

no install
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-07-16 15:09:39 UTC
The bug is not on pkg side but on the maildrop port which passed uid/gid rather than names. The reason to use names, is that when installing the package anywhere even if the uid are different than when package gets installed it will end up being owned by the proper user
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2016-07-17 16:57:03 UTC
Hi,

I'm looking into this one.

Thanks for reporting and pointing me to it.
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2016-07-17 17:04:29 UTC
Hi again,

I did not even remember this, but the port has this comment in the Makefile heading:

# MAILDROP_SGID=<groupname>     Maildrop will be installed with suid
#                               permissions for MAILDROP_SUID, and sgid
#                               permissions for MAILDROP_SGID.
#                               NOTE: must be a valid username/groupname
#                               at installation time, numeric uids/gids
#                               and non existing users will cause the
#                               installed package to miss files.


Which clearly states the variable should contain a valid username/groupname.

The reason the variable is "UID/GID" is historical, I took the port with this variable name and changing it would make working configurations fail.

I'm open to suggestions on how to make the message more prominent, but I expect people using these variables to having read the Makefile, since that's the only way to know these customisations are available in the first place.
Comment 4 Aleks 2016-07-17 17:36:07 UTC
Not without reason have come up with !!!
What to do is come up to me now and write ??
Comment 5 Aleks 2016-07-17 17:36:43 UTC
cd /usr/ports/mail/maildrop &&  make WITH_AUTHLIB=yes MAILDROP_TRUSTED_USERS=vmail MAILDROP_SUID=vmail MAILDROP_SGID=vmail &&  make install
===>  Installing for maildrop-2.8.3_2
===>   maildrop-2.8.3_2 depends on executable: courierauthconfig - found
===>   maildrop-2.8.3_2 depends on shared library: libpcre.so - found (/usr/local/lib/libpcre.so)
===>   maildrop-2.8.3_2 depends on shared library: libcourier-unicode.so - found (/usr/local/lib/libcourier-unicode.so)
===>  Checking if maildrop already installed
===>   Registering installation for maildrop-2.8.3_2
Installing maildrop-2.8.3_2...
pkg-static: Unknown user: '1005'
pkg-static: Unknown user: '1005'
Comment 6 Guido Falsi freebsd_committer freebsd_triage 2016-07-18 16:50:30 UTC
(In reply to Aleks from comment #5)

I'm unable to reproduce this issue, but there is something strange in yout command input/output:

> cd /usr/ports/mail/maildrop &&  make WITH_AUTHLIB=yes
> MAILDROP_TRUSTED_USERS=vmail MAILDROP_SUID=vmail MAILDROP_SGID=vmail && 
> make install

First of all the command line arguments are needed for both the make and the make install commands, they are not transitioned over automatically.

> ===>  Installing for maildrop-2.8.3_2
> ===>   maildrop-2.8.3_2 depends on executable: courierauthconfig - found
> ===>   maildrop-2.8.3_2 depends on shared library: libpcre.so - found
> (/usr/local/lib/libpcre.so)
> ===>   maildrop-2.8.3_2 depends on shared library: libcourier-unicode.so -
> found (/usr/local/lib/libcourier-unicode.so)
> ===>  Checking if maildrop already installed
> ===>   Registering installation for maildrop-2.8.3_2
> Installing maildrop-2.8.3_2...
> pkg-static: Unknown user: '1005'
> pkg-static: Unknown user: '1005'

Not sure where the 1005 is coming from, since you are not passing it to the "make install" command line. Can I see your /etc/make.conf file (at least the relevant part).

I suspect you have some definitions for MAILDROP_SUID and MAILDROP_SGID in your make.conf which are applying when not overridden from the command line.
Comment 7 Guido Falsi freebsd_committer freebsd_triage 2016-07-29 14:17:22 UTC
Hi,

do you have any further feedback about this issue?

Thanks.
Comment 8 Aleks 2016-07-30 17:26:00 UTC
жду погоду
I am waiting for the weather
Comment 9 Guido Falsi freebsd_committer freebsd_triage 2016-07-31 09:26:00 UTC
(In reply to Aleks from comment #8)
> жду погоду
> I am waiting for the weather

I'm sorry I don't understand, how the weather (meaning meteorological conditions) related to this?

I'm sorry I can't read Cyrillic.

Could you explain?
Comment 10 Guido Falsi freebsd_committer freebsd_triage 2016-08-22 11:00:21 UTC
Do you have any further feedback?

If you don't reply I'll assume it was a local problem on your machine and close this bug accordingly in a few days.
Comment 11 Aleks 2016-08-26 11:43:49 UTC
decision =



/etc/services

vmail<-><------>1005/tcp
vmail<-><------>1005/udp