Subject: kern/36963: NetBSD complains about permissions problems
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <jan.m.danielsson@gmail.com>
List: netbsd-bugs
Date: 09/10/2007 12:35:00
>Number:         36963
>Category:       kern
>Synopsis:       NetBSD complains about permissions problems
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 10 12:35:00 +0000 2007
>Originator:     Jan Danielsson
>Release:        NetBSD/amd64 4.0 RC1
>Organization:
Confuse A Cat Inc.
>Environment:
NetBSD nl102-238-202.student.uu.se 4.0_RC1 NetBSD 4.0_RC1 (ANCABOOT) #0: Wed Sep  5 14:40:43 CEST 2007  jan@nl102-238-202.student.uu.se:/home/jan/netbsd4/rc1/obj.amd64/home/jan/netbsd4/rc1/src/sys/arch/amd64/compile/ANCABOOT amd64

>Description:
When I start postfix, I get this:

--------
nl102-238-202# /etc/rc.d/postfix start                                                                                             
postsuper: fatal: scan_dir_push: open directory defer: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!
--------


When I start postgresql, I get this:

--------
nl102-238-202# /etc/rc.d/pgsql start 
Initializing PostgreSQL databases.
The files belonging to this database system will be owned by user "pgsql".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /var/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 40
selecting default shared_buffers/max_fsm_pages ... 32MB/204800
creating configuration files ... ok
creating template1 database in /var/pgsql/data/base/1 ... FATAL:  could not open directory "pg_twophase": Permission denied
child process exited with exit code 1
initdb: removing data directory "/var/pgsql/data"
could not open directory "/var/pgsql/data": Permission denied
initdb: failed to remove data directory
--------

In both cases, I have "verified" (with "ls -l") that the permissions are ok.

>How-To-Repeat:

All I need to do on my NetBSD/amd64 4.0 RC1 system is:

# /etc/rc.d/postfix start

# /etc/rc.d/pgsql start


>Fix:
None.