LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2014, 02:23 AM   #1
trafficc
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
Giving privilege to use only one command


Hello,

I'd like to know how to give a user the ability to use some set of commands only.

I'm using Debian 7.6.

Thanks for your help in advance.
Traffic.
 
Old 09-28-2014, 02:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Code:
man sudo
 
Old 09-28-2014, 08:07 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The sudo command allows users to run commands with the privileges of different users (often root). If you want a user to have restricted commands in his own account you need to either not give him or her a full shell account or use a restricted shell (e.g. rbash or put the user's account in a chroot jail). Note, however, unless you carefully design the restricted or jailed environment, it may be possible for the user to "escape". It would be best if you described exactly what you need to do and accomplish. The simplest solution is to not give anyone you don't trust with user level access an account on your system...
 
  


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
as privilege gives a user to use the ulimit command in red hat linux. Jose Suarez Red Hat 2 05-26-2012 02:40 AM
question on kernal and giving user privilege commands jonhanna Linux - Newbie 1 12-19-2008 09:42 AM
Giving privilege to user Corrado Linux - Security 5 08-20-2008 05:19 PM
Adding command privilege to /etc/sudoers doesn't work for some programs CJS Linux - General 9 05-13-2008 11:08 AM
using shutdown command without root privilege chobin Programming 2 06-15-2006 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 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