LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-19-2006, 01:05 AM   #1
Baghdad
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 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?
 
Old 01-19-2006, 01:08 AM   #2
erimar77
Member
 
Registered: Jan 2006
Posts: 76

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

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, 01:18 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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


Reply


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 01:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 02:41 PM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 03:46 AM
Changing access permission LinuxVirgIan Linux - Newbie 16 07-05-2004 09:59 PM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 08:30 AM


All times are GMT -5. The time now is 01:10 AM.

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