[wplug] Novell Netware Attach script question
Mike Griffin
mike at dmrnetworks.com
Thu Jun 5 14:40:28 EDT 2003
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
Mike
On Thursday, June 5, 2003, at 12:54 PM, Jonathan Colby wrote:
> I have a Linux workstation with NCP ultilities successfully installed,
> and I can "log-in" from that machine to a NetWare 4.11 server in
> bindery emulation mode using:
>
> # ncpmount -S {server} -U {username} -P {password} /{mountpoint}
>
> I have even created a text script and used chmod to make it
> "executable" to automate that task (with essentially that line as the
> script substituting real server name, user name, password and
> mountpoint). My question is this, does anyone know how I can modify
> that script (or make a new one) that will allow the username and
> password to be interactive instead of just 'coded in'? I have a
> number of linux machines that I want to create a 'guest' local
> account, and then log into the Novell network using any number of
> logins, or machines. If I can make it interactive, that solves a huge
> security issue for me! Any help, as always, would be greatly
> appreciated!
>
> Jonathan
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1651 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030605/b9be0330/attachment-0001.bin
More information about the wplug
mailing list