From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
Ok aquí postearé  una configuración de samba para
# Samba config file created using SWAT
# Samba config file created using SWAT
# from UNKNOWN (0.0.0.0)
# from UNKNOWN (0.0.0.0)
Line 4: Line 7:


[global]
[global]
idmap gid = 15000-20000
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated*
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated*
idmap gid = 15000-20000
store dos attributes = Yes
store dos attributes = Yes
time server = yes
time server = yes
passwd program = /etc/passwd %u
passwd program = /etc/passwd %u
dns proxy = yes
dns proxy = yes
netbios name = LABIGSA
netbios name = LABIGSA
cups options = raw
cups options = raw
idmap uid = 15000-20000
idmap uid = 15000-20000
logon script = logon.bat
logon script = logon.bat
local master = yes ; Especifica si Samba ¡ convertirse en el visualizador maestro local para la subred cada vez que arranque Samba
local master = yes ; Especifica si Samba intentará convertirse en el visualizador maestro local para la subred cada vez que arranque Samba  
workgroup = LAB_IGSA
workgroup = LAB_IGSA
os level = 65
os level = 65
auto services = Public1
security = user
security = user
add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u
add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u
max log size = 30
delete user script = /usr/sbin/userdel -r %u
delete user script = /usr/sbin/userdel -r %u
max log size = 30
log file = /var/log/samba/log.%m
log file = /var/log/samba/log.%m
add group script = /usr/sbin/groupadd %g  
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g  
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add user to group script = /usr/sbin/usermod -G %g %u  
domain master = Yes
domain master = Yes
username map = /etc/samba/smbusers
username map = /etc/samba/smbusers
wins proxy = Yes
wins proxy = Yes
logon home = \\%N\%U
logon home = \\%N\%U
wins support = true
wins support = true
server string = LABIGSA %v
server string = LABIGSA %v
unix password sync = Yes
unix password sync = Yes
logon path = \\%N\profiles\%U
logon path = \\%N\profiles\%U
add user script = /usr/sbin/useradd -m %u
add user script = /usr/sbin/useradd -m %u
domain logons = yes
domain logons = yes


[homes]
[homes]
comment = Home Directories
comment = Home Directories
         # path del recurso
         # path del recurso  
         path = /home/%U
         path = /home/%U  
;valid users = %S
;valid users = %S
;read only = No
;read only = No
         public = yes
         public = yes
writable = yes
writable = yes
browseable = No
browseable = No
         create mask = 0600
         create mask = 0600
         directory mask = 0700
         directory mask = 0700  


[netlogon]
[netlogon]
comment = Network Logon Service
comment = Network Logon Service
path = /var/lib/samba/netlogon
path = /var/lib/samba/netlogon
browseable = yes
browseable = yes
read only = yes
read only = yes
         locking = no
         locking = no  


[profiles]
[profiles]
comment = Roaming Profile Share
comment = Roaming Profile Share
path = /home/profiles/
path = /home/profiles/  
# Si ponemos browseable = no, al listar los recursos compartidos, no se verá
# Si ponemos browseable = no, al listar los recursos compartidos, no se verá
         browseable = no
         browseable = no
Line 71: Line 73:


[printers]
[printers]
comment = All Printers
comment = All Printers
path = /var/spool/samba
path = /var/spool/samba
printable = Yes
printable = Yes
browseable = No
browseable = No


[Public1]
[Public1]
writeable = yes
writeable = yes
path = /home/Public1
path = /home/Public1
write list = @smbuser
write list = @smbuser
sync always = Yes
sync always = Yes
create mask = 0777
create mask = 0777
comment = Archivos de laboratorio
comment = Archivos de laboratorio
directory mask = 0777
directory mask = 0777
 
[Public2]
[Public2]
create mask = 0777
create mask = 0777
comment = Archivos de laboratorio
comment = Archivos de laboratorio
directory mask = 0777
directory mask = 0777
writeable = yes
writeable = yes
path = /home/Public2
path = /home/Public2
write list = jsolis,test,@smbuser
write list = jsolis,test,@smbuser

Revision as of 15:03, 25 May 2011

Ok aquí postearé una configuración de samba para


  1. Samba config file created using SWAT
  2. from UNKNOWN (0.0.0.0)
  3. Date: 2011/05/19 14:48:54

[global] passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* idmap gid = 15000-20000 store dos attributes = Yes time server = yes passwd program = /etc/passwd %u dns proxy = yes netbios name = LABIGSA cups options = raw idmap uid = 15000-20000 logon script = logon.bat local master = yes ; Especifica si Samba intentará convertirse en el visualizador maestro local para la subred cada vez que arranque Samba workgroup = LAB_IGSA os level = 65 security = user add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u max log size = 30 delete user script = /usr/sbin/userdel -r %u log file = /var/log/samba/log.%m add group script = /usr/sbin/groupadd %g delete group script = /usr/sbin/groupdel %g add user to group script = /usr/sbin/usermod -G %g %u domain master = Yes username map = /etc/samba/smbusers wins proxy = Yes logon home = \\%N\%U wins support = true server string = LABIGSA %v unix password sync = Yes logon path = \\%N\profiles\%U add user script = /usr/sbin/useradd -m %u domain logons = yes

[homes] comment = Home Directories

       # path del recurso 
       path = /home/%U 

;valid users = %S ;read only = No

       public = yes

writable = yes browseable = No

       create mask = 0600
       directory mask = 0700 

[netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon browseable = yes read only = yes

       locking = no 

[profiles] comment = Roaming Profile Share path = /home/profiles/

  1. Si ponemos browseable = no, al listar los recursos compartidos, no se verá
       browseable = no
  1. Compartimos con Acceso de escritura ?
       writeable = yes
  1. Permitimos el acceso sin password con privilegios de invitado ?
       public = no
  1. Máscaras por defecto
       create mask = 0600
       directory mask = 0700


[printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No

[Public1] writeable = yes path = /home/Public1 write list = @smbuser sync always = Yes create mask = 0777 comment = Archivos de laboratorio directory mask = 0777

[Public2] create mask = 0777 comment = Archivos de laboratorio directory mask = 0777 writeable = yes path = /home/Public2 write list = jsolis,test,@smbuser