[Xfce-bugs] [Bug 14718] symlink on read-only NFS share to redirect homedirectory prevents thunar from copy/paste to homedirectory
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Tue Oct 16 00:06:09 CEST 2018
https://bugzilla.xfce.org/show_bug.cgi?id=14718
--- Comment #5 from René Genz <liebundartig at freenet.de> ---
I installed a new virtual machine from scratch with the guide from comment 2
and I have no problem with nfs-server.service.
I can share the virtual machine, no problem. Original size is 3,8 GiB.
Compressed it is 1,2 GiB. I will upload the archive and sent you the download
link to your personal email address.
I updated the guide (easier to follow due to numbered steps; removed relative
path for symlink creation, include prompt, use root user account).
1. download ISO file of Fedora 29 x86_64 BETA:
$ wget --timestamping
"https://ftp-stud.hs-esslingen.de/pub/fedora/linux/releases/test/29_Beta/Workstation/x86_64/iso/Fedora-Workstation-netinst-x86_64-29_Beta-1.5.iso"
2. install a new virtual computer from downloaded ISO file, f.i. using
VirtualBox ; set optical disc below hard disk as boot option ; set Network
option from "NAT" to "Bridged Adapter"
3. select "Install Fedora 29" and press enter
4. set language to "English" and "English (United States)" and press [Continue]
5. press [I want to proceed]
6. at hub: set "Installation Destination" to hard disk of virtual computer and
press [Done]
7. at hub: set "Software Selection" to "Xfce Desktop" and press [Done]
8. at hub: click on [Begin Installation]
9. set root password for root account ; click on [Done] ; create user account
with administrative rights and set password ; click on [Done]
10. when installation is done click on [Reboot]
11. log in as user to virtual computer
12. click on [Use default config]
13. in terminal execute commands:
$ sudo systemctl disable --now firewalld.service
$ ip a # to get IP to be able to continue the IP address, f.i. 192.168.2.103
14. log out from virtual guest computer
15. log in from host via SSH to guest computer:
[user at HOST ~]$ ssh root at 192.168.2.103
[root at GUEST ~]# dnf install -y nfs-utils
[root at GUEST ~]# mkdir /share1 /share2 /mount1 /mount2
[root at GUEST ~]# echo "/share1 localhost(ro)" | sudo tee -a "/etc/exports"
/share1 localhost(ro)
[root at GUEST ~]# echo "/share2 localhost(rw)" | sudo tee -a "/etc/exports"
/share2 localhost(rw)
[root at GUEST ~]# cat "/etc/exports"
/share1 localhost(ro)
/share2 localhost(rw)
[root at GUEST ~]# systemctl enable --now nfs-server.service
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service
→ /usr/lib/systemd/system/nfs-server.service.
[root at GUEST ~]# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor
vendor preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: active (exited) since Mon 2018-10-15 22:37:29 CEST; 11s ago
Process: 1836 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then
systemctl restart gssproxy ; fi (code=exited, status=0/SUCCESS)
Process: 1823 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited,
status=0/SUCCESS)
Process: 1822 ExecStartPre=/usr/sbin/exportfs -r (code=exited,
status=0/SUCCESS)
Main PID: 1836 (code=exited, status=0/SUCCESS)
Oct 15 22:37:29 GUEST systemd[1]: Starting NFS server and services...
Oct 15 22:37:29 GUEST systemd[1]: Started NFS server and services.
[root at GUEST ~]# useradd -m name
[root at GUEST ~]# passwd name
[root at GUEST ~]# vipw
# change from:
name:x:1001:1001::/home/name:/bin/bash
# change to:
name:x:1001:1001::/mount1/name:/bin/bash
[root at GUEST ~]# mv /home/name /share2
[root at GUEST ~]# ln -s /share2/name /share1/name
[root at GUEST ~]# echo "localhost:/share1 /mount1 nfs ro,defaults 0 0" | sudo
tee -a "/etc/fstab"
localhost:/share1 /mount1 nfs ro,defaults 0 0
[root at GUEST ~]# echo "localhost:/share2 /mount2 nfs rw,defaults 0 0" | sudo
tee -a "/etc/fstab"
localhost:/share2 /mount2 nfs rw,defaults 0 0
[root at GUEST ~]# cat "/etc/fstab" | grep -v "#"
/dev/mapper/fedora-root / ext4 defaults 1 1
UUID=44b9fca5-b3a9-425f-96ef-9725d31c4ab3 /boot ext4
defaults 1 2
/dev/mapper/fedora-swap swap swap defaults 0 0
localhost:/share1 /mount1 nfs ro,defaults 0 0
localhost:/share2 /mount2 nfs rw,defaults 0 0
[root at GUEST ~]# systemctl reload nfs-server.service
[root at GUEST ~]# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor
preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: active (exited) since Mon 2018-10-15 22:37:29 CEST; 4min 43s ago
Process: 1907 ExecReload=/usr/sbin/exportfs -r (code=exited,
status=0/SUCCESS)
Process: 1836 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then
systemctl restart gssproxy ; fi (code=exited, status=0/SUCCESS)
Process: 1823 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited,
status=0/SUCCESS)
Process: 1822 ExecStartPre=/usr/sbin/exportfs -r (code=exited,
status=0/SUCCESS)
Main PID: 1836 (code=exited, status=0/SUCCESS)
Oct 15 22:37:29 GUEST systemd[1]: Starting NFS server and services...
Oct 15 22:37:29 GUEST systemd[1]: Started NFS server and services.
Oct 15 22:42:01 GUEST systemd[1]: Reloading NFS server and services.
Oct 15 22:42:01 GUEST systemd[1]: Reloaded NFS server and services.
[root at GUEST ~]# vim /etc/selinux/config
# change from:
SELINUX=enforcing
# change to:
SELINUX=disabled
[root at GUEST ~]# ls -l /share* /mount*
/mount1:
total 0
lrwxrwxrwx 1 root root 12 Oct 15 22:41 name -> /share2/name
/mount2:
total 4
drwx------ 15 name name 4096 Oct 15 22:51 name
/share1:
total 0
lrwxrwxrwx. 1 root root 12 Oct 15 22:41 name -> /share2/name
/share2:
total 4
drwx------. 15 name name 4096 Oct 15 22:51 name
[root at GUEST ~]# reboot
16. after reboot log in to GUI session with user "name" to an Xfce session
17. click on [Use default config]
18. start "File Manager" (=`thunar`) from lower panel; "Help -- About Thunar"
prints version: 1.8.2
in Thunar's address bar the path is shown as "/share2/name/"
### now to reproduce the bug:
19. in `thunar` on left side at "PLACES" click on home directory icon labeled
"name"
20. the address bar displays the path as "/mount1/name/"
21. you cannot copy-paste folders with and without content from and to the
directory ; you cannot copy-paste files with content (single character is
sufficient) from and to the directory
the error message prints this text:
---8<---
Error while copying to "name".
The destination is read-only.
[Close]
---8<---
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list