大网数据广告活动
服务器运维问答

samba4 unix user and group id mappings

· 52CE 我爱测

I've got a samba4 on an ubuntu server (samba 4.1.17). The linux system users are available from samba dc via sssd (ldap module) and are working ok. I can login via ssh, create and access directories based on my user id and group …

问题原文

原帖链接 · Jure1873 · CC BY-SA 3.0

I've got a samba4 on an ubuntu server (samba 4.1.17). The linux system users are available from samba dc via sssd (ldap module) and are working ok. I can login via ssh, create and access directories based on my user id and group id.

The problem is that when I access directories via samba the linux group permissions are not working. I can access files readable by everyone, but not files from my group.

I tried creating a new file and when I check it's permissions from linux the username is the right one, but the group is some random number (3000007). So apparently samba can map my samba user to the "local" linux one, but has trouble mapping my primary and other groups.

Relevant parts from smb.conf:

[global]
...
server role = active directory domain controller
winbind nss info = rfc2307
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
winbind refresh tickets = Yes
map untrusted to domain = yes
...

[shared]
   path = /home/shared
   browseable = yes
   writable = yes
   follow symlinks = yes
   create mode = 0660
   force directory mode = 770
   force create mode = 770

Any ideas?

已采纳解答

原帖链接 · Jure1873 · CC BY-SA 3.0

I'm writing here if anyone else has similar problems. I tried clearing up the cache but it didn't help. I ended up upgrading samba to 4.3 and my problems are gone. Apparently the user->uid mapping is improved or something else has been fixed.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。