Recently I've noticed that
logrotate does not rotate my logs.
user1@host:~$ /usr/sbin/logrotate /home/user1/logrotate.conf -v gives me an error:
error: error setting owner of /home/logs/mylog.log.1 to uid 10111 and gid 10111: Operation not permitted
error: error creating output file /var/lib/logrotate/status.tmp: Permission denied
gid confuses me, as
user1 is only a member of a group with different gid:
uid=10111(user1) gid=1001(mygroup) groups=1001(mygroup)
However, there's another group called
user1, but, as I mentioned, actual user
user1 is not its member:
user1@host:~$ cat /etc/group | grep user1
It's something simple here, but I can't see it.
UPDATE: here's what logrotate.conf looks like:
user1@host:~$ ls -la /home/logs/
-rw-r--r-- 1 user1 mygroup 1358383344 Dec 19 00:58 mylog.log