我无法使它正常工作。我可以以嘉宾身份登录,但是当我在服务器上输入用户的用户名和密码时,它不接受。甚至没有根。
smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
# log files split per-machine:
log level = 2
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
debug timestamp = yes
security = user
passdb backend = tdbsam
map to guest = bad user
[public]
comment = Public Stuff
path = /opt/shares/filerepo
public = yes
writable = yes
printable = no
write list = +samba
用户是filerepo
。
/ etc / passwd:
filerepo:x:1000:1001::/home/filerepo:/bin/bash
组信息:
$ groups filerepo
filerepo : filerepo samba
共享目录(ls -lZ /opt/shares/
)的权限:
drwxrwxr-x. filerepo samba unconfined_u:object_r:samba_share_t:s0 filerepo
桑巴服务:
$ systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled)
Active: active (running) since Fri 2015-04-24 13:21:52 PDT; 4s ago
Main PID: 19684 (smbd)
Status: "smbd: ready to serve connections..."
CGroup: /system.slice/smb.service
├─19684 /usr/sbin/smbd
└─19685 /usr/sbin/smbd
Apr 24 13:21:52 localhost.localdomain smbd[19683]: [2015/04/24 13:21:52.516358, 0] ../source3/smbd/server.c:1269(main)
Apr 24 13:21:52 localhost.localdomain smbd[19683]: standard input is not a socket, assuming -D option
Apr 24 13:21:52 localhost.localdomain smbd[19684]: [2015/04/24 13:21:52.522356, 0] ../lib/util/become_daemon.c:136(daemon_ready)
Apr 24 13:21:52 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
Apr 24 13:21:52 localhost.localdomain smbd[19684]: STATUS=daemon 'smbd' finished starting up and ready to serve connectionsFailed to fetch record!
Apr 24 13:21:52 localhost.localdomain smbd[19686]: STATUS=daemon 'smbd' finished starting up and ready to serve connectionsUnable to connect to CUPS server localhost:631 - Transport endpoint is not connected
Apr 24 13:21:52 localhost.localdomain smbd[19685]: STATUS=daemon 'smbd' finished starting up and ready to serve connectionsfailed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
防火墙:
$ systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since Fri 2015-04-24 13:00:08 PDT; 25min ago
在查看日志时,/var/log/samba/log.xxxxxxx
我看到了
check_ntlm_password: Authentication for user [filerepo] -> [filerepo] FAILED with error NT_STATUS_NO_SUCH_USER
尽管我添加了linux用户名/密码,但没有添加samba。
要使其正常工作,我必须做:smbpassword -a filerepo
并为samba用户设置密码。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句