Categories: CategoryNetwork


see: * suse samba book * samulat book * /usr/share/doc/samba/samba-doc * SambaPDCServer

install samba, samba-common, smbclient, samba-doc.

Server

Configuration file is /etc/samba/smb.conf. After changing configuration run testparm to check if syntax is ok.

The default configuration should work out of the box. You have just to set the workgroup:

[global]
    workgoup = mydomain

To view the shares on your server run:

smbclient -L localhost -U%

The Option -U% prevents asking for a password. This works only on the samba-server.

To connect to samba service run:

smbclient //hostname/aservice

aservice could be your home, so your could replace aservice with your username:

smbclient //bombadil/tux

Samba passwords

see:

Enable encrypted passwords (this is necessary for NT, W2K):

[global]
   encrypt passwords = yes

To generate the smbpasswd file from your /etc/passwd file use the following command :

$ cat /etc/passwd | mksmbpasswd > /etc/samba/smbpasswd

If you are running on a system that uses NIS, use

$ ypcat passwd | mksmbpasswd > /etc/samba/smbpasswd

By default this generates a smbpasswd file without passwords (32 X).

To change/set your samba password use smbpasswd. As root you can set the password for user with:

root$ smbpasswd -a user

On debian there is a script in /usr/share/doc/samba-doc which simplifies adding a new samba-user: smbadduser. If you are using NIS then use ypcat passwd.

user mapping

To map windows users to unix users add the following:

username map = /etc/samba/users.map

The map looks like:

root = admin administrator 

time server

set:

[global]
...
time server = yes

On windows 98 use the following command to sync time:

net time /s /y

On windows 2000 use:

net time \\samba /SET /YES