Operating System - HP-UX
1753899 Members
7508 Online
108809 Solutions
New Discussion юеВ

Explain the samba configuration

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Explain the samba configuration

Hi

Before i have configure samba as stand alone.
I did not connected my samba with DC.

Ex:

I used to just mention following things only.

workgroup = tmcdomain
encrypt passwords = yes

[data]

comment = userdata
path = /data
valid users = vicky,dennis
browseable = yes
writeable = yes
create mask = 777

Then i creat the users using useradd and then
i add that users to smbpasswd file using smbpasswd command.

But in my environment they have connected my samba server with DC.

My configuration is:

# vi /etc/opt/samba/smb.conf


[global]

preferred master = auto ---->1
domain master = auto --->2
domain logons = no ---->3
netbios name = ad002223 ---->4

#workgroup = DOMAIN_NAME
workgroup = emdeng ----->5

# server string is the equivalent of the NT Description field
server string = ad002223 ---->6


# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/opt/samba/log.%m ----->7


# Put a capping on the size of the log files (in Kb).
max log size = 100000 ----->8


# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = domain -----> 9



# Use password server option only with security = server or domain
password server = emdlagdc67.emdna.emdiesels.com emdlondc02.emdna.emdiesels.com ---->10


# Do not enable this option unless you have read those documents
encrypt passwords = yes ----> 11


# See speed.txt and the manual pages for details
socket options = TCP_NODELAY ---->12


# set local master to no if you don't want Samba to become a master
local master = yes --->13


# WINS Server - Tells the NMBD components of Samba to be a WINS Client
wins server = 143.242.67.59 --->14

# WINS Proxy - Tells Samba to answer name resolution queries on
wins proxy = yes ---->15


dns proxy = yes --->16

read only = no ---->17
preserve case = yes ---->18
short preserve case = no ----->19
dos filetime resolution = yes----->20
syslog = 1 ----->21


#guest = smbnull
guest ok = no --->22
browsable = yes ---->23
follow symlinks = yes ---> 24

admin users = wstron01 brochu01 cscadmin jmillsap millsap dallen ---->25


#============================ Share Definitions ==============================

# This one is useful for people to share files


[EMD]
path = /emd
comment = EMD Data
browseable = yes
create mask = 0644 ----> 26
directory mask = 0754 -----------> 27
directory security mask = 0755 ----> 28


[gmpdl18] ---------->27
path = /appl/gmpdl18
comment = Engineering Applications
browseable = yes
create mask = 0644
directory mask = 0754
directory security mask = 0755
----------------------------------------

My questions:

1) Pls answer purpose of all the code mention with number like "------1, --------2 ...."


2) in the below line

password server = emdlagdc67.emdna.emd.com emdlondc02.emdna.emd.com ---->10

is both are DCs?

3)in the below line

workgroup = emdeng ----->5

is it the domain name?

4) local master = yes --->13

what is the purpose of this? what happen if we set to no?

5) wins server = 143.242.67.59 --->14

what is the purpose of this? what happen if we set to no?

6) wins proxy = yes ---->15

what is the purpose of this? what happen if we set to no?

7)dns proxy = yes --->16

what is the purpose of this? what happen if we set to no?

8) in share section, there is no entry for valid users.

Ex:

[EMD]
path = /emd
comment = EMD Data
browseable = yes
create mask = 0644 ----> 26
directory mask = 0754 -----------> 27
directory security mask = 0755 ----> 28


And ther is no entry in /etc/opt/samba/smbpasswd.


Then where the acl is created for accessing each samba share. pls explain me.


3 REPLIES 3
Taifur
Respected Contributor
Solution

Re: Explain the samba configuration


HI Senthil

You can check below link as follows,

http://docs.hp.com/en/B8725-90118/ch02.html

http://docs.hp.com/en/30216-90328/ch06s07.html

Rgds//
Taifur
Ganesan R
Honored Contributor

Re: Explain the samba configuration

Hi Senthil,

You need to go through this links..

http://www.docs.hp.com/en/B8725-90021/index.html

http://docs.hp.com/en/B8725-90021/ch01s05.html
Best wishes,

Ganesh.
senthil_kumar_1
Super Advisor

Re: Explain the samba configuration

Hi

I am in urgency.

Pls answer fast.