Dear All,
As-salamu alaykum
I am having problem when i am trying to mount SAMBA share on client, My home-made LAB environment is like
SERVER - RHEL 7.6 with the below configuration
yum install samba -y
mkdir /samba-share
useradd samba
smbpasswd -a samba
chmod 0770 /samba-share/
vim /etc/samba/smb.conf (Contains)
[samba-share]
comment = my samba test
path = /samba-share
write list = samba
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
pdbedit -v samba (Below is output)
Unix username: samba
NT username:
Account Flags: [U ]
User SID: S-1-5-21-962950129-3860769903-710787621-1000
Primary Group SID: S-1-5-21-962950129-3860769903-710787621-513
Full Name:
Home Directory: \\localhost\samba
HomeDir Drive:
Logon Script:
Profile Path: \\localhost\samba\profile
Domain: LOCALHOST
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Wed, 06 Feb 2036 20:36:39 IST
Kickoff time: Wed, 06 Feb 2036 20:36:39 IST
Password last set: Wed, 21 Aug 2019 00:27:27 IST
Password can change: Wed, 21 Aug 2019 00:27:27 IST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
CLIENT - RHEL 8.0 with the below configuration
yum group install "Network File System Client" -y
smbclient -L //192.168.123.210 (Below is output)
Enter SAMBA\root's password:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
samba-share Disk my samba test
IPC$ IPC IPC Service (Samba 4.8.3)
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful
Server Comment
--------- -------
Workgroup Master
--------- -------
mount -o username=samba //192.168.123.210/samba-share /mnt
Error is:- mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
A quick google search says the reason of this may be samba user is locked but at the server side in the ouput of pdbedit -v samba it did not shows the L flag which it is not locked.
Thank You for reading all this, please let me know if someone get this working.
Maybe you're missing the samba_share_t SELinux type on the /samba-share folder.
See:
As-salamu alaykum,
Dear Flozona,
I was missing that but after adding selinux context to the /samba-share , the issue still persist.
As-salamu alaykum,
Dear All,
Issue has been resolved
it seems like it was the permission related issue, as i changed permission chown samba samba-share/, Alhamdulillah it worked.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.