Я не могу заставить это работать правильно. Я могу войти как гость, но когда я ввожу имя пользователя и пароль для пользователя на сервере, он не принимает его. Даже не root.
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
.
/ И т.д. / пароль:
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