[Dovecot] Fatal: Running as root isn't permitted
Juan Asensio Sánchez
okelet at gmail.com
Sun May 4 16:19:34 EEST 2008
Hi
When i try to compile 1.1rc4-0~auto+22 from source packages for
Debian, under Debian Etch 4.0r3, i get this error:
-------------------------
i486-linux-gnu-gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -Wstrict-aliasing=2 -o dovecot-auth auth.o
auth-cache.o auth-client-connection.o auth-master-connection.o
auth-master-listener.o auth-request.o auth-request-handler.o
auth-stream.o auth-worker-client.o auth-worker-server.o db-sql.o
db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o
mech-login.o mech-cram-md5.o mech-digest-md5.o mech-ntlm.o mech-otp.o
mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o
plain-common.o passdb.o passdb-blocking.o passdb-bsdauth.o
passdb-cache.o passdb-checkpassword.o passdb-passwd.o
passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o
passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-nss.o
userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o
userdb-vpopmail.o userdb-sql.o mech-gssapi.o db-ldap.o passdb-ldap.o
userdb-ldap.o -Wl,--export-dynamic libpassword.a
../lib-settings/libsettings.a ../lib-ntlm/libntlm.a
../lib-otp/libotp.a ../lib-sql/libsql.a ../lib/liblib.a -lcrypt -lpam
-L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support
-lresolv -lldap /usr/lib/libmysqlclient.so -lm -lpq
/usr/lib/libsqlite3.so -lz -ldl
mech-gssapi.o: In function `gssapi_krb5_userok':
/root/tmp/dovecot-1.1.rc4/src/auth/mech-gssapi.c:325: undefined
reference to `krb5_get_error_message'
collect2: ld returned 1 exit status
make[4]: *** [dovecot-auth] Error 1
make[4]: se sale del directorio `/root/tmp/dovecot-1.1.rc4/src/auth'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/root/tmp/dovecot-1.1.rc4/src'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/root/tmp/dovecot-1.1.rc4'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/root/tmp/dovecot-1.1.rc4'
make: *** [build-stamp] Error 2
-------------------------
I have followed these steps:
[[Included deb-src http://xi.rename-it.nl/debian/ testing-auto main in
sources.list]]
# apt-get install fakeroot dpkg-dev build-essential
# apt-get source dovecot
# cd dovecot-1.1.rc4
# apt-get build-dep dovecot
# dpkg-buildpackage -rfakeroot -b
So with the previous version, i had compiled packages in parent folder.
I don't know much about compiling, so too many questions. How can i
solve this error?
NB: Could you add in the source packages of this repository the
plugins por antispam and autocreate? Thanks.
2008/5/4 Timo Sirainen <tss at iki.fi>:
> On Sat, 2008-05-03 at 23:13 +0200, Juan Asensio Sánchez wrote:
> > Well
> >
> > I solved it. Altough "mail_uid = mailuser" is defined in dovecot.conf,
> > i must also return an "uid" from the ldap query. Changing:
> >
> > user_attrs = =home=/var/vmail/%d/%n,mailuserquota=quota=maildir:storage,=mail=maildir:/var/vmail/%d/%n/Maildir
> >
> > To:
> >
> > user_attrs = =home=/var/vmail/%d/%n,=uid=mailuser,mailuserquota=quota=maildir:storage,=mail=maildir:/var/vmail/%d/%n/Maildir
> > u
> >
> > solved the problem. Hope this could be helpful for someone.
>
> It was a bug, fixed: http://hg.dovecot.org/dovecot-1.1/rev/1b15881ed93b
>
>
More information about the dovecot
mailing list