You are not logged in.
Pages: 1
Hey oh!
I'm having issues connecting to my samba share... I've combed the internet for solutions, and nothing so far.
I'm looking for a public share, with no password required.
[krel@namcle ~]$ cat /etc/samba/smb.conf
[global]
server string = NAMCLE
workgroup = WORKGROUP
netbios name = NAMCLE
guest ok = yes
guest account = nobody
guest only = yes
map to guest = Bad User
max protocol = SMB2
deadtime = 30
os level = 20
mangled names = no
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
use sendfile = yes
client max protocol = NT1
security = user
[Anonymous]
writable = yes
path = /home/krel/media/share/system
public = yes
guest ok = yes
guest only = yes
guest account = nobody
browsable = yes
[krel@namcle ~]$ testparm
Load smb config files from /etc/samba/smb.conf
Global parameter guest account found in service section!
Loaded services file OK.
Server role: ROLE_STANDALONE
[krel@namcle ~]$ testparm -s
Load smb config files from /etc/samba/smb.conf
Global parameter guest account found in service section!
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
client max protocol = NT1
deadtime = 30
load printers = No
map to guest = Bad User
name resolve order = lmhosts wins bcast host
printcap name = /dev/null
security = USER
server max protocol = SMB2
server string = NAMCLE
idmap config * : backend = tdb
guest ok = Yes
guest only = Yes
mangled names = no
use sendfile = Yes
[Anonymous]
path = /home/krel/media/share/system
[krel@namcle ~]$ cat /var/log/samba/log.smbd
[2019/12/15 16:20:13.868078, 0] ../../source3/smbd/server.c:1788(main)
smbd version 4.10.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2019/12/15 16:20:13.873628, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:20:13.922494, 0] ../../lib/util/become_daemon.c:135(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2019/12/15 16:21:19.384591, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:21:22.621664, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:21:22.662692, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:22.662799, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=8.
[2019/12/15 16:21:22.663103, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:22.663178, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=9.
[2019/12/15 16:21:22.663370, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:22.663420, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=10.
[2019/12/15 16:21:30.534899, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:21:30.537404, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:30.537496, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=8.
[2019/12/15 16:21:30.537728, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:30.537774, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=9.
[2019/12/15 16:21:30.537976, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:30.538011, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=10.
[2019/12/15 16:21:38.416289, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:21:47.574730, 0] ../../lib/param/loadparm.c:1859(lpcfg_do_service_parameter)
Global parameter guest account found in service section!
[2019/12/15 16:21:47.577812, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:47.577924, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=8.
[2019/12/15 16:21:47.578272, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:47.578325, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=9.
[2019/12/15 16:21:47.578540, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
[2019/12/15 16:21:47.578592, 0] ../../source3/smbd/process.c:1623(switch_message)
Error: Could not change to user. Removing deferred open, mid=10.
[krel@namcle ~]$ ls -al media/share/system/
total 8
drwxr-xr-x 2 krel nobody 4096 Aug 27 2018 .
drwxr-xr-x 3 krel sambashare 4096 May 12 2018
Any insight would be appreciated!
Thanks,
-KV
Offline
Firewall issues?
Edit: does the nobody user exist?
Last edited by firecat53 (2019-12-15 22:33:22)
Offline
Yes it does:
[krel@namcle ~]$ cat /etc/passwd | grep nobody
nobody:x:65534:65534:Nobody:/:/usr/bin/nologin
as well as a group:
[krel@namcle ~]$ cat /etc/group | grep nobody
nobody:x:65534:
Offline
I'm having issues connecting to my samba share.
Please be more specific here. One pot. issue at hand is that the client max protocol is set to NT1, ie. the wannacry protocol that's deprecated everywhere and I'm not sure whether recent windows versions didn't remove it altogether (but you will have to explicitly enable it for sure, maybe install some additional software)
Offline
I've removed the NT1 line from the config with no luck.
More specifically, I need help addressing these errors from /var/log/samba/log.smbd
[2019/12/15 16:21:47.577924, 0] ../../source3/smbd/process.c:1623(switch_message) Error: Could not change to user. Removing deferred open, mid=8. [2019/12/15 16:21:47.578272, 0] ../../source3/smbd/uid.c:448(change_to_user_internal) change_to_user_internal: chdir_current_service() failed!
Any thoughts? I didn't have any luck searching the web for answers. I'm not sure if those are generic errors or the actual source of my problem.
Thanks,
-KV
Offline
We still don't know about:
I'm having issues connecting to my samba share.
From what kind of client and what is the actual issue (symptoms, error message, …)
My next best blind guess would be https://wiki.archlinux.org/index.php/Sa … ermissions
Offline
Sorry, I'm still struggling with this. Connection to samba doesn't work with Windows, other Linux boxes, iPhone apps I've used in the past for accessing shares.
Basically, I can see the share listed... But when I access it I get the errors like:
Unable to access location
Failed to mount Windows share: Permission denied
I'm not sure if it's a permission thing... I'm pretty sure they are all in check
sudo chown -R 775 /home/krel/media/share/
Is there an easy comandline mount command I could use to mount the share to see some output?
Thanks,
-KV
Offline
Try smbclient https://www.tldp.org/HOWTO/SMB-HOWTO-8.html and report the compelte I/O (what you wrote and what the system replied. You may obfuscate directory names, but in a consistent way and please highlight non-ASCII paths)
Offline
"share" is what I'm trying to access.
[krel@namcle ~]$ /usr/bin/smbclient -L namcle
WARNING: The "syslog" option is deprecated
Unable to initialize messaging context
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\krel's password:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
share Disk
IPC$ IPC IPC Service (namcle server (Samba, Ubuntu))
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP OPENWRT
I'm having a few issues... Like even though I add guest account = nobody it still seems to prompt for a password when I attempt to login. I'm not sure if my user accounts are all bunged up, or if my permissions are all effed up
[krel@namcle share]$ ls -l
total 12
drwxr-xr-x 8 krel krel 4096 Nov 28 17:29 share
[krel@namcle share]$ getent passwd
root:x:0:0::/root:/bin/bash
nobody:x:65534:65534:Nobody:/:/usr/bin/nologin
dbus:x:81:81:System Message Bus:/:/usr/bin/nologin
bin:x:1:1::/:/usr/bin/nologin
daemon:x:2:2::/:/usr/bin/nologin
mail:x:8:12::/var/spool/mail:/usr/bin/nologin
ftp:x:14:11::/srv/ftp:/usr/bin/nologin
http:x:33:33::/srv/http:/usr/bin/nologin
systemd-journal-remote:x:982:982:systemd Journal Remote:/:/usr/bin/nologin
systemd-network:x:981:981:systemd Network Management:/:/usr/bin/nologin
systemd-resolve:x:980:980:systemd Resolver:/:/usr/bin/nologin
systemd-timesync:x:979:979:systemd Time Synchronization:/:/usr/bin/nologin
systemd-coredump:x:978:978:systemd Core Dumper:/:/usr/bin/nologin
uuidd:x:68:68::/:/usr/bin/nologin
dnsmasq:x:977:977:dnsmasq daemon:/:/usr/bin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/usr/bin/nologin
gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/sbin/nologin
avahi:x:976:976:Avahi mDNS/DNS-SD daemon:/:/usr/bin/nologin
colord:x:975:975:Color management daemon:/var/lib/colord:/usr/bin/nologin
geoclue:x:974:974:Geoinformation service:/var/lib/geoclue:/usr/bin/nologin
git:x:973:973:git daemon user:/:/usr/bin/git-shell
nm-openconnect:x:972:972:NetworkManager OpenConnect:/:/usr/bin/nologin
nm-openvpn:x:971:971:NetworkManager OpenVPN:/:/usr/bin/nologin
ntp:x:87:87:Network Time Protocol:/var/lib/ntp:/bin/false
polkitd:x:102:102:PolicyKit daemon:/:/usr/bin/nologin
rtkit:x:133:133:RealtimeKit:/proc:/usr/bin/nologin
usbmux:x:140:140:usbmux user:/:/usr/bin/nologin
krel:x:1000:1001:krel :/home/krel:/bin/bash
nvidia-persistenced:x:143:143:NVIDIA Persistence Daemon:/:/usr/bin/nologin
flatpak:x:970:970:Flatpak system helper:/:/usr/bin/nologin
tss:x:969:969:tss user for tpm2:/:/usr/bin/nologin
[krel@namcle share]$ getent group
root:x:0:root
adm:x:999:daemon
wheel:x:998:krel
kmem:x:997:
tty:x:5:
utmp:x:996:
audio:x:995:
disk:x:994:
input:x:993:
kvm:x:992:
lp:x:991:krel
optical:x:990:
render:x:989:
storage:x:988:
uucp:x:987:
video:x:986:
users:x:985:
sys:x:3:bin,krel
mem:x:8:
ftp:x:11:
mail:x:12:
log:x:19:
smmsp:x:25:
proc:x:26:polkitd
games:x:50:
lock:x:54:
network:x:90:krel
floppy:x:94:
scanner:x:96:
power:x:98:krel
systemd-journal:x:984:
rfkill:x:983:
nobody:x:65534:
dbus:x:81:
bin:x:1:daemon
daemon:x:2:bin
http:x:33:
systemd-journal-remote:x:982:
systemd-network:x:981:
systemd-resolve:x:980:
systemd-timesync:x:979:
systemd-coredump:x:978:
uuidd:x:68:
dnsmasq:x:977:
rpc:x:32:
gdm:x:120:
ntp:x:87:
avahi:x:976:
colord:x:975:
geoclue:x:974:
git:x:973:
nm-openconnect:x:972:
nm-openvpn:x:971:
polkitd:x:102:
rtkit:x:133:
usbmux:x:140:
autologin:x:1000:krel
krel:x:1001:
nvidia-persistenced:x:143:
flatpak:x:970:
tss:x:969:
sambashare:x:968:krel
Offline
Pages: 1