LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-25-2005, 05:50 AM   #1
simi_virgo
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
how to restrict the user


hi to all ,

I want to restrict the user (john ) to use the dd ,cp command

& want to give access to jen to use that command

how would i do that

I try to do with sudoers but i donnt know exactly how to do


please help
 
Old 02-25-2005, 06:45 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
Group permissions - make the dd and cp commands only accessible to a new group, make jen a mamber of that group, and leave john out of it.
 
Old 02-25-2005, 07:31 AM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 32
I can't completely understand what you said, but here's an example.

Code:
# /etc/sudoers

# Give jen root access to dd and cp
jen  ALL = NOPASSWD: /bin/dd, /bin/cp
 
  


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
How do I restrict a particular user to use only XFCE? rsamurti Slackware - Installation 8 10-25-2006 09:36 AM
How to restrict user permissions solnitza Linux - Newbie 5 08-26-2005 04:58 PM
restrict user to folder disorderly Linux - Security 5 03-02-2005 10:49 PM
To restrict a specific user simi_virgo Linux - Newbie 1 02-26-2005 01:03 AM
How to restrict user (FTP)? Rex_chaos Linux - Networking 2 03-19-2003 05:48 AM


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