I'm trying to create a script so that it will do some rsync functions (works fine) and copying of some files that are root:root. Problem is, running the script as my user makes these files untouchable.
I've seen some scripts that tell you to use 'echo password | sudo foo', but I have a HUGE problem with putting my password in a plain text.
Anyone have experience editing /etc/sudoers?
I've seen some scripts that tell you to use 'echo password | sudo foo', but I have a HUGE problem with putting my password in a plain text.
Anyone have experience editing /etc/sudoers?
Comment