?

Log in

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

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

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

linuxsupport

[pkbarbiedoll]
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.
LinkReply

Comments:
[User Picture]From: tychoish
2010-01-05 03:19 am (UTC)
chmod +s the script, if it's suid safe?

this isn't going to be distro specific.
(Reply) (Thread)