-bash: sestatus: command not found

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

Re: -bash: sestatus: command not found

Post by fed00 » 2013/04/12 01:23:10

[quote]
TrevorH wrote:
What does `rpm -q policycoreutils` say? If it's not installed then `yum install policycoreutils`[/quote]

[code]$rpm -q policycoreutils
policycoreutils-1.33.12-14.8.el5[/code]

Still cant get SELinux up.

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/12 19:58:23

Show me the output of

[code]
echo $PATH
[/code]

How, exactly. are you becoming root?

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

Re: -bash: sestatus: command not found

Post by fed00 » 2013/04/19 03:30:17

[quote]
TrevorH wrote:
Show me the output of

[code]
echo $PATH
[/code]

How, exactly. are you becoming root?[/quote]

Hi TreverH,

Sorry for the mistake. I should have used "#" instead of "$" for the previous codes. I keyed "root" as the login and then password.

[code]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin[/code]

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/19 09:17:07

OK, so now let's try `rpm -V policycoreutils`

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

Re: -bash: sestatus: command not found

Post by fed00 » 2013/04/22 06:52:06

New update.

When I entered the following:
[code]# /usr/sbin/sestatus
SELinux status : enabled
...
...
Current mode: enforcing
Mode from config file: enforcing
...
...
[/code]

So it seems that SELinux is working all this while!

On a side note, how can I rectify this little problem? Is it a path problem?

Thanks.

Post Reply