Pacey, Mike
2009-Mar-31 12:10 UTC
[zfs-discuss] Permission problems with nfs-mounted zfs user directories
I''m currently setting up user directories on a zfs filesystem (Solaris 10) which I then nfs mount on an OpenSUSE 9.3 system. I have a zpool called zpool1. First, I set up a "home" zfs volume: zfs create zpool1/la_home_hpc_users zfs sharenfs=on zpool1/la_home_hpc_users Then I create a user directory/volume: zfs create zpool1/la_home_hpc_users/paceytmp zfs set sharenfs=on zpool1/la_home_hpc_users/paceytmp zfs set quota=225M zpool1/la_home_hpc_users/paceytmp chown paceytmp /zpool1/la_home_hpc_users/paceytmp chmod 700 /zpool1/la_home_hpc_users/paceytmp chgrp 225 /zpool1/la_home_hpc_users/paceytmp And confirm that this is done: % zfs list |grep paceytmp zpool1/la_home_hpc_users/paceytmp 40.7K 225M 40.7K /zpool1/la_home_hpc_users/paceytmp % ls -ld /zpool1/la_home_hpc_users/paceytmp drwx------ 2 paceytmp cp 2 Mar 31 09:47 /zpool1/la_home_hpc_users/paceytmp Hopping across to my linux box, I now mount the "home" volume: % mount -o rw -t nfs thumper:/zpool1/la_home_hpc_users /home/users And confirm: % cd /home/users % df -k . Filesystem 1K-blocks Used Available Use% Mounted on thumper:/zpool1/la_home_hpc_users 18137839904 544 18137839360 1% /home/users % ls -ld paceytmp drwxr-xr-x+ 2 root root 2 2009-03-31 09:47 paceytmp The owner is root, not the user I set chown for. I also seem to have a facl I never set up. Can someone advise on the correct way to do this so that the permissions are correct? Thanks, Mike. ----- Dr Mike Pacey, Email: M.Pacey at lancaster.ac.uk High Performance Systems Support, Phone: 01524 593543 Information Systems Services, Fax: 01524 594459 Lancaster University, Lancaster LA1 4YW