LinuxQuestions.org
Help answer threads with 0 replies.
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 03-15-2005, 11:42 PM   #1
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 1
setting capabilities for a user


I read somewhere that you can set capabilities for a user. For eg, if i set the capability CAP_SYS_MODULE for a user, will that user be able to load a kernel module. if so how can I set a capability for a user ?
 
Old 03-16-2005, 06:54 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
I'm going to guess that your thinking of sudo. Basically, sudo allows you to give users root privileges to run specific commands only. You do that by using the visudo command to edit the sudoers file. For example, if you wanted to give a user the ability to stop the computer, you would add the halt command to their entry in the sudoers file. Then they could use the command sudo halt to turn off the computer. However, that user wouldn't have root privileges to any command other than halt.
 
Old 03-17-2005, 07:36 AM   #3
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 1
Thanks!! It solved half my problem. But I don't think sudo gives capabilities to a user. There are functions like capset to set the capabilities. But I am not sure how it works. Do you have any idea ?
 
Old 03-17-2005, 09:33 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Quote:
Originally posted by vmniza
Thanks!! It solved half my problem. But I don't think sudo gives capabilities to a user. There are functions like capset to set the capabilities. But I am not sure how it works. Do you have any idea ?
To be honest, I'm not entirely sure what you are aksing here. Sudo does give the user capabilites in that they can run commands that are normally not allowed. Could you be more specific about what you mean by capabilities, because your definintion seems to go beyond simply allowing new privileges with commands.
 
Old 03-17-2005, 11:03 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Take a look at the Linux Kernel Capabilities FAQ. It's a little bit old, but to be honest I'm not sure how much has progressed since then with the recent migration to the SELinux DAC model. For manipulating Linux CAPS, take a look at lcap. From what I've seen, in the 2.6 kernels POSIX capabilities support is now integrated into the LSM architecture, though I'm not sure if that needs to be specifically enabled in the kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setting capabilities for a user vmniza Linux - Newbie 1 03-16-2005 01:58 AM
How do you make the user have root capabilities??? chutsu Linux - General 2 09-05-2004 12:30 PM
Multi-User Linux Capabilities Baryonic Being Linux - General 11 08-27-2004 01:18 PM
question on setting up internet capabilities cazter Linux - Hardware 1 01-28-2004 03:39 PM
Linux multiuser capabilities for one user? mlhammer Linux - Newbie 4 11-10-2003 10:41 PM

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

All times are GMT -5. The time now is 05:22 PM.

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