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 permittederror: error creating output file /var/lib/logrotate/status.tmp: Permission denied That gid confuses me, as user1 is only a member of a group with different gid:user1@host:~$ iduid=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 user1user1:x:10111It's something simple here, but I can't see it.UPDATE:here's what logrotate.conf looks like:/home/logs/*.log {    rotate 7    daily    copytruncate    compress    notifempty }logrotate 3.8.7UPDATE 2:user1@host:~$ ls -la /home/logs/-rw-r--r-- 1 user1 mygroup 1358383344 Dec 19 00:58 mylog.log
logrotate fails to rotate logs: error setting owner
ubuntu;permissions;users;group;logrotate
Try with a different user, one having default group membership: for each user userx there is membership in a distinct userx group. If logrotate is successful with different user account, then apply similar group membership settings for the user1 account having difficulty.