Sign in with
Sign up | Sign in
Your question

How to block users from using certain programs/commands

Tags:
Last response: in Linux/Free BSD
Share
February 26, 2013 9:54:51 PM

hello

I am running xubuntu on my laptop. i want to block certain programs such as the settings manager and the home directory for the non admin account that i created. i also want to block that desktop user from typing in certain commands like rmdir

a step by step guide would be great

thank you
a b D Laptop
February 27, 2013 5:38:18 AM

The simplest way to do this is to change the permission on the program files that you want to protect. For example, for rmdir, open a command prompt and type:

cd bin
chmod o-x rmdir

(The location of the command will change depending upon the command and distribution.) you should test the change as thoroughly as you can as blocking one command may have uninteded consequences.

Most distributions provide a file manager that lets you make this change in a gui.

m
0
l
February 28, 2013 3:11:28 PM

i can't find a gui version in xubuntu to do what i am asking. does anyone know if that is possible in xubuntu or how to make that possible in xubuntu? the reason why i am asking is because i want the non admin account to only be used for the absolute basics like surfing the internet, listening to music, watching videos and doing office work. i even want to block the terminal from the non admin account
m
0
l
Related resources
a b D Laptop
February 28, 2013 3:29:24 PM

Look for the file properties in the File Manager. Not being familiar with Xubuntu I can't be more specific.
m
0
l
February 28, 2013 7:07:01 PM

do you know what distribution of linux i can use instead that is easy for someone use who is not tech savvy and/or idiot proof? i'm starting to think that i am putting in way to much time in to making my system idiot proof. what distribution of linux do you use?
m
0
l
a b D Laptop
February 28, 2013 7:16:46 PM

I use Gentoo Linux. If you find Xubuntu difficult you certainly wouldn't want to know about Gentoo.
m
0
l
March 1, 2013 1:31:58 AM

as long as you do not give your users admin/sudo privileges they should be fine. taking away terminal? thats evil!
m
0
l
a b D Laptop
March 1, 2013 1:48:51 AM

I agree, but if that's what the OP wants to do.... But he needs to be aware that blocking certain commands may break others. If he wants to be really secure he could set up a chroot environment for the user that contained only the allowed commands; but I'm guessing this wouldn't fit within his comfort level.
m
0
l
March 6, 2013 8:52:14 PM

is there by any chance that there is some type of bash script, perl script or python script that i can run at start up that will block what i want to block? if so please post it hear :D 
m
0
l
!