-bash: sestatus: command not found

Support for security such as Firewalls and securing linux
fed00
Posts: 23
Joined: 2013/02/04 00:44:20

-bash: sestatus: command not found

Post by fed00 » 2013/03/07 07:07:51

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?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: -bash: sestatus: command not found

Post by jlehtone » 2013/03/07 10:08:42

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: -bash: sestatus: command not found

Post by TrevorH » 2013/03/07 13:38:07

Or you are not root?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

-bash: sestatus: command not found

Post by gerald_clark » 2013/03/07 14:08:01

Run 'uname -a' and see if it is even a CentOS kernel.

fed00
Posts: 23
Joined: 2013/02/04 00:44:20

Re: -bash: sestatus: command not found

Post by fed00 » 2013/03/11 02:57:33

Hi TrevorH,

I am logged in as root.

Thanks.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: -bash: sestatus: command not found

Post by AlanBartlett » 2013/03/11 03:17:04

Please now show the output returned by executing [b]uname -a[/b], as [b]Gerald[/b] has requested.

fed00
Posts: 23
Joined: 2013/02/04 00:44:20

Re: -bash: sestatus: command not found

Post by fed00 » 2013/04/10 01:46:47

[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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: -bash: sestatus: command not found

Post by TrevorH » 2013/04/10 08:29:25

Moved thread to the CentOS 5 Security forum.

fed00
Posts: 23
Joined: 2013/02/04 00:44:20

Re: -bash: sestatus: command not found

Post by fed00 » 2013/04/11 03:56:23

[quote]
TrevorH wrote:
Moved thread to the CentOS 5 Security forum.[/quote]

Thanks. Any solutions?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: -bash: sestatus: command not found

Post by TrevorH » 2013/04/11 08:18:28

What does `rpm -q policycoreutils` say? If it's not installed then `yum install policycoreutils`

Post Reply