[wplug] Novell Netware Attach script question
Eric C. Cooper
ecc at cmu.edu
Thu Jun 5 16:26:02 EDT 2003
On Thu, Jun 05, 2003 at 02:40:28PM -0400, Mike Griffin wrote:
> I agree with Greg on his script, for added measures of security you
> should include the stty command. I'll include them in the script below
>
> #!/bin/bash
>
> echo -n "Enter Username: "
> read username
>
> stty -echo
> echo -n "Enter Password: "
> read password
> stty echo
>
> ncpmount -S servername -U $username -P $password /mountpoint
>
> username=""
> password=""
>
> exit 0
Note that anyone who does a "ps awx" at the time ncpmount runs will
see the password. It would be better to store the password in a
mode-0600 file and pass the passwdfile=file argument to ncpmount.
--
Eric C. Cooper e c c @ c m u . e d u
More information about the wplug
mailing list