Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003

    Access denied when trying to download a file while not root

    When I try to download a file and I'm not logged in as root, I get an error saying "access denied". I'm logged in as "matthew", and I tried to download to /home/matthew/dls. How can I fix this so that I have read/write permission?

  2. #2
    Just Joined! Sykotik's Avatar
    Join Date
    Mar 2002
    Cape Town, South Africa
    Okay, the directory should belong to matthew (and belong to whichever group your primary group is [usually matthew or users]), and then you should have rwx permissions on the directory for that user and group.

    chown matthew:matthew /home/matthew/dls
    chmod ug+rwx /home/matthew/dls

    Er... this should work, I think. Please yell at me if I'm wrong :P

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    Why would he want to have 770 on it? use this instead:
    chown matthew: /home/matthew/dls
    chmod 755 /home/matthew/dls
    Omitting the group name but specifying the colon to chown changes the group to matthew's primare login group, which is probably what you want. chmod 755 also matches your standard umask, so use that instead.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts