Good Morning, it's Thu 21 Nov 2024
man
smb.conf
will do that for you.
[global]
netbios name = SERVER # the name of your server
workgroup = WORKGROUP # your workgroup
server string = Samba Server # the comment field in Computers near me
hosts allow = 127. 192.168.0. # Loopback and local network
printcap name = cups # If you need a print server
load printers = yes # If you need a print server
printing = cups # If you need a print server
log file = /var/log/samba/%U.log
max log size = 0
security = user # Validations are dome against the Samba server
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
remote announce = 192.168.0.255
local master = yes
os level = 99
domain master = yes
preferred master = yes
domain logons = yes
dns proxy = no
[Test]
comment = Test Share
path = /home/shared
public = yes
only guest = yes
writable = yes
printable = no
service smb start
) you should be able to
connect to \\SERVER\Test\
and write files to the folder (If you're
asked for a username and password to connect just leave them both blank and hit
enter). The Samba server is doing the authentication and the share's been set
up to allow anyone access. Now you can start thinking about you're required authentication.
If you want to use a different machine as PDC for verifying logons you need to
replace security = user
with security = server
and
then add one of password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
password server = * # to auto-locate the domain controller/s
password server = <NT-Server-Name>
useradd -s /bin/false -d /dev/null machine1\$
passwd -l machine1\$
smbpasswd -a -m machine1
useradd -s /bin/false -d /dev/null user1
smbpasswd -a user1
chkconfig --level 3 smb on