Two methods, depending on share host cifs or smbfs
smbfs is the "original" method.However, smbfs is not compatible with security signatures, which are enabled by default and
not recommended to disable on Windows Server 2003 and later. If a share is served by Windows Server 2003 or later, you should use cifs.
The "smbfs" package provides the tools needed to mount "smbfs" and "cifs" filesytems. You may have smbfs installed on your machine. If not, run
#sudo apt-get install smbfs
Mount Windows Shared folder with windows authentication
#mkdir -p /opt/win-share
#mount -t cifs //192.168.155.xxx/tools/ /opt/win-share/ --verbose -o username=administrator #this will prompt for administrator password
#mount -t cifs //192.168.155.xxx/tools/ /opt/win-share/ --verbose -o username=administrator,password=****
Mount Windows Shared folder without authentication
#touch win-share-pass
#vi win-share-pass #open win-share-pass and add below lines on it
username=administrator #we can specify a user name to access the shared folder
password=********
Save the file
mount -t cifs //192.168.155.117/tools/ /opt/win-share/ --verbose -o credentials=/home/user/win-share-pass
smbfs is the "original" method.However, smbfs is not compatible with security signatures, which are enabled by default and
not recommended to disable on Windows Server 2003 and later. If a share is served by Windows Server 2003 or later, you should use cifs.
The "smbfs" package provides the tools needed to mount "smbfs" and "cifs" filesytems. You may have smbfs installed on your machine. If not, run
#sudo apt-get install smbfs
Mount Windows Shared folder with windows authentication
#mkdir -p /opt/win-share
#mount -t cifs //192.168.155.xxx/tools/ /opt/win-share/ --verbose -o username=administrator #this will prompt for administrator password
#mount -t cifs //192.168.155.xxx/tools/ /opt/win-share/ --verbose -o username=administrator,password=****
Mount Windows Shared folder without authentication
#touch win-share-pass
#vi win-share-pass #open win-share-pass and add below lines on it
username=administrator #we can specify a user name to access the shared folder
password=********
Save the file
mount -t cifs //192.168.155.117/tools/ /opt/win-share/ --verbose -o credentials=/home/user/win-share-pass
No comments:
Post a Comment