小编Bis*_*Das的帖子

Samba 无法添加用户条目,我该如何解决?

我正在配置 Samba 并尝试添加域用户,但它返回以下内容:

failed to add entry for the user student
Run Code Online (Sandbox Code Playgroud)

这些是我到目前为止所做的命令:

frigate@frigate-desktop:~$ su 
Password: 
root@frigate-desktop:/home/frigate# nano /etc/samba/smb.conf 
root@frigate-desktop:/home/frigate# groupadd -g 201 machines
root@frigate-desktop:/home/frigate# mkdir -m 0775 /home/ntlogon
root@frigate-desktop:/home/frigate# mkdir /home/samba /home/samba/profiles
root@frigate-desktop:/home/frigate# chmod 1755 /home/samba/profiles/
root@frigate-desktop:/home/frigate# useradd -m test
root@frigate-desktop:/home/frigate# passwd test
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
root@frigate-desktop:/home/frigate# smbpasswd -a test
New SMB password:
Retype new SMB password:
Added user test.
root@frigate-desktop:/home/frigate# smbpasswd -a root
New SMB password:
Retype new SMB password: …
Run Code Online (Sandbox Code Playgroud)

samba

22
推荐指数
2
解决办法
10万
查看次数

无法访问 samba 共享,但在网络中可见

在 Windows 中它要求输入用户名和密码,而在 Ubuntu 中它要求输入用户名、域和密码。

我输入了 root 和本地用户的密码,它说无法访问。

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
    workgroup = test
    netbios name = bishwa

# server string is the equivalent of the NT Description field
    server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
   wins support = yes …
Run Code Online (Sandbox Code Playgroud)

server samba networking file-sharing

5
推荐指数
1
解决办法
10万
查看次数

标签 统计

samba ×2

file-sharing ×1

networking ×1

server ×1