-bash: sestatus: command not found
-bash: sestatus: command not found
Hi guys,
I recently subscribed a web hosting service and when I ran [code]sestatus[/code]
The system replied with [code]-bash: sestatus: command not found[/code]
Does it mean that SElinux is not installed? Is installing some packages the solution?
I recently subscribed a web hosting service and when I ran [code]sestatus[/code]
The system replied with [code]-bash: sestatus: command not found[/code]
Does it mean that SElinux is not installed? Is installing some packages the solution?
Re: -bash: sestatus: command not found
Yes.
[code]# rpm -qf $(which sestatus)
policycoreutils-2.0.83-19.24.el6.x86_64
# yum provides *bin/sestatus
policycoreutils-2.0.83-19.24.el6.x86_64 : SELinux policy core utilities
Repo : base
Matched from:
Filename : /usr/sbin/sestatus
policycoreutils-2.0.83-19.24.el6.x86_64 : SELinux policy core utilities
Repo : installed
Matched from:
Filename : /usr/sbin/sestatus[/code]
Whether you do need more than just 'policycoreutils' to have all the bells and whistles ... no idea.
[code]# rpm -qf $(which sestatus)
policycoreutils-2.0.83-19.24.el6.x86_64
# yum provides *bin/sestatus
policycoreutils-2.0.83-19.24.el6.x86_64 : SELinux policy core utilities
Repo : base
Matched from:
Filename : /usr/sbin/sestatus
policycoreutils-2.0.83-19.24.el6.x86_64 : SELinux policy core utilities
Repo : installed
Matched from:
Filename : /usr/sbin/sestatus[/code]
Whether you do need more than just 'policycoreutils' to have all the bells and whistles ... no idea.
Re: -bash: sestatus: command not found
Or you are not root?
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
-bash: sestatus: command not found
Run 'uname -a' and see if it is even a CentOS kernel.
Re: -bash: sestatus: command not found
Hi TrevorH,
I am logged in as root.
Thanks.
I am logged in as root.
Thanks.
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: -bash: sestatus: command not found
Please now show the output returned by executing [b]uname -a[/b], as [b]Gerald[/b] has requested.
Re: -bash: sestatus: command not found
[quote]
gerald_clark wrote:
Run 'uname -a' and see if it is even a CentOS kernel.[/quote]
Sorry for the late reply. Been running the server without SELinux. :-?
[code]$ uname -a
Linux webberserver 2.6.18-308.16.1.el5 #1 Fri Apr 5 14:01:22 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux[/code]
[code]$ cat /etc/*-release
CentOS release 5.9 (Final) [/code]
Thanks guys.
gerald_clark wrote:
Run 'uname -a' and see if it is even a CentOS kernel.[/quote]
Sorry for the late reply. Been running the server without SELinux. :-?
[code]$ uname -a
Linux webberserver 2.6.18-308.16.1.el5 #1 Fri Apr 5 14:01:22 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux[/code]
[code]$ cat /etc/*-release
CentOS release 5.9 (Final) [/code]
Thanks guys.
Re: -bash: sestatus: command not found
Moved thread to the CentOS 5 Security forum.
Re: -bash: sestatus: command not found
[quote]
TrevorH wrote:
Moved thread to the CentOS 5 Security forum.[/quote]
Thanks. Any solutions?
TrevorH wrote:
Moved thread to the CentOS 5 Security forum.[/quote]
Thanks. Any solutions?
Re: -bash: sestatus: command not found
What does `rpm -q policycoreutils` say? If it's not installed then `yum install policycoreutils`