Skip to contentSkip to conversation

Non root user cannot execute semanage, semodule

DISCUSSION Rahul Jain 2 participants 2 messages Dec 10, 2008 SELinux security module

lore
Share & tools
lore

Rahul Jain

author
#0 lore raw

Thankyou All,

This community is really awesome.

As suggested by Stephen I used sudo in order to allow a non root user execute the priviledged commands like semodule and semanage and protected the configuration file using SELinux. Though I tried to tweak the policycoreutils also to get the things done but it did not work. The reason being, the some intermediate directories that are created when these commands are executed. The owner of these directories is root and a non root user is not able to access these directories.
For me it was important to allow security officer execute these commands because his role entitles him to perform all security policy related tasks. Semodule was needed to load the policy modules while semanage was required to map the Linux users with the selinux users.

Thanks and Regards
Rahul Jain

#1 lore raw
Quoted 12 lines · Rahul Jain

Thankyou All,

This community is really awesome.

As suggested by Stephen I used sudo in order to allow a non root user execute the priviledged commands like semodule and semanage and protected the configuration file using SELinux. Though I tried to tweak the policycoreutils also to get the things done but it did not work. The reason being, the some intermediate directories that are created when these commands are executed. The owner of these directories is root and a non root user is not able to access these directories.

Quoted 10 lines

For me it was important to allow security officer execute these commands because his role entitles him to perform all security policy related tasks. Semodule was needed to load the policy modules while semanage was required to map the Linux users with the selinux users.

Thanks and Regards
Rahul Jain

Yeah that makes sense.
glad you up and running.

Signature · 6 lines
Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.