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
rb:linuxloginscripts [03/10/2018 16:10]
andrew [cifs]
rb:linuxloginscripts [21/06/2019 11:04] (current)
andrew [To Do]
Line 108: Line 108:
 ===== To Do ===== ===== To Do =====
  
-Work out the windows login server from dns drv (_) records, use ldap to retrieve windows home directory. Maybe try to retrieve a windows logon script from the netlogon shared directory once we know the server where it is held and parse it to dynamically build the linux login version. This will break the login.cfg configuration,​ so some redesign is needed. ​+Work out the windows login server from dns srv (_) records, use ldap to retrieve windows home directory. Maybe try to retrieve a windows logon script from the netlogon shared directory once we know the server where it is held and parse it to dynamically build the linux login version. This will break the login.cfg configuration,​ so some redesign is needed. ​
  
 {{:​rb:​logonserver-thumb.jpg?​direct&​100|Find out your Windows Login server}} \\ {{:​rb:​logonserver-thumb.jpg?​direct&​100|Find out your Windows Login server}} \\
Line 255: Line 255:
   [user@eb8470w ~]$   [user@eb8470w ~]$
  
 +
 +
 +==== Scratchpad ====
 +
 +
 +=== SMB3 access ===
 +
 +Pinched from azure connection for Linux example
 +
 +<​code>​
 +sudo mkdir /​mnt/​azuremyresomyvm061717160
 +if [ ! -d "/​etc/​smbcredentials"​ ]; then
 +sudo mkdir /​etc/​smbcredentials
 +fi
 +if [ ! -f "/​etc/​smbcredentials/​azuremyresomyvm061717160.cred"​ ]; then
 +    sudo bash -c 'echo "​username=azuremyresomyvm061717160"​ >> /​etc/​smbcredentials/​azuremyresomyvm061717160.cred'​
 +    sudo bash -c 'echo "​password=aK+zPzfq9TiaLxUAjNGEqW00DStI10mK+Ih1MMgXsBTf3vtE8XMTZLOlmfP19mSRNYq3JjYPaqGSgetI1QQNLA=="​ >> /​etc/​smbcredentials/​azuremyresomyvm061717160.cred'​
 +fi
 +sudo chmod 600 /​etc/​smbcredentials/​azuremyresomyvm061717160.cred
 +
 +sudo bash -c 'echo "//​azuremyresomyvm061717160.file.core.windows.net/​test1 /​mnt/​azuremyresomyvm061717160 cifs nofail,​vers=3.0,​credentials=/​etc/​smbcredentials/​azuremyresomyvm061717160.cred,​dir_mode=0777,​file_mode=0777,​serverino"​ >> /​etc/​fstab'​
 +sudo mount -t cifs //​azuremyresomyvm061717160.file.core.windows.net/​test1 /​mnt/​azuremyresomyvm061717160 -o vers=3.0,​credentials=/​etc/​smbcredentials/​azuremyresomyvm061717160.cred,​dir_mode=0777,​file_mode=0777,​serverino
 +</​code>​
  

rb/linuxloginscripts.1538579446.txt.gz ยท Last modified: 03/10/2018 16:10 by andrew