You are not logged in.
I am installing Arch Linux as a vmware guest on VMware® Workstation 14 Pro. Everything seems fine:
On host:
Shared Folders are enabled and the folder is shared as "Host_Home"
On guest
pacman -Sy open-vm-tools
cat /proc/version > /etc/arch-release
vmware-hgfsclient shows the share:
Host_Home
Now create a mount point:
mkdir -p /home/net_shares/host_home
chmod a+w /home/net_shares/host_home
chmod a+x /home/net_shares/host_home
mount:
vmhgfs-fuse -o allow_other -o auto_unmount .host:/Host_Home /home/net_shares/host_home
I can access (as root) the shared directory without any problem:
ls -al /home/net_shares
/home/net_shares
total 12
drwxrwxrwx 3 root root 4096 Feb 18 06:00 .
drwxr-xr-x 5 root root 4096 Feb 18 18:01 ..
drwxrwxrwx 1 root root 4096 Feb 14 05:56 host_home
So I editted /etc/fstab to add the last entry:
# /dev/sda2
UUID=2d2fa5a5-c73c-41d9-98a1-8b8bccfb398b / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=58DA-5862 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda4
UUID=0eb543d5-cf5e-4817-a7a9-aed42f7e1279 /home ext4 rw,relatime,data=ordered 0 2
# /home/net_shares/host_home
.host:/Host_Home /home/net_shares/host_home fuse.vmhgfs-fuse defaults 0 0
and reboot. After reboot I logon as root again and verified that the share is accessible. No problem at all.
But then I created myself a standard user 'shine' which cannot access the shared node:
cd /home/net_shares
ls -al
ls: cannot access 'host_home': Permission denied
total 8
drwxrwxrwx 3 root root 4096 Feb 18 06:00 .
drwxr-xr-x 5 root root 4096 Feb 18 18:01 ..
d????????? ? ? ? ? ? host_home
I have tried:
remove the last entry of /etc/fstab and reboot so that the shared folder is not automatically loaded. Then I ran the mount command again:
vmhgfs-fuse -o allow_other -o auto_unmount .host:/Host_Home /home/net_shares/host_home
it was successful. At this moment both root and shine can access /home/net_shares/host_home without any problem. But after adding back the entry to fstab and reboot, only root can access it but not shine.
Am I missing anything?
TIA
Shine
Offline
bump....Still can't figure out .. any help is appreciated...
Thanks,
Shine
Offline
Try with allow_other
# /home/net_shares/host_home
.host:/Host_Home /home/net_shares/host_home fuse.vmhgfs-fuse allow_other defaults 0 0
Last edited by gjaltemba (2018-02-21 04:01:05)
Offline
1. Don't bump: https://wiki.archlinux.org/index.php/Co … ct#Bumping
2. Use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
Try with allow_other
# /home/net_shares/host_home .host:/Host_Home /home/net_shares/host_home fuse.vmhgfs-fuse allow_other defaults 0 0
That worked, thanks a lot! Indeed, I learned something
Shennan
Offline