Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new day logs folder limit only to the first user #85

Open
brosky opened this issue Feb 13, 2019 · 4 comments
Open

new day logs folder limit only to the first user #85

brosky opened this issue Feb 13, 2019 · 4 comments

Comments

@brosky
Copy link

brosky commented Feb 13, 2019

It seems that the first user that uses aker during a day sets wrong permissions:

drwxrwxrwx. 4 brosky brosky 33 Feb 12 12:48 20190212
drwxrwxr-x. 3 brosky brosky 18 Feb 13 08:53 20190213
-rwxrwxrwx. 1 root root 93922 Feb 11 17:50 aker.log <- don't know why this does not update anymore

As I understand, the first user that logs in it created the folder /var/log/aker/$YearMmonthDay with 775 permissions thus rendering next users to not be able to log in to remote hosts.

After changing the $YearMmonthDay to 777 then other users can connect to remote hosts.

@anazmy
Copy link
Contributor

anazmy commented Feb 22, 2019

Let me test this

@anazmy
Copy link
Contributor

anazmy commented Feb 22, 2019

the code has 777 only set. I did't find a code path that can lead to 775.

Was umask settings changed on the server at any point?

@anazmy
Copy link
Contributor

anazmy commented Feb 22, 2019

I think finishing #80 will help here as well

@brosky
Copy link
Author

brosky commented Apr 11, 2019

i've "fixed" this with a */5 crontab script:

#!/bin/bash
today=$(date +%Y%m%d)
chmod 777 /var/log/aker/$today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants