Zaszła potrzeba w firmie na zmianę dostępności danych. Do tej pory każdy miał udział na serwerze, który był dostępny do odczytu dla pozostałych użytkowników.
Tu fragment smb.conf odpowiedzialny za ten dostęp.
Kod: Zaznacz cały
[homes]
comment = Home Directories
browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = no
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0775
force creation mode = 0775
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0775
force directory mode = 0775
force group = kasowanienagran
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
valid users = %S
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
; share modes = no
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
GNU nano 2.0.7 File: smb.conf
; directory mask = 0700
Nic prostszego jak zmienić ,,create mask'' i ,,directory mask'' na:
Kod: Zaznacz cały
create mask = 0750
force creation mode = 0750
directory mask = 0750
force directory mode = 0750
I, czy przy kasowaniu użytkowników nie skasują się foldery domowe?
Zdaję sobie sprawę, że można to rozwiązać zakładając nowe katalogi, przydzielić udziały, ale mam sporo użytkowników i sporo danych w folderach wolałbym tego nie robić.
I jeszcze taka jedna kwestia. Czy jest możliwość, nie wiem, może jakiś skrypt, chodzi generalnie o to, że ja jako administrator resetuję hasło i nowe hasło do samby a później też do bazy danych jest ustalane przy pierwszym logowaniu. Do tej pory każdy podchodził do mnie ale zaczyna być to uciążliwe bo coraz więcej ludzi się robi.