Log in

sudo for write access to a single file - Linux Help Desk [entries|archive|friends|userinfo]

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

sudo for write access to a single file [Jan. 4th, 2010|09:27 am]


Can sudo be used to grant write access to a single file? I've granted sudoer access to a script, but this script writes to a log file. Currently the log file is chmod 644, and sudoers are unable to use the script due to incorrect permissions on the log file. I could chmod 666 to everyone, but that would be problematic.

[User Picture]From: pkbarbiedoll
2010-01-04 08:32 pm (UTC)
That was my temporary workaround actually. I'm fine with leaving things that way, but wondered whether it could be done within the confines of sudoers.
(Reply) (Parent) (Thread)