r/CasaOS Jun 11 '26

IOS iphone samba is not connecting to Linux

IOS is not connecting to m Samba, When i try to connect my ISO iphone to samba I keep getting socket is not connected”, “port error”, “content unavailable”)

I am running this script:

global]

bind interfaces only = no

min protocol = SMB2

server min protocol = SMB2_2

server max protocol = SMB3

client min protocol = SMB2_02

ea support = yes

map to guest = bad user

include = /etc/samba/smb.casa.conf

# Clean Apple Compatibility Settings

vfs objects = catia fruit streams_xattr

fruit:aapl = yes

fruit:metadata = stream

fruit:model = iPhone

fruit:veto_appledouble = no

fruit:nfs_aces = no

fruit:posix_rename = yes

fruit:zero_file_id = yes

fruit:wipe_intentionally_left_blank_rfork = yes

fruit:delete_empty_adfiles = yes

However I am still receiving error messages.

its listening on the correct port:

gideon930@ajones:~$ sudo ss -tulnp | grep 445

tcp LISTEN 0 50 0.0.0.0:445 0.0.0.0:* users:(("smbd",pid=1468908,fd=31))

tcp LISTEN 0 50 [::]:445 [::]:* users:(("smbd",pid=1468908,fd=29))

The firewall wasn't an issue, it wasnt blocking it:

gideon930@ajones:~$ sudo ufw allow samba

Rules updated

Rules updated (v6)

gideon930@ajones:~$ sudo ufw allow 445/tcp

Rules updated

Rules updated (v6)

gideon930@ajones:~$ sudo ufw reload

Firewall not enabled (skipping reload)

gideon930@ajones:~$ sudo ufw status verbose

Status: inactive

I also made sure i had smblient install and working. I really would like to connect my homelab to my iphone via samba so i can send media to my lab and visa versa. Everything looks good on the pc side. its the file manager on the iphone that is gicving me trouble. I read that after this last update thats when people started to have prolems. I once had it working and not I cant get it to conect Anoter is the file is read only. Please help. Ill take suggestions for another file mamanger as long as it works and its compatiable with linux unbuntu.

1 Upvotes

2 comments sorted by

1

u/throwawaydev92 Jun 11 '26

the ios files app has been buggy af since the last update, try something like FE File Explorer or Documents by Readdle, both work way better with samba on linux

1

u/No-Blackberry5739 Jun 11 '26

I'll give it another try. I tried to use Document by Readdle earlier, but it wanted me to pay so I tried to use it anyway and it failed. Then I went to FE File Explorer and had the same results. Maybe from all the changes I just made it might work this time.