Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-25-2005, 04:50 AM   #1
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, 05:45 AM   #2
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
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, 06:31 AM   #3
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

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

# /etc/sudoers

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


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 08:36 AM
How to restrict user permissions solnitza Linux - Newbie 5 08-26-2005 03:58 PM
restrict user to folder disorderly Linux - Security 5 03-02-2005 09:49 PM
To restrict a specific user simi_virgo Linux - Newbie 1 02-26-2005 12:03 AM
How to restrict user (FTP)? Rex_chaos Linux - Networking 2 03-19-2003 04:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration