View previous topic :: View next topic |
Author |
Message |
PietdeBoer Apprentice
Joined: 20 Oct 2005 Posts: 244 Location: Eindhoven, the Netherlands
|
Posted: Fri Nov 28, 2008 10:50 am Post subject: make passwords in a script invisible[SOLVED] |
|
|
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Fri Nov 28, 2008 11:00 am Post subject: |
|
|
For CIFS you can use sth. like "credentials=<path to your file>" as a mount option. |
|
Back to top |
|
|
PietdeBoer Apprentice
Joined: 20 Oct 2005 Posts: 244 Location: Eindhoven, the Netherlands
|
Posted: Fri Nov 28, 2008 12:22 pm Post subject: |
|
|
it works!
thx! _________________ _ Got Root? _ |
|
Back to top |
|
|
|