I have a directory with log files and I'm putting logs from script launched by users into them. Logging with syslog isn't possible in this case.
I want the users to have only write permissions on log files. The problem is, that write permissions must be restricted, so that they can only append to that files. The underlying filesystem is XFS.
The following doesn't work:
# chattr +a test.log chattr: Inappropriate ioctl for device while reading flags on test.log
Is there any other solution for this? Thank you for your hints.
The solution was:
# xfs_io > open test.log > chattr +a > close