Differences between revisions 2 and 20 (spanning 18 versions)
Revision 2 as of 2008-04-09 17:19:13
Size: 1423
Editor: ?eecharlie
Comment:
Revision 20 as of 2020-12-12 10:30:38
Size: 2350
Editor: ?MartinFleck
Comment: changed '#' to sudo, which I think is more user friendly
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
= Configuring LDAP Authentication for Debian =
== SAMBA Client Setup ==
Should work out of the box if you install samba-common (on Lenny with stock kernel):
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[pt_BR/SAMBAClientSetup|Português Brasileiro]] - English-~
----
The IRC dpkg ''bot'' points you at http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ and http://samba.org/samba/docs/ http://wiki.samba.org/ #samba on irc.freenode.net (assuming this doesn't help).
= SAMBA Client Setup =

Should work out of the box if you install DebianPkg:cifs-utils:
Line 7: Line 10:
 * smbclient -L <computer-name>  * smbclient -L <computer-name> (requires DebianPkg:smbclient package)
Line 9: Line 12:
''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.
TODO: Set up netbios name resolution; document smbnetfs configuration.TIP: if you change something in the LDAP tree (NCSD still caches the old entry) you can clean the cache of NSCD with the following commands...
''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 15: Line 14:
{{{
  # nscd --invalidate=group
Add the following line to {{{/etc/fstab}}}: {{{
//<IPAddress>/<share name> /mnt/smb cifs password=,uid=1000,umask=000 0 0
Line 18: Line 17:
{{{
  # nscd --invalidate=passwd

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 21: Line 23:

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 (although this doesn't appear to be the case for Debian Jessie). (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
}}}

Possible errors of the mounting process can be viewed with: {{{
  sudo tail -f /var/log/kern.log
}}}

'''Note''': If you're on Buster, you'll need to add the option {{{x-systemd.automount}}} to mount the share on startup.


[[ToDo]]: Set up netbios name resolution; document smbnetfs configuration.
Line 22: Line 44:
 See Also:
Line 24: Line 45:
 * ["LDAPAuthentication"]
 * [["SAMBAServerSetup"] http:index.cgi?["SAMBAServerSetup"]]
CategoryNetwork | CategorySoftware | CatgeoryObsolete | ToDo: group with [[Samba]]

Translation(s): ?Português Brasileiro - English


The IRC dpkg bot points you at http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ and http://samba.org/samba/docs/ http://wiki.samba.org/ #samba on irc.freenode.net (assuming this doesn't help).

SAMBA Client Setup

Should work out of the box if you install cifs-utils:

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

  • smbclient -L <computer-name> (requires smbclient package)

  • 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 (although this doesn't appear to be the case for Debian Jessie). (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

Possible errors of the mounting process can be viewed with:

  sudo tail -f /var/log/kern.log

Note: If you're on Buster, you'll need to add the option x-systemd.automount to mount the share on startup.

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


CategoryNetwork | CategorySoftware | ?CatgeoryObsolete | ToDo: group with Samba