Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-19-2006, 12:05 AM   #1
LQ Newbie
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
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
=> `tranzset.tgz'
Resolving www.--link XX.XX.XX.XX
Connecting to www.--link|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?
Old 01-19-2006, 12:08 AM   #2
Registered: Jan 2006
Posts: 76

Rep: Reputation: 15
chown john filename.tgz
Old 01-19-2006, 12:35 AM   #3
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
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.
Old 01-20-2006, 12:18 AM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.3
Posts: 17,548

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing permission jaakkop Slackware 1 09-29-2004 12:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 01:41 PM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 02:46 AM
Changing access permission LinuxVirgIan Linux - Newbie 16 07-05-2004 08:59 PM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 07:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration