DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 12th December 2012
Eend's Avatar
Eend Eend is offline
Just Hatched
 
Join Date: Apr 2009
Location: Drenthe
Posts: 3
Default Writable CIFS share inside jail

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?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can FAT32 partition be writable by ordinary user ? sw2wolf OpenBSD General 5 24th March 2012 03:15 PM
Dennis Ritchie: the other man inside your iPhone J65nko News 2 16th October 2011 09:56 PM
Misc. BSD/UNIX Inside Mac OS X 10.7 Lion Server: Apple replaces Samba for Windows networking service J65nko News 0 24th March 2011 08:06 PM
pkg inside non-global zone? nacredata Solaris 2 30th September 2008 11:50 PM
no internet connection inside jail...? bgobs FreeBSD General 11 17th June 2008 04:36 PM


All times are GMT. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick