Difference between revisions of "Mount NAS via Samba"
Line 1: | Line 1: | ||
− | #/bin/bash | + | How to Automatically mount SMB via script. |
− | /sbin/mount.cifs //{IPADDRESS}/private /mnt/private -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm | + | |
− | /sbin/mount.cifs //{IPADDRESS}/disk /mnt/public -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm | + | #/bin/bash |
+ | /sbin/mount.cifs //{IPADDRESS}/private /mnt/private -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm | ||
+ | /sbin/mount.cifs //{IPADDRESS}/disk /mnt/public -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm |
Latest revision as of 21:35, 30 July 2014
How to Automatically mount SMB via script.
#/bin/bash /sbin/mount.cifs //{IPADDRESS}/private /mnt/private -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm /sbin/mount.cifs //{IPADDRESS}/disk /mnt/public -o credentials=/root/.smbcredentials,uid={USERNAME},gid={GROUPID},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm