- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP without prompting userID and password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:06 PM
07-28-2004 08:06 PM
How can we run ftp without prompting userID and password? let say userA run a job that trigger a script on a prticular server. Part of that script will require userA to actually do FTP from that particular server to another one. So userA will run the script as userA and try to ftp over to another server. But now the problem is the ftp will prompt for userID and password. How can we do without prompting userID and password.
Pls help. High score will be given.
Thanks and Best Regards,
Negara
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:12 PM
07-28-2004 08:12 PM
Re: FTP without prompting userID and password
Hi,
check `man netrc`.
This might help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:16 PM
07-28-2004 08:16 PM
Re: FTP without prompting userID and password
Would be self defeating if it worked and I doubt if it is possible
use tftp or rcp
see man pages
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:18 PM
07-28-2004 08:18 PM
Re: FTP without prompting userID and password
u can use "rcp". If password sould not be prompted ,include userA in ~/.rhosts or /etc/hosts.equiv.
for further details consult man pages of rcp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:25 PM
07-28-2004 08:25 PM
Re: FTP without prompting userID and password
Thanks for all the answer. But I found sone restrictions :
1. I checked man netrc, it seems like we have to put unencrypted password on ~/.netrc. It is not really secure.
2. rcp is disabled on my environment
3. tftp. How can we do that?
Any other methods?
Thanks alot ALL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:32 PM
07-28-2004 08:32 PM
Re: FTP without prompting userID and password
1>
anonymous login using netrc files in their $HOME directory as,
machine
Change the file permission to 600
2> using a script line as,
ftp -n -i
open
ls
status
... ftp operations ...
bye
EOF
A sample program is available in
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=641509
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:47 PM
07-28-2004 08:47 PM
Re: FTP without prompting userID and password
If you put your .netrc file in 600 mode, it's as secure as having a .rhost file.
If you really want to secure, you can have an encrypted file whith machine, login, password and set your own script to decrypt this file and issue an
ftp -n hostname << EOF
user username password
...
EOF
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 09:14 PM
07-28-2004 09:14 PM
Re: FTP without prompting userID and password
Than it will not prompt you to set user/pass.
Inside the script you can manage transfers as you want.
This is the syntax
#/usr/bin/ftp -i -n -v < download.ftp
content of #download.ftp
open hostname
user root passwordz
cd /rdir/
lcd /ldir/
put file1.txt
get file2.txt
bye