Samba shared file mount error between linux


Test that it is possible to log in between Linux and Windows, but an error is reported when mounting between the two Linux systems,
prompting "mount error (13): Permission denied
Refer to the mount.cifs (8) manual page (eg man mount.cifs ) "

After the samba server is installed and configured, install cifs
yum install -y cifs on the client and
use mount -t cifs //192.168.159.133/share / data / yunwei to prompt the above error.

Because the user password is required to log in to samba on the server, after searching for the information,
you can successfully mount it using the following command:
mount -t cifs -o noserverino -o username = "smbuser", uid = "501", gid = " 501 "//192.168.159.133/share / data / yunwei /

Then use df -h to view the mounting result

Guess you like

Origin www.cnblogs.com/magita/p/12704251.html