Tuesday, October 3, 2017

sharing files on windows among windows, linux, and mac

* using samba protocol
* set-up folder sharing on windows

* on Linux
* install cifs-utils
sudo apt install cifs-utils

* PETER-DESKTOP is to be added to /etc/hosts

* add credential info
----- credential info -----
cat /home/peter/.smbcredentials
username=Peter
password=Password

peter@peter-linux-dell:~$ ls -al .smbcredentials  (root, 0600)
-rw------- 1 root root 187 Oct  3 15:16 .smbcredentials
-------------------------------------------------------------------------------

* add this line to /etc/fstab
----- /etc/fstab -----
//PETER-DESKTOP/shares /home/peter/shares cifs auto,iocharset=utf8,uid=1000,credentials=/home/peter/.smbcredentials,file_mode=0775,dir_mode=0775 0 0
-------------------------------------------------------------------------------


No comments:

Post a Comment