IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 4 > netrc man page

netrc man page

Section 4 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





File Formats                                             netrc(4)



NAME
     netrc - file for ftp remote login data

DESCRIPTION
     The .netrc file contains data for logging  in  to  a  remote
     host  over  the  network  for file transfers by ftp(1). This
     file resides in the user's home  directory  on  the  machine
     initiating  the file transfer. Its permissions should be set
     to disallow read access by group and others. See chmod(1).

     Tokens can be separated by SPACE, TAB,  or  NEWLINE  charac-
     ters. The following tokens are supported:

     account string  Supply an additional  account  password.  If
                     this  token  is present, the auto-login pro-
                     cess supplies the specified  string  if  the
                     remote server requires an additional account
                     password. If  the  remote  server  does  not
                     require  an additional account password, the
                     auto-login process initiates  an  ACCT  com-
                     mand.



     default         Same as machine name,  except  that  default
                     matches  any  name.  There  can  be only one
                     default token, and  it  must  be  after  all
                     machine  tokens.  The  default token is nor-
                     mally used as follows:


                     default login anonymous password user@site


                     Such  an  entry  gives  the  user  automatic
                     anonymous  ftp  login to machines not speci-
                     fied in .netrc.



     login name      Identify a user on the  remote  machine.  If
                     this  token  is present, the auto-login pro-
                     cess initiates a login using  the  specified
                     name.



     machine name    Identify a remote machine  name.  The  auto-
                     login process searches the .netrc file for a
                     machine  token  that  matches   the   remote
                     machine specified on the ftp command line or
                     as an open command argument. Once a match is



SunOS 5.10          Last change: 25 Aug 2006                    1






File Formats                                             netrc(4)



                     made,  the subsequent .netrc tokens are pro-
                     cessed, stopping when the EOF is reached  or
                     another machine token is encountered.



     macdef name     Define a macro.  This  token  functions  the
                     same  as ftp macdef. A macro is defined with
                     the specified name; its contents begin  with
                     the  next  .netrc  line and continue until a
                     null line (consecutive  NEWLINE  characters)
                     is  encountered.  If  a  macro named init is
                     defined, it is automatically executed as the
                     last step in the auto-login process.



     password string Supply a password. If this token is present,
                     the  auto-login  process supplies the speci-
                     fied string if the remote server requires  a
                     password  as  part  of the login process. If
                     this token is present in  the  .netrc  file,
                     ftp  aborts  the  auto-login  process if the
                     .netrc is readable  by  anyone  besides  the
                     user.



     skipsyst        Skip  the  SYST  command  that  is  sent  by
                     default  to  all remote servers upon connec-
                     tion. The system command is what enables the
                     automatic use of binary mode rather than the
                     protocol default ascii mode.

                     As some older servers cannot handle the  ftp
                     command, this directive is provided to allow
                     inter-operability with these servers.



EXAMPLES
     Example 1: A Sample .netrc File

     A .netrc file containing the following line:

     machine ray login demo password mypassword

     allows an autologin to the machine ray using the login  name
     demo with password mypassword.

FILES




SunOS 5.10          Last change: 25 Aug 2006                    2






File Formats                                             netrc(4)



     ~/.netrc


SEE ALSO
     chmod(1), ftp(1), in.ftpd(1M)


















































SunOS 5.10          Last change: 25 Aug 2006                    3





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:27:26 GMT 2007

Your favourite pages:

No pages logged yet...

Top 10 most popular pages:

prstat man page (24353 hits)
(Solaris 10 11_06)

netcat man page (17577 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (13442 hits)
(Solaris 10 11_06)

signal man page (12532 hits)
(Suse Linux 10.1)

startproc man page (11929 hits)
(Suse Linux 10.1)

raidctl man page (11285 hits)
(Solaris 10 11_06)

adv_cap_autoneg man page (10224 hits)
(Solaris 10 11_06)

sqlite3 man page (9706 hits)
(openSUSE 10.2)

CPAN man page (8916 hits)
(Suse Linux 10.1)

BusyBox man page (7623 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Cambridge Plus :: Pyrenees Mountain Holidays :: PIC Project Development :: Wellworthy Piston Rings
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum