I am working in an office with my macbook pro and my dell portable using rocky linux 9.7 desktop. I want to mount a server volume via smb. On the mac, I open the network login page (apple K), use the server ip address in smb, I fill in the identification / password page and the volume mounts.
On my rocky machine, I use the smb ip address, get a similar page identification / password page, and with WORKGROUP by default. The same login details on the same server fails in rocky.
I’ve tried to see what the "mac handshake” is in the mac logs, but I cannot see anything.
Does anyone have an idea why mac has a magic bullet that rocky does not ?
If you have access to the server, and firewall is ok, you can also check the smb logs for any failures, e.g. client ip is not allowed by current smb conf.
I have no problem on my rocky machine accessing other smb networks. At home, it works a treat. It’s just in my “corporate” office where mac are good and rocky is not. Mac smb usage is opaque to me. I doubt that there is some sort of network flag that lets macs in more easily. On rocky it is as if the password is rejected; there is no error as such.
Could someone tell me where the smb logs are? Do they need to activated?
You can try to log into the remote server using smbclient (which is provided by the samba-client rpm on RH9, I just checked). That can give you information about what’s going on.
rpm -q samba
man samba
man smbd
cat /etc/samba/smb.conf
firewall-cmd --permanent --add-service=samba
sudo smbpasswd -a username
create a share
vi smb.conf
systemctl status smb.service
On the client gio mount "smb://servername;user@servername/share"
or smbclient -d 5 --use-kerberos=off --workgroup=servername --user=username%password //servername/sharename
Thank you Gerry666uk for your suggestions. It revealed to me the “magic” is. (It’s very embarassing to reveal this). The magic is that somehow apple machines find the Domain automatically. By default, the Rocky linux network mount interface shows Domain : WORKGROUP. I was not thinking; my work has a specific domain, which I found on my mac. With the specific domain copied, the volume mounted perfectly.
As for the Rocky terminal mounting command to access a server in the terminal,
And just to finish my totally newbie network guide; to mount a volume via the terminal to a specific folder such as /mnt/nas_home
sudo mount -t ceifs //SERVER IP ADDRESS/SERVER FOLDER TO MOUNT /mnt/nas_home -o username=MY NETWORK USER NAME,domain=MY NETWORK PASSWORD,password=MY NETWORK PASSWORD
Thank you all so much for revealing the apple “magic” for me. (Not very magic at all really.)