Line 1: |
Line 1: |
− | ==Automatically mount a network share on your SME server at boot==
| |
| {{Level|medium}} | | {{Level|medium}} |
| | | |
− | === Assumptions=== | + | [[File:Exemple.jpg|thumb]]=== Assumptions=== |
| | | |
| This Howto assumes: | | This Howto assumes: |
− | * You will be mouning your shares into the '''info''' ibay | + | * You will be mounting your shares into the '''info''' ibay |
| * You will be using '''cifs''' (smbfs or nfs should be similar) | | * You will be using '''cifs''' (smbfs or nfs should be similar) |
| * Your cifs server is named '''nas01''' | | * Your cifs server is named '''nas01''' |
Line 46: |
Line 45: |
| === Mounting === | | === Mounting === |
| You can test your new mount script by running it: | | You can test your new mount script by running it: |
− | /etc/e-smith/events/local/S95netshare | + | /etc/e-smith/events/local/S95netshares |
| | | |
| Or by executing the SME '''local''' event: | | Or by executing the SME '''local''' event: |
Line 92: |
Line 91: |
| | | |
| === Notes and Warnings === | | === Notes and Warnings === |
− | # The method described gives access to //nas01/share1 and //nas02/share2 using the username and password placed into /root/.passwd/nas01. Once successfully mounted, this means that anyone who can browse to the '''info''' ibay will be able to access your data. Make sure this is what you want! | + | # The method described gives access to //nas01/share1 and //nas01/share2 using the username and password placed into /root/.passwd/nas01. Once successfully mounted, this means that anyone who can browse to the '''info''' ibay will be able to access your data. Make sure this is what you want! |
| # If you don't include <tt>/etc/rc.d/init.d/netfs start</tt> in your script (S95netshares), your system will lock up every time you shutdown. This is a bug in CentOS (and hence will not be addressed by the SME developers). See [http://bugs.contribs.org/show_bug.cgi?id=4086 Bug 4086] for more information. | | # If you don't include <tt>/etc/rc.d/init.d/netfs start</tt> in your script (S95netshares), your system will lock up every time you shutdown. This is a bug in CentOS (and hence will not be addressed by the SME developers). See [http://bugs.contribs.org/show_bug.cgi?id=4086 Bug 4086] for more information. |
− | # Combined with [[DAV]] or [[DAV_Enabled_Ibays]] this procedure would allow remote read-write access using [http://www.webdav.org/ WebDAV] to network shares on internal servers behind your SME server. | + | # Combined with [[DAV]] this procedure would allow remote read-write access using [http://www.webdav.org/ WebDAV] to network shares on internal servers behind your SME server. |
| + | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |
| + | [[Category:Administration:Storage]] |
| + | [[Category:Administration:File and Directory Access]] |