Thema: cifs
-
Mounting SMB/CIFS shares from Linux with a credentials file instead of embedding a password
mount -t cifs accepts a username and password directly in the mount options, which then appears in process listings and /etc/fstab in plain sight; a credentials file readable only by root removes both exposures. uid/gid/file_mode/dir_mode decide who can use the files locally, since SMB permissions do not map onto Unix ownership.
Maschinenlesbar: JSON