[sudo-users] Dynamic sudo configuration to restrict users

Jaouich.Cyril at hydro.qc.ca Jaouich.Cyril at hydro.qc.ca
Mon Dec 4 10:30:38 EST 2006


Hi,

Here is what I am hoping to do. I would like to restrict a command such
as cp in this manner:

Cmnd_Alias CP_EX             =/usr/bin/cp /USER_HOME_DIR/* /some_path/*

USER_HOME_DIR would get replaced by the realuser's home. I have tried
with different ENV variables such as SUDO_USER with no luck.

Any ideas?

-Cyril




More information about the sudo-users mailing list