incorrectly defined system account?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

incorrectly defined system account?

Unread post by webfeatus »

Recent yum update listed an error like this in relation to each accountid on the system:

Code: Select all

accountid homedir /var/www/vhosts/domain.com or its parent directory conflicts with a defined context in /etc/selinux/targeted/contexts/files/file_contexts,
/usr/sbin/genhomedircon will not create a new context. This usually indicates an incorrectly defined system account.  If it is a system account please make sure its login shell is /sbin/nologin.
Can anyone tell me what this means?

I have selinux disabled.
/etc/selinux/config
SELINUX=disabled

[Reference: http://sysadmingear.blogspot.com/2007/1 ... linux.html]
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4155
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: incorrectly defined system account?

Unread post by mikeshinn »

You've got selinux running, to disable it you need to pass selinux=0 to the kernel on boot.
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: incorrectly defined system account?

Unread post by webfeatus »

mikeshinn wrote:You've got selinux running, to disable it you need to pass selinux=0 to the kernel on boot.

Code: Select all

# /usr/sbin/sestatus -v
SELinux status:                 disabled
As far as I know, this has been the case since I disabled according to my post above.
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: incorrectly defined system account?

Unread post by scott »

You'd think those tools would be more accurate than that by now. But no, its actually still running. Like mike said above, selinux=0 is the only way to be sure.
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: incorrectly defined system account?

Unread post by webfeatus »

mikeshinn wrote:you need to pass selinux=0 to the kernel on boot
I tried to avoid asking this newb question...

"How do I do that?"
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: incorrectly defined system account?

Unread post by biggles »

edit /etc/grub.conf

Here are my rows that start the current kernel. Don't copy them, just add selinux=0 to your current config.

Code: Select all

title CentOS (2.6.32.21-3.art.i686.PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.32.21-3.art.i686.PAE ro root=LABEL=/ selinux=0 panic=5
        initrd /initrd-2.6.32.21-3.art.i686.PAE.img
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: incorrectly defined system account?

Unread post by webfeatus »

selinux=0 was already included.

No idea what happened with this situation.
I will monitor.
Thank you.
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: incorrectly defined system account?

Unread post by webfeatus »

I think I was looking at the wrong server.
I believe that the yum error was on my other server.
That server uses openvz, no grsec.
No grub.conf on virtual.
Found this on host...

Code: Select all

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/md0
#          initrd /boot/initrd-version.img
#boot=/dev/md0
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.6.1.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-164.6.1.el5 ro root=/dev/md0
        initrd /boot/initrd-2.6.18-164.6.1.el5.img
title CentOS OpenVz (2.6.18-128.2.1.el5.028stab064.8PAE)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.2.1.el5.028stab064.8PAE ro root=/dev/md0
        initrd /boot/initrd-2.6.18-128.2.1.el5.028stab064.8PAE.img
title OpenVZ (2.6.18-128.2.1.el5.028stab064.7PAE)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.2.1.el5.028stab064.7PAE ro root=/dev/md0
        initrd /boot/initrd-2.6.18-128.2.1.el5.028stab064.7PAE.img
title CentOS (2.6.18-164.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-164.el5 ro root=/dev/md0
        initrd /boot/initrd-2.6.18-164.el5.img
title CentOS (2.6.18-128.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-128.el5 ro root=/dev/md0
        initrd /boot/initrd-2.6.18-128.el5.img
Also on host...

Code: Select all

# /usr/sbin/sestatus -v
SELinux status:                 disabled
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: incorrectly defined system account?

Unread post by faris »

I hope I'm not confusing things, but I've seen errors like that during a yum update in the past. They were nothing to worry about.

My impression was that it was just the result of having a selinux-policy (or somesuch) RPM installed, and when that gets updated it checks things, finds a problem and reports it, but that this makes no difference because selinux is disabled.

And selinux is definitely disabled on our systems. No question about it.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply