Gentoo Archives: gentoo-hardened

From: Makurin Roman <drolyk@×××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] can`t modify passwd and group files
Date: Fri, 14 Oct 2005 21:42:39
Message-Id: 200510150136.43450.drolyk@gmail.com
In Reply to: Re: [gentoo-hardened] can`t modify passwd and group files by Adam Sroka
1 В сообщении от Суббота 15 октября 2005 00:57 Adam Sroka написал(a):
2 > Adam Sroka wrote:
3 > > Makurin Roman wrote:
4 > >> Hi All!
5 > >> It`s my first post to this list so be patient :)
6 > >> I`ve got a problem with sys-apps/shadow, I can`t
7 > >> modify /etc/passwd or /etc/group files with groupadd and
8 > >> adduser therefore I can`t merge all apps that trying to alter
9 > >> those files(like hal, pmount, etc.....)
10 > >>
11 > >> I convert default-2005.1 profile to selinux and do all steps like in
12 > >> selinux handbook
13 > >>
14 > >> What I need to do to fix that problem ?
15 > >>
16 > >> Thanks
17 > >>
18 > >> PS: Sorry for my english
19 > >
20 > > What is the error that you are getting?
21 >
22 > Assuming that SELinux is enabled, and that the error you are getting is
23 > something like "can't open file..." Try this:
24 >
25 > restorecon /etc/group
26 > restorecon /etc/passwd
27 > restorecon /etc/shadow
28
29 Thanks a lot :)