Yay!!! THANKS!!!
This is the end result:
- Assumed user = televisi
- sudo visudo
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
#%televisi ALL=(ALL) NOPASSWD:/usr/bin/rsync, /sbin/shutdown
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
televisi ALL=(ALL) NOPASSWD:/usr/bin/rsync, /sbin/shutdown
Originally I put the televisi ALL=(ALL) NOPASSWD:/usr/bin/rsync, /sbin/shutdown line above %admin ALL=(ALL) ALL
Apparently this shouldn't be done (as per _Purple_ suggestion).
As this is working for me now, I'll continue my work to use rsync backup using sudo to preserve the file permission as per http://notepad.bobkmertz.com/2008/04...ssion-via.html
THANKS!!!
Bookmarks