The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
.netrc and ftp magikalpnoi AIX 4 07-07-2008 03:22 AM
using .netrc sveera UNIX for Advanced & Expert Users 6 03-26-2008 04:58 PM
.netrc file grandtheftander UNIX for Dummies Questions & Answers 2 07-26-2006 12:10 PM
.netrc limits in Aix 4.3 lawadm1 UNIX for Advanced & Expert Users 0 03-23-2005 01:48 AM
Help in .netrc edu_escandor UNIX for Dummies Questions & Answers 2 03-22-2005 07:12 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2009
ITHelper ITHelper is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
.netrc and Automatic ftp problem

Guy's

We have two AIX servers

Server1 and Server2

and we have created user1 in Server1 and Server2 ...

and .netrc file was confiured under /home/user1 with the below line

machine server2 login user1 password abc1234567

-rw------- 1 user1 staff 159 Sep 28 2004 .netrc

When I try to do FTP to the belwo I'm getting the below message and its asking me user name and password !

ftp server2
Connected to server2
220 server2 FTP server (Version 4.2 Wed Apr 11 11:55:13 CDT 2007) ready.
Name (server2 :user1):

is there any missing or needed configuration need to be done on the server to let the FTP continuing to server2 without asking for password ?

edit by bakunin: corrected spelling in the title to make it findable by the forum search

Last edited by bakunin; 06-23-2009 at 07:07 AM..
  #2 (permalink)  
Old 06-22-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,147
The messages suggest that you are logged in as "root" not "user1". The .netrc (or a copy of it) would need to be in root's home directory.
  #3 (permalink)  
Old 06-23-2009
ITHelper ITHelper is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
This is an example message and it's similar what I got !

Why is asking me password ?!

seam that meaning is not reading .netrc file !!

Last edited by ITHelper; 06-23-2009 at 05:04 AM..
  #4 (permalink)  
Old 06-23-2009
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
You might want to re-read what methyl told you: you have placed the ".netrc" file in /home/user1 and perhaps there is a user account "user1" you want to use.

It might be that you accidentally started the ftp process not while you are user1 but root (or some other user, root is just the most probable one) and therefore your .netrc is not being used. Probably you are writing a script to run the whole process. Insert an "id" command directly above the "ftp" command to find out.

I hope this helps.

bakunin
  #5 (permalink)  
Old 06-23-2009
ITHelper ITHelper is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
.netrc are configured under /home/user1 and I'm trying to do Automatic ftp from this directory and with user1 !

but still I'm getting this message and its asking me to login

ftp server2
Connected to server2
220 server2 FTP server (Version 4.2 Wed Apr 11 11:55:13 CDT 2007) ready.
Name (server2 :user1):

I think system is not reading the contains of .netrc !

Last edited by ITHelper; 06-23-2009 at 09:05 AM..
  #6 (permalink)  
Old 06-23-2009
faruk faruk is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 52
Quote:
Originally Posted by ITHelper View Post
Guy's



and .netrc file was confiured under /home/user1 with the below line

machine server2 login user1 password abc1234567

-rw------- 1 user1 staff 159 Sep 28 2004 .netrc

These Configuration of .netrc should be done in server1 in this example.
did you checked that?
  #7 (permalink)  
Old 06-24-2009
ITHelper ITHelper is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
Yes , it's already been done in the both but still not working !

Last edited by ITHelper; 06-24-2009 at 08:12 AM..
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -4. The time now is 06:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0