using
1. yum-y install samba samba-client
samba service is installed in centos7,
2. Then go to / etc/samba/smb.conf
to configure, as follows:
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
netbios name = MYSERVER
security = user
passdb backend = tdbsam
[smbshare]
path = /root/smbshare -sharp /root smbshare
public = yes
valid user = root
writeable = yes
printable = no
create mask = 0644
directory mask = 0755
3. Then I install
[root@linuxidc.com ~]-sharp yum-y install cifs-utils
and then I want to mount the file with the network path of / / 10.99.1.X/Digital
to / root/smbshare
4. So enter the command
[root@linuxidc.com ~] mount -t cifs //10.99.1.X/Digital /root/smbshare
Password for root@//10.99.1.X/Digital:***** -sharp(Linuxroot)
and report an error!
Tip:
mount error(13):Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
how to solve this problem? online practices are not effective