Ok aquí postearé una configuración de samba para
- Samba config file created using SWAT
- from UNKNOWN (0.0.0.0)
- 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/
- Si ponemos browseable = no, al listar los recursos compartidos, no se verá
browseable = no
- Compartimos con Acceso de escritura ?
writeable = yes
- Permitimos el acceso sin password con privilegios de invitado ?
public = no
- 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