Eines de l'usuari

Eines del lloc


informatica:implementacioubuntu:smbconfconfiguracio

EDICIÓ DE /etc/samba/smb.conf

  • Edició de l'arxiu /etc/samba/smb.conf, on s'afegirà el següent codi
  • Ha estat necessari implementar algunes instruccions més, per tal de fixar unes majors restriccions a l'accés de cada recurs.
netbios aliases = argo1
[Programari]
comment = Programari
write list = @Administradors
path = /srv/exports/S
read only = yes
writeable = No
browseable = Yes
guest ok = Yes
printable = No
force group = Administradors
force user = root
create mask = 0774
force create mode = 774
directory mask = 0774
[s]
comment = Programari
write list = @Administradors
path = /srv/exports/S
read only = Yes
writeable = No
browseable = no
guest ok = Yes
printable = No
force group = Administradors
force user = root
create mask = 0774
force create mode = 774
directory mask = 0774
[aplixarxa]
comment = aplixarxa
write list = @Administradors
path = /srv/exports/S/Aplicacions_en_xarxa
read only = Yes
writeable = No
browseable = Yes
guest ok = Yes
printable = No
force group = Administradors
force user = root
create mask = 0774
force create mode = 774
directory mask = 0774
[treball]
comment = Treball
path = /srv/exports/T
read only = no
force group = nogroup
force user = nobody
writeable = yes
browseable = yes
guest ok = yes
printable = no
write ok = true
force create mode = 777
force directory mode = 777
[t]
comment = Treball
path = /srv/exports/T
read only = no
force group = nogroup
force user = nobody
writeable = yes
browseable = no
guest ok = yes
printable = no
write ok = true
force create mode = 777
force directory mode = 777
[professorat]
comment = Professorat
valid users = @Professorat, @secretaria
write list = @Professorat, @secretaria
path = /srv/exports/P
read only = yes
writeable = Yes
browseable = Yes
guest ok = No = no
printable = no
write ok = true
force group = Professorat
force user = prof
create mask = 0770
force create mode = 770
directory mask = 0770
[p]
comment = Professorat
valid users = @Professorat, @secretaria
write list = @Professorat, @secretaria
path = /srv/exports/P
read only = yes
writeable = Yes
browseable = no
guest ok = No
printable = no
write ok = true
force group = Professorat
force user = prof
create mask = 0770
force create mode = 770
directory mask = 0770
[imatges.cd]
comment = imatges.cd
write list = @Administradors
path = /srv/exports/imatges.cd
read only = Yes
browseable = Yes
guest ok = Yes
printable = No
force group = Administradors
force user = root
create mask = 0774
force create mode = 774
directory mask = 0774
[direct]
comment = secretaria
valid users = @secretaria
write list = @secretaria
path = /srv/exports/direct
read only = No
writeable = Yes
browseable = Yes
guest ok = No
printable = no
write ok = true
force group = secretaria
force user = direct
create mask = 0770
force create mode = 770
directory mask = 0770
[MIC]
comment = secretaria
valid users = @secretaria
write list = @secretaria
path = /srv/exports/MIC
read only = No
writeable = Yes
browseable = Yes
guest ok = No
printable = no
write ok = true
force group = secretaria
force user = direct
create mask = 0770
force create mode = 770
directory mask = 0770
[super]
comment = Administradors
valid users = @Administradors
write list = @Administradors
path = /srv/exports/super
read only = No
writeable = Yes
browseable = Yes
guest ok = No
write ok = true
force group = Administradors
force user = super
create mask = 0770
force create mode = 770
directory mask = 0770



Inici de l'Espai | Menú de Documents | Migració WINDOWS a LINUX| Fase d'instal·lació

informatica/implementacioubuntu/smbconfconfiguracio.txt · Darrera modificació: 2019/11/24 23:34 (edició externa)