I can't change file permission
It appears that I can't change the permissions of files in /var/log. I prefer not to write any script (or small program) in root mode so I tried to use the system call syslog (syslog(3, bufp, len) but it returned always 0 bytes. I tried it as a root and as a user (though in the man page it is written that syslog(3, ...) can be activated also in user mode).
Should I do any other action besides calling to this system call ? Is there another system call that can be used in user mode ?
|