Differences between revisions 10 and 11
Revision 10 as of 2010-10-12 04:43:42
Size: 1574
Editor: ?AlastairIrvine
Comment: Added credentials file with cifs stuff
Revision 11 as of 2010-10-12 04:54:50
Size: 1708
Editor: GeoffSimmons
Comment: DebianPkg, samba-common is brought in as a dependency of cifs-utils, formatting.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----
Line 3: Line 6:
Should work out of the box if you install samba-common and smbfs (on Lenny with stock kernel): Should work out of the box if you install DebianPkg:smbfs (on Lenny with stock kernel):
Line 8: Line 11:
''Mounting ''samba shares for easy access by programs does not work out of the box because netbios name resolution isn't set up correctly. However, if you figure out the IP address of a server you'd like to connect to (while you have a page accessing smb://<name> open in firefox, do 'netstat' from a command prompt and look for IP addresses using the "netbios-ssn" service), the following will work: ''Mounting ''samba shares for easy access by programs does not work out of the box because NetBIOS name resolution isn't set up correctly. However, if you figure out the IP address of a server you'd like to connect to (while you have a page accessing smb://<name> open in firefox, do 'netstat' from a command prompt and look for IP addresses using the "netbios-ssn" service), the following will work:
Line 10: Line 13:
Add the following line to /etc/fstab: Add the following line to {{{/etc/fstab}}}: {{{
//<IPAddress>/<share name> /mnt/smb cifs password=,uid=1000,umask=000 0 0
}}}
Line 12: Line 17:
//<IPAddress>/<share name> /mnt/smb cifs password=,uid=1000,umask=000 0 0 Here we're using the mountpoint {{{/mnt/smb}}} (which you must create) and assuming the share has no password.
Line 14: Line 19:
Here we're using the mountpoint /mnt/smb (which you must create) and assuming the share has no password. If the share does have a password, try an options list like the following: {{{
  credentials=/usr/local/etc/whisper.credentials
}}}
Line 16: Line 23:
If the share does have a password, try an options list like the following:

  credentials=/usr/local/etc/whisper.credentials

The file /usr/local/etc/whisper.credentials should contain the following:
The file {{{/usr/local/etc/whisper.credentials}}} should contain the following: {{{
Line 23: Line 26:
with NO PADDING! Note, unlike smbfs, "<DomainName>/" is required. (Use the workgroup or machine name if there is no domain.) }}}
with NO PADDING! Note, unlike smbfs, {{{<DomainName>/}}} is required. (Use the workgroup or machine name if there is no domain.)
Line 25: Line 29:
To makes files/dirs appear with sensible permissions, try adding the following to the options list: {{{
  file_mode=0664,dir_mode=0775,gid=adm
}}}
Line 26: Line 33:
To makes files/dirs appear with sensible permissions, try adding the following to the options list:
  file_mode=0664,dir_mode=0775,gid=adm

TODO: Set up netbios name resolution; document smbnetfs configuration.
[[ToDo]]: Set up netbios name resolution; document smbnetfs configuration.

Translation(s): none


SAMBA Client Setup

Should work out of the box if you install smbfs (on Lenny with stock kernel):

  • The smb:// protocol in Firefox/Iceweasel: try smb://<computer-name>/

  • smbclient -L <computer-name>

  • Using the Gnome file browser to browse Samba hosts and shares

Mounting samba shares for easy access by programs does not work out of the box because NetBIOS name resolution isn't set up correctly. However, if you figure out the IP address of a server you'd like to connect to (while you have a page accessing smb://<name> open in firefox, do 'netstat' from a command prompt and look for IP addresses using the "netbios-ssn" service), the following will work:

Add the following line to /etc/fstab:

//<IPAddress>/<share name>    /mnt/smb   cifs    password=,uid=1000,umask=000    0    0

Here we're using the mountpoint /mnt/smb (which you must create) and assuming the share has no password.

If the share does have a password, try an options list like the following:

  credentials=/usr/local/etc/whisper.credentials

The file /usr/local/etc/whisper.credentials should contain the following:

  username=<DomainName>/<username>
  password=<password>

with NO PADDING! Note, unlike smbfs, <DomainName>/ is required. (Use the workgroup or machine name if there is no domain.)

To makes files/dirs appear with sensible permissions, try adding the following to the options list:

  file_mode=0664,dir_mode=0775,gid=adm

ToDo: Set up netbios name resolution; document smbnetfs configuration.


CategoryNetwork