Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-27-2003 #1Just Joined!
- Join Date
- Apr 2003
- Location
- Canada
- Posts
- 3
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?
- 04-27-2003 #2
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
- 04-27-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Why would he want to have 770 on it? use this instead:
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.Code:chown matthew: /home/matthew/dls chmod 755 /home/matthew/dls


Reply With Quote
