-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I wanted to set up rsync to backup my home directory to my own machine, and in doing so discovered that I couldn't read some files in the stewardbots multi-maintainer account because they had group 5000 (which I'm not in) instead of group stewardbots (which I am in).
I initially thought this might be done by phoenix, however the .pid files are not affected (only the .out files), so I don't think that's the case. Thanks to Simetrical for assistance and helping me think this through.
Instead, I believe this is caused by a script run from cron to trim the log files. The command used there was "tail -n $lines $file > $file.temp && rm $file && mv $file.temp $file" and I've added to the end a "&& chgrp stewardbots $file" which I hope will correct the issue.
Does anyone know why that would have changed the file's group (really it is not changed since the original is deleted, and replaced)? If so, how can I avoid that directly, instead of changing it back after?
Thanks for your help, - -Mike.lifeguard
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mike.lifeguard:
I couldn't read some files in the stewardbots multi-maintainer account because they had group 5000 (which I'm not in) instead of group stewardbots (which I am in).
stewardbots was originally gid 5000 and was changed to 6000. these files were probably created before the change.
i didn't mention it since i didn't realise anyone had had time to create any files before it was changed.
- river.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
River Tarnell wrote:
i didn't mention it since i didn't realise anyone had had time to create any files before it was changed.
Well that's a fairly simple answer, with a fairly simple solution. Thanks a bunch.
- -Mike
toolserver-l@lists.wikimedia.org