Set up a shared directory in Windows and add permissions to users
To mount the file share of the window system to the Linux CentOS directory, proceed as follows:
1. First share the directories that need to be mounted under Windows.
2, make sure that Linux and Windows are in the same LAN.
3. Create a directory below Linux that needs to be mounted.
4. Mount using the Mount command.
Mount-t Cifs-o username=test,password=test,uid=weblogic,gid=weblogic//172.216.176.36/test/var/www/html/mount
Use the Mount command to map the window's directory to the Linux directory parameter description:
Username: is the window System login user name
Password:window System Login Password
172.216.176.36/test: Set the path to the Windows shared directory, IP plus share file name
/var/www/html/mount: Mount the directory under Linux
Mount Common error:
Mount error = Permission denied
Refer to the Mount.cifs (manual page (E.g.man mount.cifs)
Make sure the input command is the same as the above mount.
Then check that the user name and password for window are correct.
To cancel the Mount method:
Umount/var/www/html/mount
Linux mount Windows shared directory