LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-26-2011, 05:02 PM   #1
rahulchandrak
Member
 
Registered: Apr 2010
Posts: 33

Rep: Reputation: 2
newrole command not found in redhat 5


Hi All, I am using redhat operating system with kernel version 2.6.18-194.el5PAE. I am learning SElinux and there is a called "newrole" which will be used to grant a new SElinux role to a user. General syntax of this command is like "newrole -r <role_name>. For some reason, I cannot find the command newrole in the OS, I have searched whole OS but couldnt find it. It would be great if someone would help me in this regard.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-26-2011, 05:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rahulchandrak View Post
Hi All, I am using redhat operating system with kernel version 2.6.18-194.el5PAE. I am learning SElinux and there is a called "newrole" which will be used to grant a new SElinux role to a user. General syntax of this command is like "newrole -r <role_name>. For some reason, I cannot find the command newrole in the OS, I have searched whole OS but couldnt find it. It would be great if someone would help me in this regard.
You're either missing part of your SELinux installation (the policycoreutils-newrole package comes to mind), or something else simple (wrong path, not being root, etc) is going on.

You should be easily able to install this from the RHEL online repositories. Have you run a search for that package? And have you contacted RHEL support, since you're paying for it with your RHEL subscription, right?
 
2 members found this post helpful.
Old 07-26-2011, 05:55 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum install policycoreutils-newrole


which will provide : /usr/bin/newrole
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 01:10 PM
Turning a Ruby on Rails Ubuntu command into a Redhat command Mangalaiii Red Hat 1 12-02-2008 03:37 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
make: Command not found, Error 127. I'm on Redhat Arild2 Linux - Newbie 3 10-30-2004 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration