Le 20 mai 2013 à 09:50, Anthony Thyssen a écrit : > On Mon, 20 May 2013 09:45:01 +0200 > AZ 9901 <az9...@gmail.com> wrote: > | Hello, > | > | Is there a way / a tool to change EncFS password giving old and new > passwords as arguments, or reading them from stdin ? > | > | I tried the following, but without success : > | echo "oldpass > | newpass > | newpass" | encfsctl passwd /my_encfs/ > | > | I need to automate password update. > | > | Thank you very much for your support ! > | > | Best regards, > | > | Ben > | > Note unless you mount two versions and copy files between! > > OR you use the password to unlock a secondary cryptographic password. > (see my ks system) > http://www.ict.griffith.edu.au/anthony/software/#ks
Thank you Anthony for your answer. Let's assume that I already have old and new passwords in vars, for example $oldpass and $newpass. So to change the password without interaction, I tried : echo "$oldpass $newpass $newpass" | encfsctl passwd /my_encfs/ But it does not work, encfsctl waits for user's input :-/ I think I could use Expect but I'm not so found of it. Perhaps is there another solution ? Could be really perfect if we could do the following : encfsctl passwd /my_encfs/ $oldpass $newpass Thank you very much ! Best regards, Ben ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Encfs-users mailing list Encfs-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/encfs-users