0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

samba でパーミッションエラー

Posted at

Ubuntu の ファイルマネージャ Nautilus で、ネットワーク上のファイルを閲覧するのに smb 共有を使っている。

Nautilus では以下のようにして共有ができていた。
image.png

共有ポイントの設定を変更したら以下のエラーが出た。

image.png

環境

  • samba サーバ 側

    • Ubuntu 22.04 LTS
    • samba Version 4.15.13-Ubuntu
  • ゲスト側

    • Ubuntu 22.04 LTS
    • Nautilus 42.6

smb.conf

[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes

[MainImage]
path=/samba/MainImage
writable = yes
guest ok = yes
guest only = yes
force create mode = 777
force directory mode = 777

症状

とすると、 /samba/MainImage はゲストで共有できるのだが、
以下のようにリンクすると共有できない。

lrwxrwxrwx  1 nanbuwks nanbuwks   69 10月 12 21:23 MainImage -> /home/nanbuwks/Downloads/docker-mirakurun-epgstation/media/tv_current

解決

以下はパーミッションが 775 や 755 。

  • /home/nanbuwks/Downloads/docker-mirakurun-epgstation/media/tv_current
  • /home/nanbuwks/Downloads/docker-mirakurun-epgstation/media/
  • /home/nanbuwks/Downloads/docker-mirakurun-epgstation/
  • /home/nanbuwks/Downloads/
  • /home/nanbuwks

これらを全て 777 にすると解決。うーむ。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?