fc3 - password change problem - syslog and portmapper
Hi!
Got FC3 running SELINUX in enforcing mode.
1. however when i try to change my password, i get the ffg error:
SystemError: couldn't get security context of `/etc/passwd': No data available
2. also, when i boot up, syslogd, and portmap cannot start, so i disabled it in SELinux. i would like to get this to work, though.
i am running kernel Linux shiva 2.6.10-1.741_FC3smp
thanks in advance for ur time and co-operation.
God bless.
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Jayendren Anand Maduray
1. however when i try to change my password, i get the ffg error:
SystemError: couldn't get security context of `/etc/passwd': No data available
Do you get any AVC messages? If so what are they?
What is the output of "ls -lZ /etc/passwd"?
Quoted 2 lines
2. also, when i boot up, syslogd, and portmap cannot start, so i disabled it in SELinux. i would like to get this to work, though.
How are they unable to start? Are there any AVC messages? Is there something in syslog?
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 10 lines · Luke Kenneth Casson Leighton
Quoted 3 lines · Jayendren Anand Maduray
Hi!
Got FC3 running SELINUX in enforcing mode.
you brave person :)
which policy - targetted or strict?
[remember to tell the list not me]
....
brave, i prefer fc3 to other distros, second best is redhat, hence fc3. it is targeted.
;)
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi!
syslogd reports it is unable to start, error:
´Access Denied´
the same message for portmapper.
do u want a copy of the syslog?
Quoted 16 lines · Russell Coker
On Tuesday 22 February 2005 17:09, Jayendren Anand Maduray
Quoted 3 lines · <[email protected]> wrote:
1. however when i try to change my password, i get the ffg error:
SystemError: couldn't get security context of `/etc/passwd': No data availableDo you get any AVC messages? If so what are they?
What is the output of "ls -lZ
/etc/passwd"?Quoted 2 lines
2. also, when i boot up, syslogd, and portmap cannot start, so i disabled it in SELinux. i would like to get this to work, though.
How are they unable to start? Are there any AVC messages? Is there something in syslog?
Signature · 21 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
On Tuesday 22 February 2005 12:21, you wrote:
ic, well i did not compile it, and it does not work with the previous kernel - 2.6.9
do u suggest that i remove it, and compile it from scratch?
Quoted 61 lines
okay, (i should have also asked you these originally)
does it work with the standard kernel?
2.6.9-777889999somethingorother.have you put the targetted policy source code on (and compiled it yourself) or are you using the "standard" binary targetted policy?
i.e. can you get things working from the "known" standard - and support, and tested, and approved - state, and then work from there?
in particular, you need to ask yourself: _why_ do you need a 2.6.10 kernel, is there a specific reason, other than curiosity?
if the standard targetted policy package, standard 2.6.9-77889899rubbish kernel works, why change it?
l.
Quoted 41 lines · Jayendren Anand Maduray
On Tuesday 22 February 2005 11:15, Luke Kenneth Casson Leighton <[email protected]>
Quoted 10 lines · wrote:
Quoted 3 lines · Jayendren Anand Maduray
Hi!
Got FC3 running SELINUX in enforcing mode.
you brave person :)
which policy - targetted or strict?
[remember to tell the list not me]
....
brave, i prefer fc3 to other distros, second best is redhat, hence fc3. it is targeted.
;)--
Jayendren Anand Maduray
Microsoft Certified Professional
Network Plus
IT AdministratorPerinatal HIV Research Unit
Old Potch Road
Chris Hani Baragwanath Hospital
Soweto
South AfricaTel: +27 11 989 9776
Tel: +27 11 989 9999
Fax: +27 11 938 3973
Cel: 082 22 774 94--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Jayendren Anand Maduray
On Tuesday 22 February 2005 12:21, you wrote:
ic, well i did not compile it, and it does not work with the previous kernel - 2.6.9
are you saying that out-of-the-box, you installed FC3, selected on the anaconda install program the option to enable selinux, and that you selected to "enable" rather than "warn" i think that's the option...
... and having done that, it _didn't_ work?
because if so, that is very very odd, and you should resolve to fix _that_ rather than going to other lengths such as installing a 2.6.10 kernel or installing policy from source.
Quoted 1 line
do u suggest that i remove it, and compile it from scratch?
no, i'm suggesting that you resolve the initial problem with your install (by reinstalling if necessary - do you have vmware or a spare machine?)
and if necessary, raising a bug on redhat's bug tracking site.
l.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Jayendren Anand Maduray
syslogd reports it is unable to start, error:
´Access Denied´
the same message for portmapper.do u want a copy of the syslog?
Not the entire syslog. Just run "dmesg" and look for entries that seem relevant.
Quoted 1 line
From your other message it seems that
/etc/passwdhas lost it's label somehow.
Please try running "restorecon /etc/passwd" and see if things work properly after that.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Jayendren Anand Maduray
Got FC3 running SELINUX in enforcing mode.
1. however when i try to change my password, i get the ffg error:
SystemError: couldn't get security context of `/etc/passwd': No data available2. also, when i boot up, syslogd, and portmap cannot start, so i disabled it in SELinux. i would like to get this to work, though.
i am running kernel Linux shiva 2.6.10-1.741_FC3smp
The most likely scenario is that you never labeled your filesystems, or that you ran with SELinux disabled for some period of time and thus ended up with some files without security labels. Touch /.autorelabel and reboot, or run /sbin/fixfiles relabel and reboot. BTW, this kind of question belongs on fedora-selinux-list, not here, IMHO.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
On Tuesday 22 February 2005 14:11, Luke Kenneth Casson Leighton wrote:
thanks!
i do have vmware, i will try that out.
Quoted 31 lines · Jayendren Anand Maduray
Quoted 3 lines · you
ic, well i did not compile it, and it does not work with the previous kernel - 2.6.9
are you saying that out-of-the-box, you installed FC3, selected on the anaconda install program the option to enable selinux, and that you selected to "enable" rather than "warn" i think that's the option...
... and having done that, it _didn't_ work?
because if so, that is very very odd, and you should resolve to fix _that_ rather than going to other lengths such as installing a 2.6.10 kernel or installing policy from source.
Quoted 1 line
do u suggest that i remove it, and compile it from scratch?
no, i'm suggesting that you resolve the initial problem with your install (by reinstalling if necessary - do you have vmware or a spare machine?)
and if necessary, raising a bug on redhat's bug tracking site.
l.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
On Tuesday 22 February 2005 15:04, you wrote:
thanks!
i shall stop bothering u guys!
God bless.
Quoted 17 lines · Jayendren Anand Maduray
Quoted 10 lines
Got FC3 running SELINUX in enforcing mode.
1. however when i try to change my password, i get the ffg error:
SystemError: couldn't get security context of `/etc/passwd': No data available2. also, when i boot up, syslogd, and portmap cannot start, so i disabled it in SELinux. i would like to get this to work, though.
i am running kernel Linux shiva 2.6.10-1.741_FC3smp
The most likely scenario is that you never labeled your filesystems, or that you ran with SELinux disabled for some period of time and thus ended up with some files without security labels. Touch /.autorelabel and reboot, or run
/sbin/fixfilesrelabel and reboot. BTW, this kind of question belongs on fedora-selinux-list, not here, IMHO.
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi!
tried restorecon, here is the output:
[root@shiva jay]# restorecon /etc/passwd
[root@shiva jay]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: Authentication failure
[root@shiva jay]#
here is dmesg:
SELinux: Completing initialization. SELinux: Setting up existing superblocks. SELinux: initialized (dev hda5, type ext3), uses xattr SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts SELinux: initialized (dev mqueue, type mqueue), not configured for labeling SELinux: initialized (dev hugetlbfs, type hugetlbfs), not configured for
labeling
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev eventpollfs, type eventpollfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev futexfs, type futexfs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
For Syslogd:
syslogd: error while loading shared libraries: /lib/ld-linux.so.2: cannot apply additional memory protection after relocation
For portmap:
error while loading shared libraries: libnsl.so.1:
cannot open shared object file: No such file or directory.
Quoted 1 line · Russell Coker
restorecon
/etc/passwd
Signature · 20 lines
Jayendren Anand Maduray Microsoft Certified Professional Network Plus IT Administrator Perinatal HIV Research Unit Old Potch Road Chris Hani Baragwanath Hospital Soweto South Africa Tel: +27 11 989 9776 Tel: +27 11 989 9999 Fax: +27 11 938 3973 Cel: 082 22 774 94 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.