[Ilugc] how to restrict the users, from running some specific commands.

  • From: vgkarthick.78@xxxxxxxxx (Karthikeyan Venkatraman)
  • Date: Mon, 5 Nov 2012 14:01:40 +0530

On Sun, Nov 4, 2012 at 12:50 PM, ravi jaya <ravijaya.list at gmail.com> wrote:

Hello everybody,

I am trying to learn, how could I  restrict  the users, from  running the
 specific commands. like rm or rmdir or anything else in this case.

On the other hand I am trying to look into rbash the restricted
shell, whether, any thing good it  can do for this requirement


Thank you.

--
Ravi Jaya

Mob: 97909 16181
Site: www.ravijaya.info
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



In Ubuntu edit the sudoers file in /etc folder, you can come across allow
members of group sudo to execute any command. There you insert a new text
"username ALL=(ALL) NOPASSWD: command path to execute like /sbin/shutdown
etc..".

Also make sure the user is in standard account privilege.

-- 
Thanks,
V. Karthick


<http://vkarthickeyan.wordpress.com>

Other related posts: