mounting network file shares

mounting network file shares

Post by drax » Wed, 13 Dec 2000 20:11:11



I realize I'm probably going to cop a bit of newbie flaming for this
question.  The company I work for consists of Windows only machines, so I
built up and configured a Linux box as a fileserver to show my bosses the
advantages.  No probs there, samba shares work perfectly, webmin setup to
remotely admininster server.  Here's my problem, my boss got me to setup
another fileserver for another department in the company and I realized I
have no idea how to mount a linux share from the first server.  This share
is different from the samba shares and will only be accessed by the 2nd
linux box.  Could someone help me out and let me know how to share a
directory between linux boxes only.

Thankx in advance and I promise I won't take any of the "can't believe you
don't know..." comments to heart.

 
 
 

mounting network file shares

Post by Joerg Morbitze » Wed, 13 Dec 2000 21:40:22



> I realize I'm probably going to cop a bit of newbie flaming for this
> question.  The company I work for consists of Windows only machines, so I
> built up and configured a Linux box as a fileserver to show my bosses the
> advantages.  No probs there, samba shares work perfectly, webmin setup to
> remotely admininster server.  Here's my problem, my boss got me to setup
> another fileserver for another department in the company and I realized I
> have no idea how to mount a linux share from the first server.  This share
> is different from the samba shares and will only be accessed by the 2nd
> linux box.  Could someone help me out and let me know how to share a
> directory between linux boxes only.

> Thankx in advance and I promise I won't take any of the "can't believe you
> don't know..." comments to heart.

The solution is to "export" a directory from your server
(so more ore less to set some permissions) and to "mount" this
from a client machine.

So lets start with your so called NFS server (NFS means network
file system). In /etc/export (see also "man 5 exports") you
need to add an entry like this:

/path/your/share        *.yourdomain.com(rw)

...or something similar (check man page for further details).

Then start your NFS server daemon, on SuSE Linux for example

        /etc/rc.d/nfsserver start

On your client machine which should be a host in yourdomain.com
is now able to "mount" this directory. First you need a
so called mount point, which is more or less an empty
directory, lets say "mkdir /opt/mymount". Then edit
/etc/fstab and add something like this

server:/path/your/share /opt/mymount nfs defaults 0 0

(see man page for details).

Last but not least run a "mount -a" and a "df -k" should
display now the mounted drive from your server machine.

        Hope this helps you a little bit,

        Joerg.

 
 
 

mounting network file shares

Post by beerm.. » Sat, 16 Dec 2000 06:15:52


When mounting a Linux share on one server from another Linux box, I had
to use the -U (username) switch.

smbmount //server2/sharename /mnt/wibble -U matt

This should then prompt for a password for that username, and then
mount the share in /mnt/wibble.

Cheers - BeerMatt



Quote:> I realize I'm probably going to cop a bit of newbie flaming for this
> question.  The company I work for consists of Windows only machines,
so I
> built up and configured a Linux box as a fileserver to show my bosses
the
> advantages.  No probs there, samba shares work perfectly, webmin
setup to
> remotely admininster server.  Here's my problem, my boss got me to
setup
> another fileserver for another department in the company and I
realized I
> have no idea how to mount a linux share from the first server.  This
share
> is different from the samba shares and will only be accessed by the
2nd
> linux box.  Could someone help me out and let me know how to share a
> directory between linux boxes only.

> Thankx in advance and I promise I won't take any of the "can't
believe you
> don't know..." comments to heart.

Sent via Deja.com
http://www.deja.com/
 
 
 

1. normal user, want to mount network shares

I have a machine that serves samba shares.  (Or nfs shares, I don't care.)  
Some of the shares are public (no password, full access) and some are
private (requires user name and password, otherwise no access.)

I have various unix boxes (including FBSD, Linux, IRIX, etc) that wish to
mount the shares.

The public shares are easy to handle:  They get an entry in fstab and are
always mounted.

The private shares are the problem:  When joeuser logs in, (either ssh or
ftp) I want the system to mount the "\\othermachine\joeuser" share into the
folder "/home/joeuser/remote_samba_mount" and to use joeuser's name and
password.  Then, sometime later (preferably when joeuser logs out) I want
the share to be unmounted.

Can anyone tell me where to look, or what to use, or anything at all, to
help with this problem?

Thank you.

2. ppp woes

3. Mounting Shared Drive On Win98 network on Linux Box

4. Problem with scohttp

5. NT mounting a file system from a samba share

6. Diald problem

7. Check if shared file system mounted?

8. Help, I need to change my video card

9. How To mount a nt share to as a unix file system?

10. Need Help Mounting NetAPP Share as NFS Share

11. NFS file sharing mount gives permission denied ...

12. Apache not serving from CIFS-mounted share, works if it's mounted as SMBFS

13. "mounted cd-rom" and "mounted samba share" icons on KDE 3.1 desktop