On 18-Jan-99 Goody wrote:
> Greetings
> 
> I'm writing a "wrapper" shell script to write to a log file when someone
> invokes telnet.
> 
> The script is doing something like this :
> 
> echo "yada yada" >> /var/log/telnet.log
> 
> I don't want regular users to have read/write access to the file, so I
> stick bit the scipt (rwsr-xr-x) with root as the owner and made
> /var/log/telnet.log rw-rw---- , with root as the owner.  No matter what I
> do, I get "permission denied" on /var/log/telnet.log when running the
> script as a regular user.

For security reasons, you can't suid a script. You'll need to either convert
your script to a program, or write a program that runs the script. The second
option is poor for security and should be avoided.

Cort
[EMAIL PROTECTED]

Reply via email to