Difference between revisions of "Samba"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 2: Line 2:
  
 
= Mounting a network drive =
 
= Mounting a network drive =
To mount a shared drive from a Windows computer, use
+
To mount a shared drive from a Windows computer, [[open a console]] and type
 
  mount -o username=''user'',password=''password'' //''computer''/''share'' ''/mountpoint''
 
  mount -o username=''user'',password=''password'' //''computer''/''share'' ''/mountpoint''
 
Here you replace ''user'' by your user name, ''password'' by your password, ''computer'' by your computer's name, ''share'' by your share's name and ''/mountpoint'' by your mountpoint, e.g. /mnt/samba. Note that your mountpoint has to be an existing directory.
 
Here you replace ''user'' by your user name, ''password'' by your password, ''computer'' by your computer's name, ''share'' by your share's name and ''/mountpoint'' by your mountpoint, e.g. /mnt/samba. Note that your mountpoint has to be an existing directory.

Revision as of 10:03, 4 March 2009

Samba allows you to access network drives on Windows computers from your Linux computer and to provide network drives for Windows computer on your Linux computer. If your computer accesses a network drive, you are using the Samba client. If you provide a network drive on your computer, you are running the Samba server.

Mounting a network drive

To mount a shared drive from a Windows computer, open a console and type

mount -o username=user,password=password //computer/share /mountpoint

Here you replace user by your user name, password by your password, computer by your computer's name, share by your share's name and /mountpoint by your mountpoint, e.g. /mnt/samba. Note that your mountpoint has to be an existing directory.