-
Notifications
You must be signed in to change notification settings - Fork 1.2k
stdout_logfile and stderr_logfile should be created as user specified in program section #114
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
Comments
Related: #107
|
I basically don't use supervisord for this exact reason |
You can use the stdout_logfile setting to point to a location on which the setgid or setuid flags have been set. |
+1 this would be a very welcome addition. |
+1 my expected behavior is for processes run as a user to act like that user is running the process themselves |
Want this feature, too. |
+1 What is suggested by @rockfruit will not works because the files are created by the user that supervisor was started, using with these permissions: 0644 (-rw-r--r--), even if you set another umask value, like 0077. If I set SGID and/or SUID bits on /var/log/supervisor for example, it will not works because the files will only assume the same group and/or user of the parent directory, not the permissions of the parent directory. I think the better solution for this case, until the supervisor code is updated by developers, is to set ACLs to the directory in which the log files will be placed. But I don't know if it is supported by all know *UNIX filesystems... |
+1 |
1 similar comment
+1 |
This seems to still be an issue (FreeBSD 11.2 & Supervisor 3.3.3). |
I am using 4.2.1 and still have this problem. So it seems that, just as #123 said "we celebrate the 10 year anniversary of this bug"
BUT
|
+1 |
1 similar comment
+1 |
I have supervisord running as root. I've set a user in my program section as well as stdout_logfile and stderr_logfile. However, those two files are being created as root and not as the user that owns the process. It's strange to me that the user I've specified should be able to kill the process, but not read the log files. It would be very nice if there were a chown option for the log files.
Mailing list thread on the issue indicates others have run into this as well:
http://lists.supervisord.org/pipermail/supervisor-users/2012-May/001069.html
The text was updated successfully, but these errors were encountered: