[Ilugc] Restrict users commands

  • From: fnkygy@xxxxxxxxx (Hrishikesh Murali)
  • Date: Wed Sep 9 16:39:04 2009

Hi,

I don't know a direct method for doing this, but my suggestion is :

          1) Take the source code for these commands
          2) Modify it such that you get the uid, check if its the
restricted user. If so, exit printing "PERMISSION DENIED", else continue
normal execution.
          3) Compile the source code, get the executable and replace it with
the original executable in one of the directories in your $PATH variable.

If there is a direct command to do this,  please do enlighten me. I am eager
to know.

On Wed, Sep 9, 2009 at 3:15 PM, Govi <govi.lin@xxxxxxxxx> wrote:

Hi,

I want to restrict users normal command.i mean specified users must use
only
below command,
cp
mv
dig
telnet
ssh

other commands did n't accect,while running through the specified users.
anybody have idea.

---
Thanks & Regards,

Govi
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
Cheers,
Hrishikesh Murali

Other related posts: