I've recently set up a FreeBSD 9.0 RELEASE machine as a jailhost. One of the jails needs to write to a CIFS/SMB share on a FreeNAS 8.2 system. I can mount the share on the jailhost, but i can only write to the share as root. And i don't want the application writing to the share running as root, as the app has it's own account: "_user".
After I do
Code:
mount_smbfs -N //user@nas/datastore1 /usr/jails/jail1/mnt/datastore1
I've already set up a .nsmbrc file, and tried /etc/fstab:
Code:
//user@nas1/datastore1 /usr/jails/jail1/mnt/datastore1 smbfs rw,noauto,-u=_user,-g=_user 0 0
After that, i rebooted the jailhost, but the share isn't mounted on boot, and when i mount it manually i still can't write to the share..
See the permissions below:
Code:
# ls -la
total 24
drwxr-xr-x 3 root wheel 512 Dec 12 18:43 .
drwxr-xr-x 12 root wheel 512 Nov 25 18:01 ..
drwxr-xr-x 1 root wheel 16384 Jan 1 1970 media
I've spent the last few days googling for this, but i can't find much useful..
Is it possible to mount a CIFS share in a jail, and have the jail write data to that share?