Portál AbcLinuxu, 19. července 2025 11:36
guest ok = yes
a nastavit, na jakého uživatele se bude přihlášení pod hostem mapovat guest account = …
.
#
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
workgroup = MSHOME
server string = %h server (Samba %v)
wins support = no
dns proxy = no
#### Networking ####
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
########## Domains ###########
########## Printing ##########
############ Misc ############
socket options = TCP_NODELAY
#======================= Share Definitions =======================
wins support = no
[homes]
comment = Home Directories
browseable = no
writable = no
create mask = 0700
directory mask = 0700
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
writable = no
share modes = no
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[cdrom]
path = /media/cdrom0
available = yes
browseable = yes
public = yes
writable = no
[win]
path = /media/theater/windows_programs
available = yes
browseable = yes
public = yes
writable = no
[vcpp]
path = /home/pierre/Desktop/Visual C++ 6.0 Enterprise
available = yes
browseable = yes
public = yes
writable = no
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.