- Сообщений: 61
- Репутация: 1
- Спасибо получено: 2
specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take
the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as
part of the username.
The cifs vfs accepts the parameter user=, or for users familiar with smbfs it accepts the longer form of the parameter
username=. Similarly the longer smbfs style parameter names may be accepted as synonyms for the shorter cifs parameters
pass=,dom= and cred=.
specifies the CIFS password. If this option is not given then the environment variable PASSWD is used. If the password is not
specified directly or indirectly via an argument to mount, mount.cifs will prompt for a password, unless the guest option is
Note that a password which contains the delimiter character (i.e. a comma ´,´) will fail to be parsed correctly on the command
line. However, the same password defined in the PASSWD environment variable or via a credentials file (see below) or entered at the
password prompt will be read correctly.
specifies a file that contains a username and/or password and optionally the name of the workgroup. The format of the file is:
This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file