You are not logged in.
Hi there,
I have a network for debugging, and the router of this network is setup with an OpenWRT virtual machine.
I have setup an samba shared folder on OpenWRT router, then I want access this shared resource with xrdp+openbox+thunar.
But the access is very slow.... I can access the shared folder eventually, but it is very slow between I hit enter at address bar and the pop up window of the thunar's password prompt window.
And I found the permission of /run/user/972/gvfs is lack of write permission ... and this folder is empty.
>> mount|grep gvfs
gvfsd-fuse on /run/user/972/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=972,group_id=984)
>> ls -l /run/user/972
...
dr-x------ 2 pand0ra users 0 12月23日 20:23 gvfs/
...And there is an error, I dont know whether this is helpfull:
>> journalctl --system | grep -i gvfs
....
12 23 20:23:55 ArchLinux-00-X64 org.gtk.vfs.Daemon[4960]: fusermount3: failed to access mountpoint /run/user/972/gvfs: Permission denied
....Finnaly, I have to enter password twice when accessing the shared folder, first time is connecting to the samba server, second time is open the shared folder (I've install gnome-keyring, and select remeber password for this session)
So, 2 questions:
1. Why /run/user/972/gvfs folder is empty ?
2. Why I need enter password twice even I selected 'rember password for this session' ?
Last edited by Hacksign (2024-01-19 09:28:46)
Offline
After some reasearch, I found this is a problem about
DBUS_SESSION_BUS_ADDRESSThis environment is incorrectlly set by unknown reason:
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-C22Le4gNOU,guid=623ec95c23a72921a8b8ec0d6599daefThe correct one should be:
DBUS_SESSION_BUS_ADDRESS=/run/user/<uid>/busAfter start thunar by this command:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus thunarThunar will mount remote shared folder to /run/user/1000/gvfs/smb-share:xxxxxx.
So, current problem is why this environment is incorrect ?
It seems this is related to /etc/pam.d/ modules, I found this issue on github: https://github.com/neutrinolabs/xrdp/issues/1684
What I have done is:
1. add DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus in /etc/environment, NOT WORK
2. comment out pam_systemd_home.so in /etc/pam.d/system-auth, NOT WORK
3. modify ~/.xinitrc to change startup way of my desktop environment, NOT WORK
So, any suggestions ?
Last edited by Hacksign (2024-01-06 15:08:57)
Offline