[samba] Configuration File, options, add a samba user

A simple blog, to be completed.

– 1st point :

An example of samba configuration file structure :

    workgroup = METRAN
    encrypt passwords = yes
    wins support = yes
    log level = 1 
    max log size = 1000
    read only = no
    browsable = no
    map archive = yes
    path = /var/tmp
    printable = yes
    min print space = 2000
    browsable = yes
    read only = yes
    path = /usr/local/samba/tmp


– 2nd point :

There is a very interesting option in samba configuration file is : include

We can do as in Apache configuration file :

    include = /usr/local/samba/lib/smb.conf.%m

Which is more interesting for multiple applications is that, if the configuration file specified does not exist, the option is ignored. It won’t raise an error if one of them not exist.


– 3rd point :

Command to add a samba user :

smbpasswd -a your_username

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s