GNU/Linux >> Linux の 問題 >  >> Ubuntu

他のユーザーが強制ユーザー=私なしでSamba共有にアクセスできないのはなぜですか?

Samba関連の問題があります。

ホームサーバーにSambaサーバーを正常にセットアップしました。残念ながら、forceユーザーが私のアカウント(サーバー)に設定されていない場合、私のアカウントだけが共有にアクセスできます。 「forceuser=server」を設定していないのに、他のユーザーが自分の共有「Vector_Public」にアクセスできない理由がわかりません。これを引き起こす可能性のあるものについて何かアイデアはありますか?私はSambaの初心者なので、設定のいずれかを誤解した場合はお願いします:

[Vector_Public]
   comment = Vector public share
   read only = no
   path = /media/Storage/Public
   guest ok = no
   force user = server
   force group = storage_public
   create mask = 0770
   directory mask = 0770
   security mask = 0770
   force create mode = 0770
   force directory mode = 0770
   valid users = server storage_share
   browseable = yes
   writeable = yes
   vfs objects = recycle
   recycle:repository = .deleted/%U
   recycle:keeptree = yes
   recycle:touch = yes
   recycle:versions = yes
   recycle:maxsize = 0

[Vector_Private]
   comment = Vector private share (Niklas)
   read only = no
   path = /media/Storage/Private
   guest ok = no
   force user = server
   force group = server
   create mask = 0770
   directory mask = 0770
   security mask = 0770
   force create mode = 0770
   force directory mode = 0770
   valid users = server
   browseable = yes
   writeable = yes
   vfs objects = recycle
   recycle:repository = .deleted/%U
   recycle:keeptree = yes
   recycle:touch = yes
   recycle:versions = yes
   recycle:maxsize = 0

2つのディレクトリの権限は次のとおりです。

drwx------ 6 server server 4096 2011-10-05 20:40 Private
drwxrwx--- 5 server storage_public 4096 2011-10-05 20:28 Public

この問題が発生しているのはパブリックディレクトリです。

どうやら、共有Vector_Publicの下の設定はどれもこの動作を変更しないので、他の設定が原因である必要があります。これらは私の構成の他のすべての設定です:

   workgroup = ROSENQVIST
   server string = %h server (Samba, Ubuntu)
#   wins support = no
;   wins server = w.x.y.z
   dns proxy = no
;   name resolve order = lmhosts host wins bcast
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = yes
   log file = /var/log/samba/log.%m
   max log size = 1000
#   syslog only = no
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   security = user
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true
   passdb backend = tdbsam
   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
;   domain logons = yes
;   logon path = \\%N\profiles\%U
#   logon path = \\%N\%U\profile
;   logon drive = H:
#   logon home = \\%N\%U
;   logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add group script = /usr/sbin/addgroup --force-badname %g
;   printing = bsd
;   printcap name = /etc/printcap
;   printing = cups
;   printcap name = cups
;   include = /home/samba/etc/smb.conf.%m
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash
;   winbind enum groups = yes
;   winbind enum users = yes
;   usershare max shares = 100
   usershare allow guests = no

私が何をすべきかアイデアはありますか? (新しいコメントも確認してください)

関連:VMWareプレーヤーとUbuntu 15.04:ネットドライバーがコンパイルされなくなりました。修正方法は?

さらに、ネットワークでWINSサーバーがサポートされているかどうかを確認するにはどうすればよいですか?

承認された回答:

問題は、権限のフローの問題が原因でした。親ディレクトリの(共有されたディレクトリへの)アクセス許可を変更して、他のユーザーが読み取れるようにすると、すべてが機能しました。


Ubuntu
  1. 通常のユーザーがファイルを「chown」できないのはなぜですか?

  2. Linux –再起動せずにユーザーをグループに追加することはできませんか?

  3. Linux –カーネルがInitを実行できないのはなぜですか?

  1. Ubuntuがインストール時にユーザーにパスワードの作成を強制するのはなぜですか?

  2. Sambaが「samba-tool」を使用して新しいユーザーを追加しないのはなぜですか?

  3. Virtualboxに特定のユーザーのみにアクセスを許可しますか?

  1. Samba共有でグループ所有権を強制する方法は?

  2. Samba 共有上のファイルのユーザー/グループ所有権を強制する方法

  3. 「bin」ユーザーにログインシェルが必要なのはなぜですか?