-
Notifications
You must be signed in to change notification settings - Fork 19
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
Give more useful error message when /etc/login.defs isn't present #89
Comments
Hmm, I looked up the
🤷 ... Anyways I can work on fixing this one. As for the location of the file, are you sure it only exists in /usr and not symlinked to /etc? If it is actually moved there I can add an ENV to override it's location at build time. And considering the fact that regreet is not packaged on tumbleweeed (https://software.opensuse.org/search?q=regreet&baseproject=openSUSE%3AFactory) you have probably built it from source so I think you can test out the patch. |
Sorry for the delay - it appears to be working, I'm getting this error in the logs when I test with #91:
Maybe the man page is out of date? but it appears that the file in |
Welp, at least it doesn't panic anymore. I will work on adding a const override via ENVs, should probably add an override for the default values for UID_MIN and UID_MAX because the defaults may differ across distros too?... |
@rharish101 I think the override path should allow |
Yeah, I think so! |
Okie |
In Solus, neither |
I just rechecked, it exists in |
I did a quick search and this post says its in useradd --key UID_MIN=60001 Then see if the override is placed into /usr or a file is created in /etc. @Merlin04 I am assuming that for you, it would just go into /usr/etc/login.defs, but can you check too? |
Some distros (in my case, opensuse tumbleweed) don't have an /etc/login.defs - instead, it's located at /usr/etc/login.defs. If you try running regreet on a standard tumbleweed system, it panics with a generic unable to read file error, not saying what file it tried to read. Ideally, it would try the /usr path if the normal path isn't found, and if that still doesn't exist, then print an error indicating that neither file was found.
The text was updated successfully, but these errors were encountered: