Mount CIFS with the default local filesystem permissions:
For example, this is the folder where i want to reach my share:
apt-get install cifs-utils
# mkdir /myfolderpath
These are various examples on how to mount a CIFS (windows) share;
# mount -t cifs //myservername/mysharename /myfolderpath -o username=myuser,password=mypassword,domain=mydomain
# mount -t cifs //192.168.83.200/mysharename /myfolderpath -o username=myuser,password=mypassword,domain=mydomain
OR
# mount.cifs //192.168.83.200/mysharename /myfolderpath -o username=myuser,password=mypassword,domain=mydomain
Explain:
- username=myuser : is the CIFS (windows share) user name required to access.
- password=mypassword : is the CIFS (windows share) password related to the username specified above. If this option is not set up then the environment variable PASSWD is used. If the password is not specified directly or indirectly via an argument to mount, mount will prompt for a password, unless the guest option is specified into CIFS (windows share) options.
- domain=mydomain : sets the domain (active directory or workgroup) of the user
Recent Comments