Thursday, October 28, 2010

Configure Samba domain controler

Operating System: Centos 5.4

cd /etc/yum.repos.d/
wget http://ftp.sernet.de/pub/samba/3.4/centos/5/sernet-samba.repo
yum install samba -y


IP Address: 192.168.1.200
Username: root
Password: Password
Webmin Access: http://192.168.1.2:10000

[global]
# Setup correct workgroup
netbios name = mysever
workgroup = myserver.com
server string = Samba %v on %L
# Enable WINS server
wins support = yes
logon script = login.bat
# Authentication using linux account
security = user
# Set existing sambaAdmin account to domain root
admin users = sambaadmin
;Enable Domain logon
domain logons = yes
;Set the logon path
logon path = \\%N\profiles\%U
;Enable auto creation of user and machine account
add user script = /usr/sbin/adduser --quiet --disabled-password -gecos "" %u
add machine script = /usr/sbin/useradd -g machines -d /var/lib/nobody -c "machine nickname" -s /bin/false %u$
;For Network Settings
hosts allow = 192.168.1.
bind interfaces only = yes
name resolve order = lmhosts bcast wins
dns proxy = yes
Protocol = NT1
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
time server = yes
os level = 64
# Enable network logon service
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
writable = no
share modes = no
# Allow Roaming profile
[profiles]
comment = Users profiles
path = /home/samba/profiles
guest ok = no
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700
; [homes]
; comment = Home Directories
; browseable = yes
; writable = yes
;------------------------------------------------------------------
;------------------------------------------------------------------
#End Of Samba Configurations
Type this command
Useradd sambaadmin
Passwd sambaadmin
echo "sambaadmin = administrator" > /etc/samba/smbpasswd
How to add new user in samba server:
1. useradd <username>
2. passwd –l <username>
3. smbpasswd –a username
4. login webmin threw firefox or internet explorer.
5. address http://192.168.1.2:10000
6. username root password:Password
7. select server -> Samba Windows File Sharing -> select the share and add the new user name

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.