LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 01-04-2004, 08:17 PM   #1
GaX
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.

Thanks
 
Old 01-04-2004, 08:58 PM   #2
oot
Member
 
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:40 AM.

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