Zum Inhalt springen

Einfache SMB Freigabe

Aus Computech CMS Wiki
sudo apt-get install samba samba-common-bin
sudo apt-get install vsftpd

Konfigruation kopieren

cp /etc/samba/smb.conf /etc/samba/smb.conf.bak

Konfiguration bearbeiten

sudo nano /etc/samba/smb.conf
[media]
comment = Media share
path = /media/HDD
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no

Benutzer hinzufügen

sudo service samba restart
sudo useradd ChooseUsernameHere -m -G users
sudo passwd TheChosenUsername //after this choose a password for the new user
sudo smbpasswd -a TheChosenUsername //after this enter passwd again