[tpop3d-discuss] authentication problem - file permissions

Kevin Bonner keb at ctinetworks.com
Tue, 23 Sep 2003 13:30:50 -0400


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 23 September 2003 08:12, Adam Jackson wrote:
> SELECT CONCAT('/var/mail/virtual/', 'forzda.com.au','/', 'admin'),
> CONCAT('{crypt}', crypt), 'mail', 'maildir'
> FROM users WHERE id =3D 'admin' AND domain =3D 'forzda.com.au'
>=20
> drwx------    5 forzda   hosting      4096 Sep 23 21:50 admin
>
> auth-mysql-mail-group: hosting

The SQL query says to setuid to the mail user.  tpop3d config says to use=20
group perms of hosting.  So, when a successful connection/auth is made,=20
tpop3d would drop permissions to that of mail:hosting.  Your directory is=20
owned by forzda, so the user mail can't access it.  Running 'chown mail=20
/var/mail/virtual/forzda.com.au/admin' should make it work.

Kevin Bonner
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/cINO/9i/ml3OBYMRAlzgAJ4+HfRPAsvfQbtlzxgvNhCLwz1UogCeJCbs
hk2z4ugw8WdYAJUDK9wGATc=3D
=3DqDNk
=2D----END PGP SIGNATURE-----