On 1/28/22 8:53 AM, Ed Greshko wrote:
On 28/01/2022 22:08, Robert Nichols wrote:
On 1/28/22 1:03 AM, Ed Greshko wrote:
On 26/01/2022 00:35, Robert Nichols wrote:
In a Fedora 35 VM, all users and groups in an NFS mounted filesystem are mapped to "nobody" even though the names and numeric IDs are the same on the server and client. The messages logged are of the form:
"name 'xxxx@local' does not map into domain 'localdomain'"
I have no nfs-idmapd service running. This same setup is running fine on a CentOS 8 VM. I didn't have to do anything special to make this work in CentOS 8. What am I missing here in a Fedora 35 installed with default configuration in a QEMU/KVM virtual machine?
Where does Fedora get its domain name? When I type "hostname --fqdn" I get "hostname: Name or service not known". The CentOS 8 VM apparently gets its domain name from the /etc/hostname file, which contains "cent9-vm.local". This does not appear to work in Fedora 35.
What do you get when you type "hostnamectl"?
On one of my VM's
[egreshko@f35ser ~]$ hostname --fqdn
f35ser.greshko.com
[egreshko@f35ser ~]$ hostnamectl
Static hostname: f35ser.greshko.com
Icon name: computer-vm
Chassis: vm
Machine ID: c4783bc505a24a9f973009568932bd82
Boot ID: a98191139f9c4d659faa48e5803d923b
Virtualization: kvm
Operating System: Fedora Linux 35 (Server Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:35
Kernel: Linux 5.15.15-200.fc35.x86_64
Architecture: x86-64
Hardware Vendor: QEMU
Hardware Model: Standard PC _Q35 + ICH9, 2009
fedora ~]# hostname --fqdn
fedora
[fedora ~]# domainname
(none)
From the man page....
domainname - show or set the system's NIS/YP domain name
So that comman is irrelevant.
[fedora ~]# hostnamectl
Static hostname: fedora
Icon name: computer-vm
Chassis: vm
Machine ID: 6e701e7fa0dc4996984b6509b40eb940
Boot ID: 5499ef393bd04028a0e92a6d70f3c6a9
Virtualization: kvm
Operating System: Fedora Linux 35 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:35
Kernel: Linux 5.15.16-200.fc35.x86_64
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
If I put a fqdn in /etc/hostname, that will show up as the static hostname, but "domainname" still returns "(none)" and everything else is the same.
Rather than manipulating files which may no longer be used.....
As root: hostnamectl name.domain.com
Example: For the host that I mentioned I used "hostnamectl f35ser.greshko.com"
Then hostname --fqdn returns the desired info.
FWIW, I created a user on that system with the same UID and GID of a user on a NAS. Which I think is similar to your setup.
No change:
[fedora ~]# hostnamectl hostname fedora.local
[fedora ~]# hostnamectl
Static hostname: fedora.local
Icon name: computer-vm
Chassis: vm
Machine ID: 6e701e7fa0dc4996984b6509b40eb940
Boot ID: 256c0a3fa9dd4b88bd61145aacc8e106
Virtualization: kvm
Operating System: Fedora Linux 35 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:35
Kernel: Linux 5.15.16-200.fc35.x86_64
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
[fedora ~]# hostname --fqdn
hostname: Name or service not known
[fedora ~]# hostname
fedora.local
[fedora ~]# mount -t nfs plugh-3g:/srv/shared /Public
[fedora ~]# ll -d /Public
drwxrws--x. 11 nobody nobody 4096 2022-01-28 17:20:50 /Public
[fedora ~]# journalctl SYSLOG_IDENTIFIER=nfsidmap | tail -4
Jan 28 21:19:14 fedora.local nfsidmap[2461]: nss_getpwnam: name 'root@local' does not map into domain 'localdomain'
Jan 28 21:19:14 fedora.local nfsidmap[2463]: nss_name_to_gid: name 'root@local' does not map into domain 'localdomain'
Jan 28 21:19:14 fedora.local nfsidmap[2464]: nss_getpwnam: name 'samba@local' does not map into domain 'localdomain'
Jan 28 21:19:14 fedora.local nfsidmap[2465]: nss_name_to_gid: name 'admin@local' does not map into domain 'localdomain'
A reboot after setting the hostname yields the same result. And, it's not because of anything special about a ".local" domain. Nothing I put in there causes a FQDN to be set.
--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure