Results 1 to 2 of 2

Thread: SUDO - Cmnd_Alias

  1. #1
    Join Date
    Jun 2011
    Beans
    1

    SUDO - Cmnd_Alias

    Hi all,
    I'm trying to configure /etc/sudoers for this case:

    1) MYDIR contains multiple sudirectories which must be accessible ( /bin/ls -la /MYDIR/*) by the user MYUSER.
    - Questions: how to make the CMD_Alias for "ls" general for all MYDIR subdirectories?

    2) In MYUSER crontab there is a script (/home/MYUSER/MYSCRIPT.pl) which needs running "ls" and reading files in MYDIR subdirectories
    - Questions: how to enable reading from perl ?

    Thanks
    Riccardo

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Beans
    544
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: SUDO - Cmnd_Alias

    Sudo is not the solution here. Change the permissions on the directories/files so that the user can read them.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •