Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
auto entering passwords in scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Mon Dec 22, 2003 12:11 pm    Post subject: auto entering passwords in scripts Reply with quote

echo password | losetup -e aes /dev/loop/6 /mnt/storage/backup.enc

I used that before, which worked, but now that asks for a password.

note that the script to do it is stored on an encrypted drive, so I feel the security of that password is more than enough (atleast considering what it's backing up).

any suggestions?
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Mon Dec 22, 2003 9:12 pm    Post subject: Reply with quote

'expect' scripts can be used for this purpose I think.
Back to top
View user's profile Send private message
ViCToR:
n00b
n00b


Joined: 16 Aug 2002
Posts: 46
Location: Barcelona, ES

PostPosted: Mon Dec 22, 2003 9:36 pm    Post subject: Re: auto entering passwords in scripts Reply with quote

neuron wrote:
echo password | losetup -e aes /dev/loop/6 /mnt/storage/backup.enc

I used that before, which worked, but now that asks for a password.

note that the script to do it is stored on an encrypted drive, so I feel the security of that password is more than enough (atleast considering what it's backing up).

any suggestions?


You forgot the -p 0 parameter ...

Code:
echo password | losetup -p 0 -e aes /dev/loop/6 /mnt/storage/backup.enc

_________________
.:: ViCToR ::.
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Mon Dec 22, 2003 9:38 pm    Post subject: Re: auto entering passwords in scripts Reply with quote

[quote="ViCToR:"]
neuron wrote:
echo password | losetup -e aes /dev/loop/6 /mnt/storage/backup.enc

I used that before, which worked, but now that asks for a password.

note that the script to do it is stored on an encrypted drive, so I feel the security of that password is more than enough (atleast considering what it's backing up).

any suggestions?


You forgot the -p 0 parameter ...

damit, I removed that because I was rememebering it as what hash to use, which was wrong of course.. thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum