ブログ

割とコンピュータよりの情報をお届けします。

Ubuntu 20.04でのSambaの設定方法を忘れていた

久しくファイル共有サービスのSambaを使っていなかったため、使い方を忘れてしまった。

今一度再確認した。
もう5年近く使用していない。

sudo apt install samba
sudo smbpasswd -a takeme
sudo systemctl restart smbd.service

/etc/samba/smb.configの内容を編集して
sudo systemctl restart smbd.service
を実行する。

[homes]
   comment = Home Directories
   browseable = no
;   browseable = yes

# 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 = yes
   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 = 0700
   create mask = 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 = 0700
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

などなど

2023/06/22 コンピュータ   TakeMe
< 前の記事     一覧へ     後の記事 >

コメント送信フォーム


※ Eメールは公開されません
Loading...
 画像の文字を入力してください