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, 03:30 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
To restrict a specific user

hi to all

I want to restrict the one user (john) to execute the command

dd if=/dev/zero of=/swa bs=1024 count=1M

cp command

& give the access to the jerry to the above command or such any command

what the files to should edit

please tell me detail

Old 02-26-2005, 01:03 AM   #2
LQ Newbie
Registered: Aug 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Assuming you want to stop the user from causing system wide damage, you should look at Linux security tutorials. Typically a single user will not have more control then changing the files in his home folder. Also your dd example uses devices that could be made available to only root. So I would start by going through the tutorials on this website it will really help. If you have any specific questions then be more clear with them, and linux doesn't have many fiiles to modify in order to restrict users. It's usually done with permissions and the groups the user belongs to.

File Permission Tutorial


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
how to restrict the user simi_virgo Linux - Newbie 2 02-25-2005 07:31 AM
how can i restrict /etc/motd for a specific user mtest Programming 8 10-30-2003 02:41 AM
Restrict User to FTP Only maxhugen Linux - Security 3 10-23-2003 07:01 PM > Forums > Linux Forums > Linux - Newbie

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