LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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: 15,638

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
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,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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


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
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


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration