[KLUG Members] Allowing users to write to log file

Patrick McGovern members@kalamazoolinux.org
Tue, 23 Oct 2001 14:33:27 -0400


I am writing a shell script that will indirectly append a users output to a read only log file.  I don't want the log file to be writable by the user.

To aproach this problem I wrote the user script and passed the output to a script owned by root that will append to the log file.  The log file is not writable by the user.  This process failed perhaps because the user can't force the root file to give root priveleges on other files.  I changed the root file permissions to -rwsr-xr-x but with no success.  Is there a way to allow a user to execute the root file so the user read only file can be appended?
Pat