{
    "content": "<h1>The .netrc Configuration File<\/h1><p>The <a href=\"..\/.NETRC\/\">.NETRC<\/a> file is a specialized configuration file used primarily on <a href=\"..\/UNIX\/\">UNIX<\/a>-like operating systems to store login credentials for remote network services. Originally developed for the <a href=\"..\/FTP\/\">FTP<\/a> client, it allows users to automate the <a href=\"..\/AUTHENTICATION\/\">AUTHENTICATION<\/a> process by defining hostnames, usernames, and passwords in a plain-text format. This mechanism is widely supported by modern tools such as <a href=\"..\/CURL\/\">CURL<\/a>, <a href=\"..\/GIT\/\">GIT<\/a>, and <a href=\"..\/GNU-WGET\/\">GNU-WGET<\/a> to handle <a href=\"..\/HTTP-BASIC-AUTH\/\">HTTP-BASIC-AUTH<\/a> and file transfers without manual prompt entry.<\/p><p>The file is expected to reside in the user's home directory. Its internal structure relies on tokens like <code>machine<\/code>, <code>login<\/code>, and <code>password<\/code>. According to the <a href=\"https:\/\/linux.die.net\/man\/5\/netrc\">Linux Man Pages<\/a>, security is a critical factor; because the file contains sensitive information, it must not be accessible by anyone other than the owner. Most clients will ignore the file if its permissions are not set to <code>600<\/a> (read and write by the owner only) via the <a href=\"..\/CHMOD\/\">CHMOD<\/a> command.<\/p><p>While the <a href=\"..\/.NETRC\/\">.NETRC<\/a> file provides significant convenience for <a href=\"..\/SHELL-SCRIPTING\/\">SHELL-SCRIPTING<\/a> and automation, users should be aware of the security risks associated with storing passwords in plain text. Alternatives like <a href=\"..\/SSH-KEYS\/\">SSH-KEYS<\/a> or credential helpers are often preferred for higher security environments. Detailed usage for modern web requests can be found in the <a href=\"https:\/\/everything.curl.dev\/usingcurl\/netrc\">Everything curl documentation<\/a>.<\/p><ul><li><a href=\"..\/AUTHENTICATION\/\">AUTHENTICATION<\/a><\/li><li><a href=\"..\/SHELL-SCRIPTING\/\">SHELL-SCRIPTING<\/a><\/li><li><a href=\"..\/SECURE-SHELL\/\">SECURE-SHELL<\/a><\/li><li><a href=\"..\/ENVIRONMENT-VARIABLES\/\">ENVIRONMENT-VARIABLES<\/a><\/li><\/ul>",
    "tags": [
        ".netrc",
        "authentication",
        "configuration",
        "security",
        "unix",
        "ftp",
        "curl",
        "git",
        "automation",
        "credentials"
    ]
}