Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-04-2004, 09:17 PM   #1
LQ Newbie
Registered: Jan 2004
Distribution: Mandrake 9.1
Posts: 16

Rep: Reputation: 0
Automatic password retrieval for mounting netware server

In my .bashrc file, I have set up an alias command to mount a netware drive. It looks like this currently:

alias mount.scholar="ncpmount -C -S SCHOLAR -V USER -U $USER ~/scholar/"

However, since I have not specified a password using -P passwd, it will prompt me for a password. I want to be able to specify a password somehow similar to how I specified the user, like this:

alias mount.scholar="ncpmount -C -S SCHOLAR -V USER -U $USER -P $PASS ~/scholar/"

I don't want to simply type in my password because then it would be visible to all, but I'm not sure if I can securely put it in an environment variable as $PASS. I'm looking for ideas on how I can mount this server without manually entering a password.

Old 01-04-2004, 09:58 PM   #2
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
You could put the password in a seperate file with very strict permissions and then make your script read the password out of that file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
password retrieval gman247 Linux - Newbie 4 11-05-2013 03:54 PM
mail server authentication issue (w/netware) jillu Linux - Software 0 09-17-2004 07:52 PM
Log onto netware without a password GaX Linux - Networking 0 01-05-2004 11:58 AM
Sync Time with NetWare server tstx1 Linux - Networking 1 09-20-2003 07:55 PM
Webmin automatic password generator ToBe Linux - General 2 08-26-2003 10:42 AM

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration