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.
[egreshko@f35ser ~]$ sudo mount nas:/volume1/homes/djensen /mnt [egreshko@f35ser ~]$ mount | grep nas nas:/volume1/homes/djensen on /mnt type nfs4 (rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=sys,clientaddr=2001:b030:112f:2::f355,local_lock=none,addr=2001:b030:112f::19) [egreshko@f35ser ~]$ ll -d /mnt drwxrwxrwx. 1 djensen users 288 Sep 26 08:11 /mnt
-- Did 황준호 die?