LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing permission (https://www.linuxquestions.org/questions/linux-newbie-8/changing-permission-405244/)

Baghdad 01-19-2006 12:05 AM

changing permission
 
I have a folder i moved from another folder to an account and it shows

"permission root" the username of the folder i moved it into is john is their any way I can change that permission to john instead of root so then i can have my friend download this file?

When he trys and downloads it from his server from mine
wget http:// blah blah it tells him this


--05:56:26-- www.--link removed--.com/tranzset.tgz
=> `tranzset.tgz'
Resolving www.--link removed--.com... XX.XX.XX.XX
Connecting to www.--link removed--.com|XX.XX.XX.XX|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
05:56:26 ERROR 403: Forbidden.

It says that because it doesn thave the permission i guess.. any idea what cammand i can do to get it cleared up?

erimar77 01-19-2006 12:08 AM

chown john filename.tgz

scott_R 01-19-2006 12:35 AM

if it's a folder, and he needs to be able to copy the entire folder, you need to add the "-R" option which recursively alters the permissions for the entire folder and any subdirectories and files inside it.

chown -R john foldername/

You might want to do the same with the group, if you need to have more than one person copy it, and it's similar syntax:

chgrp -R groupname foldername/

if you need more information, you can "man chown" and "man chgrp" at the command line to see the entire manual page and all the options for these items.

chrism01 01-20-2006 12:18 AM

Or both at the same time:
chown -R newowner:newgrp your_dir_here


All times are GMT -5. The time now is 10:41 PM.