- sudo apt-get install cifs-utils
- As root, create mount point directory in /mnt, e.g. /mnt/elsewhere/share
- add following tab delimited single line to end of /etc/fstab
//elsewhere/share /mnt/elsewhere/share cifs credentials=/home/user/.creds,iocharset=utf8,sec=ntlm 0 0
- (optional) add following options to overlay with local ownerships and permissions
uid=john,gid=users,dir_mode=0755,file_mode=0755 - Create file /home/user/.creds similar to following
username=johnlewis
password=KnowinglyOverSold
- chmod 600 /home/user/.creds
- If RPi, do 'sudo raspi-config' and make sure 'wait for network' is enabled for boot.
- If no contents found at /mnt/elsewhere/share then do 'sudo mount -a' and diagnose issue.... Does 'elsewhere' resolve to an IP address?
No comments :
Post a Comment