User Tools

Site Tools


networking:linux:linux_smb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:linux:linux_smb [2014/01/27 09:22]
gcooper
networking:linux:linux_smb [2018/01/15 12:08] (current)
gcooper
Line 98: Line 98:
 ===== Script ===== ===== Script =====
  
-:!:Script must run as root.+:!: Script must run as root.
  
 :!: Limit visibility as the script contains passwords (not secure). :!: Limit visibility as the script contains passwords (not secure).
  
 <file> <file>
-sudo chown root.root /home/gcooper/bin/mymounts+sudo chown root.root /home/username/bin/mymounts
  
-sudo chmod 4700 /home/gcooper/bin/mymounts+sudo chmod 4700 /home/username/bin/mymounts
 </file> </file>
  
Line 129: Line 129:
 mkdir -p /mnt/$SHARENAME2 mkdir -p /mnt/$SHARENAME2
  
 +#These older commands did not need to be run as root
 #smbumount ~/mnt/$SHARENAME1 #smbumount ~/mnt/$SHARENAME1
 #smbmount //$SMBSERVER/$SHARENAME1 ~/mnt/$SHARENAME1 -o username=,password= #smbmount //$SMBSERVER/$SHARENAME1 ~/mnt/$SHARENAME1 -o username=,password=
networking/linux/linux_smb.1390839741.txt.gz · Last modified: 2014/01/27 09:22 by gcooper