This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:samba [2020/02/20 18:24] – [Permanent Mount] tmade | linux:samba [2020/09/25 12:03] (current) – [Configure Samba] tmade | ||
---|---|---|---|
Line 21: | Line 21: | ||
==== Autostart Service ==== | ==== Autostart Service ==== | ||
chkconfig smb on && chkconfig nmb on #Add service to autostart in defined runlevel | chkconfig smb on && chkconfig nmb on #Add service to autostart in defined runlevel | ||
+ | systemctl is-enabled smb && systemctl is-enabled nmb #Add service to autostart on systemd systems | ||
or | or | ||
insserv nmb #Add service to autostart in defined runlevel | insserv nmb #Add service to autostart in defined runlevel | ||
Line 56: | Line 57: | ||
directory mask = 0755 | directory mask = 0755 | ||
read only = Yes | read only = Yes | ||
- | valid users = user1 user2 | + | valid users = user1 user2 root |
write list = root #Just root has write rights | write list = root #Just root has write rights | ||
Line 84: | Line 85: | ||
smbpasswd -d login # | smbpasswd -d login # | ||
smbpasswd -e login # | smbpasswd -e login # | ||
+ | pdbedit -L #show samba users | ||
==== Access Commands ==== | ==== Access Commands ==== | ||
Line 102: | Line 104: | ||
mount -t cifs -o lfs // | mount -t cifs -o lfs // | ||
mount -t cifs -o vers=3.0 // | mount -t cifs -o vers=3.0 // | ||
- | mount -t cifs // | + | mount -t cifs // |
| | ||
Linux to Linux: | Linux to Linux: |