Gentoo Archives: gentoo-hardened

From: Grob Team <grobteam@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] [SELINUX]: Postgresql don't start
Date: Tue, 26 Apr 2005 23:20:54
Message-Id: b1ac178c05042616205378b449@mail.gmail.com
1 Hi,
2
3 When trying to start postgresql (run_init /etc/init.d/postgre start) I
4 got the "Starting PostGreSql" and nothing after, when I do a ps to see
5 what happens, I got this:
6
7 system_u:system_r:initrc_su_t root 5879 0.0 0.2 2224 932
8 tty1 S+ 14:16 0:00 su - postgres -c /usr/bin/pg_ctl start -D
9 '/var/lib/postgresql/data' -s -l
10 '/var/lib/postgresql/data/postgresql.log' -o ''
11 system_u:system_r:system_chkpwd_t root 5880 0.0 0.0 0 0
12 tty1 Z+ 14:16 0:00 [unix_chkpwd] <defunct>
13
14 So, I tried to do: so - postgres and it "freeze" too. So maybe its not
15 postgres but a problem with pam/su. In the logfile, I have this:
16 Apr 26 14:55:34 [unix_chkpwd] could not get username from shadow (postgres))
17
18 However, postgres is a valid user
19 # cat /etc/passwd | grep postgres
20 postgres:x:70:70::/var/lib/postgresql:/bin/false
21
22 My version of pam is: 0.77-r6
23
24 This is the output of the context of /etc/passwd and /etc/shadow
25
26 -rw-r--r-- root root system_u:object_r:etc_t /etc/passwd
27 -rw------- root root system_u:object_r:shadow_t /etc/shadow
28
29 Someone have an idea about the problem?
30 Thank you.
31
32 --
33 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] [SELINUX]: Postgresql don't start petre rodan <kaiowas@g.o>
Re: [gentoo-hardened] [SELINUX]: Postgresql don't start Konstantin Arkhipov <voxus@×××××××.ee>
Re: [gentoo-hardened] [SELINUX]: Postgresql don't start Casey Allen Shobe - SeattleServer Mailing Lists <lists@×××××××××××××.com>