Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. echo password | encfs -S /crypted /uncrypted
  2.  
  3. #!/bin/bash
  4. ENCFS6_CONFIG="/home/<user>/.keys/encfs/key_data.xml" encfs -o nonempty --extpass='/home/<user>/.keys/encfs/key_data_pw' /run/media/<user>/data /home/<user>/DATA
  5.  
  6. /usr/local/sbin/mount_crypted_encfs.exp
  7.  
  8. #!/usr/bin/expect -f
  9.  
  10. set timeout 1
  11.  
  12. spawn /usr/bin/encfs /crypted /uncrypted -- -o allow_other -o default_permissions
  13. expect "EncFS Password:"
  14. send "myPasswordr"
  15.  
  16. expect eof
  17.  
  18. encfs /home/user/crypted /home/user/uncrypted -o umask='007' --public --extpass='udevadm info --query=all --name=/dev/mmcblk0p1 | grep ID_SERIAL'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement