title: Wget cannot write files when run with a new user. How to fix it?
body: <p>I had a user account in Ubuntu called <code>my_account</code>. Then I created another account called <code>test_account</code>. When I do wget in <code>my_account</code>, it works:</p>
  
  <pre><code>my_account@my_machine:~$ wget --no-check-certificate https://hdfs_server:50470/webpage.html#tab-datanode
  --2018-02-09 14:37:30--  https://hdfs_server:50470/webpage.html
  Resolving hdfs_server (hdfs_server)... 192.168.xx.xx
  Connecting to hdfs_server (hdfs_server)|192.168.xx.xx|:50470... connected.
  WARNING: cannot verify hdfs_server's certificate, issued by ‘CN=abc CA3,DC=def,DC=ghi,DC=org,DC=jkl’:
    Self-signed certificate encountered.
      WARNING: cannot verify hdfs_server's certificate, issued by ‘CN=abc CA3,DC=def,DC=ghi,DC=org,DC=jkl’:
    Self-signed certificate encountered.
  HTTP request sent, awaiting response... 200 OK
  Length: 13320 (13K) [text/html]
  Saving to: ‘webpage.html’
  
  webpage.html    100%[===================&gt;]  13.01K  --.-KB/s    in 0.002s  
  
  2018-02-09 14:37:30 (5.33 MB/s) - ‘webpage.html’ saved [13320/13320]
  </code></pre>
  
  <p>But when I do wget in <code>test_account</code>, it gives this error: </p>
  
  <pre><code>test_account@my_machine:~$ wget --no-check-certificate https://hdfs_server:50470/webpage.html#tab-datanode
  --2018-02-09 14:29:52--  https://hdfs_server:50470/webpage.html
  Resolving hdfs_server (hdfs_server)... 192.168.xx.xx
  Connecting to hdfs_server (hdfs_server)|192.168.xx.xx|:50470... connected.
  WARNING: cannot verify hdfs_server's certificate, issued by ‘CN=abc CA3,DC=def,DC=ghi,DC=org,DC=jkl’:
    Self-signed certificate encountered.
  HTTP request sent, awaiting response... 200 OK
  Length: 13320 (13K) [text/html]
  webpage.html: Permission denied
  
  Cannot write to ‘webpage.html’ (Success).
  </code></pre>
  
  <p>I am using <code>test_account</code> as superuser (i.e., <code>su test_account</code>). So, why can't wget write files into the system with <code>test_Account</code>? And how can I fix it?</p>