On Mon, Nov 5, 2012 at 2:01 PM, Karthikeyan Venkatraman
<[email protected]> wrote:
>
> On Sun, Nov 4, 2012 at 12:50 PM, ravi jaya <[email protected]> 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
> >
> >
> >
>
>
> 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.

I would add one more thing - create a group, restrict this group to
the set of commands.  Make it the primary group for all users under
such restriction.

-- Arun Khan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to