Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: remus on April 30, 2018, 12:33:25 AM
-
Hi all,
I've been using microcore + samba as a stable file server for many years now.
Microcore : 3.8.4
Samba : 3.4.5
Why the old versions ? Well the software versions was the current versions when I set this up. Its worked fine all these years and if it ain't broke I don't fix it.
But I have a new problem.
The new manager has a macbook pro. Its running the latest version of mac OS. I think OS version is 10.13 High Sierra.
The macbook is able to connect to all public shares on the file server.
But it fails to connect or even get to the username/password authentication prompt.
Here are some samples from the samba logs for that particular macbook pro
[2018/04/26 17:14:26, 1] smbd/service.c:1047(make_connection_snum)
10.1.1.17 (10.1.1.17) connect to service installfiles initially as user tc (uid=1001, gid=50) (pid 26002)
[2018/04/26 17:14:26, 1] smbd/service.c:1047(make_connection_snum)
10.1.1.17 (10.1.1.17) connect to service manager.scans initially as user tc (uid=1001, gid=50) (pid 26002)
[2018/04/26 17:14:46, 1] smbd/service.c:676(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2018/04/26 17:14:46, 1] smbd/service.c:676(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2018/04/26 17:16:26, 1] smbd/service.c:676(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2018/04/26 17:16:26, 1] smbd/service.c:676(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2018/04/26 17:45:01, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2018/04/26 17:45:01, 0] lib/util_sock.c:1491(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
read_fd_with_timeout: client 0.0.0.0 read error = No route to host.
[2018/04/26 17:45:01, 0] lib/util_sock.c:738(write_data)
[2018/04/26 17:45:01, 0] lib/util_sock.c:1491(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Broken pipe
[2018/04/26 17:45:01, 0] smbd/process.c:62(srv_send_smb)
Error writing 75 bytes to client. -1. (Transport endpoint is not connected)
[2018/04/26 17:45:01, 1] smbd/service.c:1226(close_cnum)
10.1.1.17 (10.1.1.17) closed connection to service manager.scans
[2018/04/26 17:45:01, 1] smbd/service.c:1226(close_cnum)
10.1.1.17 (10.1.1.17) closed connection to service installfiles
[2018/04/26 17:46:19, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2018/04/26 17:46:19, 0] lib/util_sock.c:1491(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
read_fd_with_timeout: client 0.0.0.0 read error = No route to host.
Here's my smb.conf file
[global]
workgroup = workgroup
name resolve order = bcast lmhosts host wins
netbios name = afs
security = share
log file = /mnt/hda1/sambalogs/%m
log level = 1
max log size = 50
debug timestamp = yes
load printers = no
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
[installfiles]
path = /mnt/hda1/shares/installfiles
read only = no
guest ok = yes
force user = tc
force group = staff
[manager.scans]
path = /mnt/hda1/shares/manager.scans
read only = no
guest ok = yes
force user = tc
force group = staff
[mac]
path = /mnt/hda1/shares/mac.password.test
read only = no
guest ok = no
valid users = @manager
The mac can connect to installfiles and manager.scans shares as they have no password.
The mac is unable to connect to the mac share, this is the share that has a password.
I am able to connect to the mac share from a windows 7 pro computer, using the correct username and password.
Hoping someone can help shed some light on this strange problem.
All comments and suggestions welcome.
Thanks for your contributions :)
-
H all,
I"m setting up a mc9 to see if I get a solution to the mac password problem with updated samba software.
was going through the motions, and was about to make mods to my sudoers file with visudo and got this
$ sudo visudo
visudo: no editor found (editor path = /usr/bin/vi)
I'm wondering if I need to install the visudo package somehow ?
I've tried tce-load -wi sudo , visudo with no luck
Or do I need to simply change my habits with mc ?
-
So I thought I would manually edit my /etc/sudoers file
sudo chmod 660 /etc/sudoers
sudo vi /etc/sudoers
sudo: /etc/sudoers is mode 0660, should be 0440
sudo: no valid sudoers sources found, quitting
Any comments and suggestions welcome
-
Hi remus
$ sudo visudo
visudo: no editor found (editor path = /usr/bin/vi)
I'm wondering if I need to install the visudo package somehow ?
That message says that visudo is present. Maybe create a link from busybox vi to /usr/bin/vi.
-
Thanks Rich
sudo ln -s /bin/vi /usr/bin/vi
Did the trick :)
-
Hi remus
Glad to hear you fixed it. In TC4 the busybox vi link is in /usr/bin/vi. I'm guessing someone may have thought it was misplaced
and moved it to /bin/vi which then broke visudo.
-
If you don't comfortable with VI you can use nano with visudo like this.
sudo EDITOR=nano visudo
-
Hi remus
Glad to hear you fixed it. In TC4 the busybox vi link is in /usr/bin/vi. I'm guessing someone may have thought it was misplaced
and moved it to /bin/vi which then broke visudo.
Yeah, visudo is still there, doesn't need installing, I just had to use this to get it working
sudo ln -s /bin/vi /usr/bin/vi
Perhaps someone should tell somebody ?
-
If you don't comfortable with VI you can use nano with visudo like this.
sudo EDITOR=nano visudo
Thanks for the suggestion patrikg,
I'm wondering if all the validation and checks still get executed ?
I think I read somewhere that visudo does some kind of sanity check ?
I could be wrong :)
-
The checks happen regardless of editor.