Access OpenSolaris CIFS Fileserver

I have a mixed environment with OpenSolaris-2009.06, SuseLinux, and WindowsXP clients trying to access an OpenSolaris-2009.06 ZFS File-Server.

I’m the only user on the network, which is entirely behind a hardware-firewall. For now, I’ve been erring on the side of overly-permissible file-premissions, and still can’t access my own data.

The fileserver (Shangri-La or 192.168.28.29) has a static-IP, as no real local DNS is configured. I have the same username and password on all my machines.

Current Client Access

– Currently I can’t seem to automount the ZFS filesystems at all.
– If I use the GUI “Connect To Server” on OpenSolaris or Linux I can connect to a specific ZFS fileshare
– However If I connect to a top-level one, I get ‘permission-denied’ when trying to traverse into a lower one.
– I have to connect-to them all separately or simply connect-to the bottom leaves of the tree.

OpenSolaris Client now can browse all the filesystems individually, from gnome using eg: (smb://shangrila/dpool_import_cairo/)

I’ve followed numerous guides, and leafed through the ZFS and CIFS admin books. But still have no sane/consistent way to access the data from my Opensolaris client, let alone the suse one. Haven’t even tried Windows yet.

Server Side Config Files

~/bin/aclres.exe
With my limited knowledge of ACL permissions, I wrote this primitive brute-force script to set the permissions on the files I wanted to share.

#!/bin/bash

## Defaults
chmod -R A-    *
chmod -R 755    *
chown -R johnSmith *
chgrp -R staff *

## Files
chmod -R A=everyone@:rwxpaRcs:allow    *
chmod -R A+everyone@:AWCo:deny    *

chmod -R A+group@:rwxpd:allow    *
chmod -R A+group@::deny     *

chmod -R A+owner@:rwxpdDAWCo:allow    *
chmod -R A+owner@::deny    *

## Directories
chmod -Rf A=everyone@:rwxpaRcs:fd:allow    *
chmod -Rf A+everyone@:AWCo:fd:deny    *

chmod -Rf A+group@:rwxpd:fd:allow    *
chmod -Rf A+group@::fd:deny     *

chmod -Rf A+owner@:rwxpdDAWCo:fd:allow    *
chmod -Rf A+owner@::fd:deny    *

ZFS Layout

johnSmith@shangrila:~$ zfs list |grep  dpool
dpool                                  174G  54.5G  25.5K  /dpool
dpool/data                              62K  54.5G    22K  /dpool/data
dpool/data/davinci                      20K  54.5G    20K  /dpool/data/davinci
dpool/data/firefly                      20K  54.5G    20K  /dpool/data/firefly
dpool/dev                             16.3G  54.5G    22K  /dpool/dev
dpool/dev/magento                       20K  54.5G    20K  /dpool/dev/magento
dpool/dev/torque                      16.3G  54.5G  16.3G  /dpool/dev/torque
dpool/import                           114G  54.5G    23K  /dpool/import
dpool/import/athenaHome               57.5G  54.5G  57.1G  /dpool/import/athenaHome
dpool/import/aura                       20K  54.5G    20K  /dpool/import/aura
dpool/import/cairo                    56.1G  54.5G  39.1G  /dpool/import/cairo
dpool/media                           44.0G  54.5G    24K  /dpool/media
dpool/media/amadeus                   22.2G  54.5G  22.2G  /dpool/media/amadeus
dpool/media/holly                     21.8G  54.5G  21.8G  /dpool/media/holly
dpool/media/import                      20K  54.5G    20K  /dpool/media/import

Client Side Config Files

/etc/auto_master

+auto_master
/net		-hosts		-nosuid,nobrowse
/home		auto_home	-nobrowse
#/dpool   auto_smb   -nobrowse
/-       auto_direct

/etc/auto_direct

/dpool                -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool
/dpool/data           -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data
/dpool/data/davinci   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data/davinci
/dpool/data/firefly   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data/firefly
/dpool/dev            -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev
/dpool/dev/magento    -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev_magneto
/dpool/dev/torque     -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev_torque
/dpool/import         -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import
/dpool/import/athenaHome -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/athenaHome
/dpool/import/aura    -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/aura
/dpool/import/cairo   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/cairo
/dpool/media          -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media
/dpool/media/amadeus  -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/amadeus
/dpool/media_/holly   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/holly
/dpool/media/import   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/import

/etc/auto_smb

dpool                -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool
dpool_data           -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data
dpool_data_davinci   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data/davinci
dpool_data_firefly   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data/firefly
dpool_dev            -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev
dpool_dev_magento    -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev_magneto
dpool_dev_torque     -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev_torque
dpool_import         -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import
dpool_import_athenaHome -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/athenaHome
dpool_import_aura    -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/aura
dpool_import_cairo   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/cairo
dpool_media          -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media
dpool_media_amadeus  -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/amadeus
dpool_media__holly   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/holly
dpool_media_import   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/import

Attempting to Automount from OpenSolaris Client

johnSmith@athena: 502# automount -v
automount: hierarchical mountpoint: /dpool and /dpool/data
automount: hierarchical mountpoint: /dpool and /dpool/data/davinci
automount: hierarchical mountpoint: /dpool and /dpool/data/firefly
automount: hierarchical mountpoint: /dpool and /dpool/dev
automount: hierarchical mountpoint: /dpool and /dpool/dev/magento
automount: hierarchical mountpoint: /dpool and /dpool/dev/torque
automount: hierarchical mountpoint: /dpool and /dpool/import
automount: hierarchical mountpoint: /dpool and /dpool/import/athenaHome
automount: hierarchical mountpoint: /dpool and /dpool/import/aura
automount: hierarchical mountpoint: /dpool and /dpool/import/cairo
automount: hierarchical mountpoint: /dpool and /dpool/media
automount: hierarchical mountpoint: /dpool and /dpool/media/amadeus
automount: hierarchical mountpoint: /dpool and /dpool/media_/holly
automount: hierarchical mountpoint: /dpool and /dpool/media/import
automount: /dpool mounted
automount: no unmounts
johnSmith@athena: 503# ls /dpool
/dpool: Permission denied
johnSmith@athena: 504#
This entry was posted in 2009.06, OpenSolaris. Bookmark the permalink.