サーラリマンは働き過ぎ、社畜化に注意しよう!!

samba install

Linux Mint
スポンサーリンク

sudo apt install samba samba-common samba-client python-dnspython cifs-utils

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig

groupadd sambashare

useradd ckenko25

usermod -a -G sambashare ckenko25

mkdir -p /home/ckenko25/sambashare

chmod 0770 /home/ckenko25/sambashare

chown ckenko25:sambashare /home/ckenko25/sambashare

rm /etc/samba/smb.conf

vi /etc/samba/smb.conf

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = raspbx
security = user
map to guest = bad user
dns proxy = no
ntlm auth = true

[sambashare]
comment=Directory for collaboration of the sambashare team
browsable=yes
path=/home/ckenko25/sambashare
public=no
valid users=@sambashare
write list=@sambashare
writeable=yes
create mask=0770
Force create mode=0770
force group=sambashare

smbpasswd -a ckenko25

sudo systemctl restart smbd

Linux Mint
スポンサーリンク
シェアする
ふじやんをフォローする
なんでもDIY

コメント