NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
F_L_
Feb 22, 2014Tutor
Manually create SMB and NFS share
I´ve managed to create my own SMB-share in /etc/frontview/samba/Shares.conf and /etc/frontview/samba/addons/addons.conf This seems to work. But what is the proper what to add it as NFS? Runnin...
F_L_
Feb 23, 2014Tutor
fastfwd
I am enabling it again.
Strange that it doesn't behave the same way but I fully agree with you that it doesn't matter how it looks when NFS is disabled.
StephenB: I would prefer to do it in FrontView if possible, didn't think it was.
Basically I want to achieve this:
I have an already created folder I want to share using Samba and NFS.
Eg: \data\dir1\dir2\FolderToShare
I can't see any option to browse an already existing folder using "New Folder" under Shares.
So I assumed the only way was to add it manually in Shares.conf/addons.conf (for Samba) and to do something similar for NFS.
A workaround might be to create FolderToShare using FrontView and then change the path in Shares.conf/exports?
I will try this.
EDIT: Didn't work for me...
fastfwd wrote:
F.L. wrote: Yes, In the System -> Services I click on NFS and uncheck the box Enable NFS, then APPLY.
Wait... So you're only disabling NFS, not also re-enabling it?
F.L. wrote: On my Ultra the "standard" shares are still visible when running exportfs, even if NFS is disabled (NFS button is not green).
However, my share that I added by editing etc/exports and exportfs -a disappears.
That's not how it works on my Ultra 2 Plus (OS 4.2.26).
With NFS enabled in Frontview:System:Standard File Protocols, I created a share from within Frontview and enabled NFS access to it. That automatically added it to /etc/exports and made it appear in the exportfs output, as expected:NAS2:/# cat /etc/exports
"/nfstest" *(insecure,insecure_locks,ro,sync)
NAS2:/#
NAS2:/# exportfs
/c/nfstest <world>
NAS2:/#
Then I disabled NFS from Frontview. This cleared the exportfs output (note that this behavior is different from what you reported):NAS2:/# exportfs
NAS2:/#
Then I edited /etc/exports manually to add a new share:NAS2:/# cat /etc/exports
"/nfstest" *(insecure,insecure_locks,ro,sync)
"/nfstest_manual" *(insecure,insecure_locks,ro,sync)
NAS2:/#
Exporting the shares, even with the NFS server stopped, made them both show up in the exportfs output (I didn't expect this):NAS2:/# exportfs -a
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfstest".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfstest_manual".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
NAS2:/# exportfs
/c/nfstest_manual
<world>
/c/nfstest <world>
NAS2:/#
Re-enabling NFS from within Frontview didn't change anything; exportfs still shows both shares:NAS2:/# exportfs
/c/nfstest_manual
<world>
/c/nfstest <world>
NAS2:/#
Disabling NFS from within Frontview makes them both disappear from the exportfs output (again, this is not the behavior that you reported):NAS2:/# exportfs
NAS2:/#
And re-enabling NFS brings them both back:NAS2:/# exportfs
/c/nfstest_manual
<world>
/c/nfstest <world>
NAS2:/#
I don't know why your system apparently behaves differently from mine, but I'm also not too sure that it matters: Do we really care whether a directory appears in the exportfs list while the NFS server is disabled? The important thing is that it's in the exportfs list while the NFS server is running, right?
I am enabling it again.
Strange that it doesn't behave the same way but I fully agree with you that it doesn't matter how it looks when NFS is disabled.
StephenB: I would prefer to do it in FrontView if possible, didn't think it was.
Basically I want to achieve this:
I have an already created folder I want to share using Samba and NFS.
Eg: \data\dir1\dir2\FolderToShare
I can't see any option to browse an already existing folder using "New Folder" under Shares.
So I assumed the only way was to add it manually in Shares.conf/addons.conf (for Samba) and to do something similar for NFS.
A workaround might be to create FolderToShare using FrontView and then change the path in Shares.conf/exports?
I will try this.
EDIT: Didn't work for me...
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!