sudo / alias problem

Johan Abrahamsson epkjoab at epk.ericsson.se
Wed May 24 09:21:13 EDT 2000


Hi,

User 'epkjoab' has the following command alias:
>which PACKAGE
PACKAGE:         aliased to /mpc2/opt/local/macs_1.2.1/bin/macs_createpkg 

I want user 'epkjoab' to be able to run this command alias with root
privilieges.

/etc/sudoers looks like this:

# Command alias specification
Cmnd_Alias  PACKAGE=/mpc2/opt/local/macs_1.2.1/bin/macs_createpkg
# User specification
epkjoab         rympc2=PACKAGE

>sudo -l
Password:
You may run the following commands on this host:
    (root) /mpc2/opt/local/macs_1.2.1/bin/macs_createpkg

But...

>sudo PACKAGE
sudo: PACKAGE: command not found

Any hints are welcome.

Regards,
Johan







More information about the sudo-users mailing list