| Newsgroups |
gmane.linux.redhat.fedora.general |
| Message-ID |
<[email protected]> |
On 6/6/26 00:06, Francis Montagnac via users wrote:
> On Fri, 5 Jun 2026 21:04:56 +1000 [email protected] wrote:
>
>> Suppose I want to make a change in, say, nsswitch.conf. How do I
>> properly do it such that authselect stays in the loop?
>
>> Just edit the file manually, or is some magic needed?
>
> Some magic needed yes, see the manuals of authselect and
> authselect-profiles, but before creating a custom profile, check if
> some feature of the local profile solves your problem.
>
> See: authselect show local
Sure, but I do not yet understand how the listed features lead to the content of (which) files.
I ask myself: which feature will create a working (see below) hosts line in nsswitch.conf?
> The default (on my machine installed in F42) is:
>
> authselect current
> Profile ID: local
> Enabled features:
> - with-silent-lastlog
> - with-fingerprint
> - with-mdns4
>
> resulting in that for hosts in nsswitch.conf:
>
> grep hosts /etc/authselect/nsswitch.conf
> hosts: files myhostname mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
This is actually the problem, I needed to remove the [!UNAVAIL=return] to make things work.
I suspect this change is needed because I have some issues with my dns setup.
What I have now is:
#hosts: files myhostname resolve [!UNAVAIL=return] dns
hosts: files myhostname resolve dns
The first line is what the system originally had (failed for me), which I commented and edited.
This setup was inherited for many fedora versions (there is a comment saying it was done in July 2021).
<mumbling>
If I understand the idea of a profile, it is meant to provide a clear feature requirement and
the system then provides the necessary conf files to implement it. If a conf file uses new syntax
or such then a suitable one will be created by authselect to implement the specified features.
This way I do not need to know how to write the configs myself.
This is a good idea to avoid the usual case where the update creates a .rpmnew file and lets me sort it out.
</mumbling>
--
Eyal at Home ([email protected])
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new