LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   To restrict a specific user (https://www.linuxquestions.org/questions/linux-newbie-8/to-restrict-a-specific-user-294633/)

simi_virgo 02-25-2005 02:30 AM

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

simi

mpetrov 02-26-2005 12:03 AM

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


All times are GMT -5. The time now is 12:28 AM.