Samba Configuration

From LinuxFanBoy
Jump to: navigation, search
SAMBA File Systems

Today is another study day. I have been doing a lot of reading but I haven't had a chance to do much hands on work because of my schedule. I'm working Friday thought Monday from 11:45am to 11:00pm and today is another work day. I'm squeezing in my studies between fixing computer problems for Dell customers.

SAMBA Samba or SMB is run with to program (/usr/sbin/smbd and /usr/sbin/nmbd) and the config file /etc/samba/smb.conf.

The smb.conf file can be check for errors with the command testparm.

The smb.conf file is confusing. Don't forget there are man pages on configurations files as well. Try man smb.conf.

smbclient -L //computer/IP -U userID

You can graphic browse a smb computer with Nautilus. Enter smb://computer/IP

Things to check in the smb.conf file

   workgroup = groupname
   netbios name = ComputerName
   security = user / domain / server / share

user = The server is the PDC domain = The server is a member of a domain and you name the PDC with the Password database server = The server is a member of a domain and you name another share = The server is a member of a peer-to-peer workgroup.

If you use Domain or Share you will need to set:

   password server = NT-Server-Name

All new Windows system require password encryptions. Set these options:

   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd

To keep Windows and Linux passwords in sync:

   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *new*UNIX*password* %n\n \
   *Retype*new*UNIX*password* %n\n \
   *passwd:*all*authentication*tokens*updated*successfully*

Windows user names and Linux user IDs need to be identical. If not you can match them up with a file.

   username map = /etc/samba/smbusers
Personal tools