On 04 Sep 2000  06:39 SoloCDM wrote:
>Is there a way to attach a notice to a command that gives the user a
>message and stops the command from executing?

Move the original command to another directory and replace it with a script with the 
same name. This may break other scripts.

If you need to control access to certain commands, then just make them executable only 
by the owner and the group:

        chmod 770 filename

This may also break some scripts and utilities that do not run as root.

-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to