Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make passwords in a script invisible[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
PietdeBoer
Apprentice
Apprentice


Joined: 20 Oct 2005
Posts: 244
Location: Eindhoven, the Netherlands

PostPosted: Fri Nov 28, 2008 10:50 am    Post subject: make passwords in a script invisible[SOLVED] Reply with quote

Hey guys,


Iam writing a script that mounts my network shares at startup, it does this by:

Code:
smbmount '//server/share' /mnt/share/ -o username=testuser,password=mysecret



Since the password it uses to connect is the same as my global network password... i dont want it to be readable in the script..

i thought about entering the password everytime it starts but that would take a lot of time at every bootup.... is there a way co hide the password or somehow scramble it?


thx in advance!
_________________
_ Got Root? _


Last edited by PietdeBoer on Fri Nov 28, 2008 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Fri Nov 28, 2008 11:00 am    Post subject: Reply with quote

For CIFS you can use sth. like "credentials=<path to your file>" as a mount option.
Back to top
View user's profile Send private message
PietdeBoer
Apprentice
Apprentice


Joined: 20 Oct 2005
Posts: 244
Location: Eindhoven, the Netherlands

PostPosted: Fri Nov 28, 2008 12:22 pm    Post subject: Reply with quote

it works!

thx!
_________________
_ Got Root? _
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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