[Bug 792347] [NEW] Permission for /etc/postfix not set right when building sasl_password.db using postmap command

Jan 792347 at bugs.launchpad.net
Fri Jun 3 12:48:17 UTC 2011


Public bug reported:

Binary package hint: postfix

I tried to as sasly-authentication to my satellite install of postfix.
In the postmap step to build passw.db an error oocured due to wrong
permissions for /etc/postfix directory. Setting the owner of that
directory to 'postfix' solved the problem. The own should be set right
in the first place.

Below is my console session with futher information (including package
version and ubuntu version). Note that it is a root-sheel:

confus at confus:~$ lsb_release -rd
Description:	Ubuntu 11.04
Release:	11.04
confus at confus:~$ apt-cache policy postfix
postfix:
  Installed: 2.8.2-1ubuntu2.1
  Candidate: 2.8.2-1ubuntu2.1
  Version table:
 *** 2.8.2-1ubuntu2.1 0
        500 http://ubuntu.inode.at/ubuntu/ natty-updates/main amd64 Packages
        500 http://ubuntu.inode.at/ubuntu/ natty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.8.2-1ubuntu1 0
        500 http://ubuntu.inode.at/ubuntu/ natty/main amd64 Packages
root at confus:/etc/postfix# echo 'smtp_sasl_auth_enable = yes' >> main.cf
root at confus:/etc/postfix# echo 'smtp_sasl_security_options = noplaintext noanonymous' >> main.cf
root at confus:/etc/postfix# echo 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd' >> main.cf
root at confus:/etc/postfix# ll
total 116
drwxr-xr-x   3 root   root    4096 2011-06-03 13:56 ./
drwxr-xr-x 154 root   root   12288 2011-06-03 13:33 ../
-rw-r--r--   1 root   root     318 2011-06-03 13:32 dynamicmaps.cf
-rw-r--r--   1 root   root    1562 2011-06-03 13:53 main.cf
-rw-r--r--   1 root   root    5563 2011-06-03 13:32 master.cf
-rw-r--r--   1 root   root   19509 2011-05-10 15:06 postfix-files
-rwxr-xr-x   1 root   root    8729 2011-05-10 15:06 postfix-script*
-rwxr-xr-x   1 root   root   25752 2011-05-10 15:06 post-install*
drwxr-xr-x   2 root   root    4096 2011-05-10 15:06 sasl/
-rw-------   1 confus confus    51 2011-06-03 13:56 sasl_passwd
-rw-r--r--   1 root   root      28 2011-06-03 13:43 sender_canonical
-rw-r--r--   1 root   root   12288 2011-06-03 13:47 sender_canonical.db
root at confus:/etc/postfix# postmap hash:sasl_passwd 
postmap: fatal: open database sasl_passwd.db: Permission denied

** Affects: postfix (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: config permissions postfix

** Summary changed:

- Permission for /etc/postfix not set right when building sasl_password.db
+ Permission for /etc/postfix not set right when building sasl_password.db using postmap command

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in Ubuntu.
https://bugs.launchpad.net/bugs/792347

Title:
  Permission for /etc/postfix not set right when building
  sasl_password.db using postmap command



More information about the Ubuntu-server-bugs mailing list