-
Notifications
You must be signed in to change notification settings - Fork 84
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
Normal users of cron should not have /sbin & /usr/sbin in path by default #183
Comments
The bin/sbin split is a historic artifact. Many utilities in sbin are useful for regular users and furthermore cron jobs as run by the root user might very well need to run also some of them which are not so useful for regular users. You can override the path by putting this in /etc/sysconfig/crond
|
@intc might want to add some more information as he opened the original pull request that changed this. |
I agree with @t8m. Can't see any reason why these folders should not be in the PATH. Btw. PATH is not a security construct of any sort. I wonder if @freebsdfrau would have anything to add to this discussion? |
OK, so I'll try to rephrase the question, because I just don't get the "I don't see a problem with it" |
9 above should be an open parentheses. |
There was no imperative, however things change in Linux/UNIX world and this is certainly more convenient. See for example: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617898 Anyway, I am not going to revert this unless there are very strong arguments why this presents a security issue of some sort. |
Historical, yes, change happens, most humans don't like it when it affects them badly but eventually live with it. Seems to me the "2" variables in the code _PATH_DEFPATH_ROOT & _PATH_DEFPATH are there for a purpose I have no problem with it that the default PATH of cron should include /sbin and /usr/sbin for the root user. That /sbin and /usr/sbin are usually symlinks (on all nix's now?) would indicate that one could be removed, So let's not muck around lets make it consistent, whatever that is for the future! (hopefully there's a "plan") Which brings up the question... As I said I want to understand why this happened - I'm not going to rant that it should be reverted. Is it a security problem? Not immediately & maybe never, it often takes 2 bugs to tango... |
Can I please understand the reason why cron is suddenly, in fedora (FC40),
giving "normal" users a PATH that includes /sbin & /usr/sbin?
There does not seem to be a really valid reason for this & it could be something
that creates unexpected problems. Normal users should not really have sbin in
their path.
Fedora rejected,
as being an "upstream change"...
It seems to be due to,
Please help me understand this!
The text was updated successfully, but these errors were encountered: