homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Permission denied
Permission denied
amberbaby

10+ Year Member



 
Msg#: 519 posted 10:38 am on Apr 15, 2003 (gmt 0)

I copied a dir from one user to another logged in as root in SSH.
Now I get a "Permission denied" message when I ftp in that new dir.
How do I set new permissions for that dir? what are the command lines?

Anyone?

 

sugarkane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 519 posted 11:16 am on Apr 15, 2003 (gmt 0)

Log back in as root, and enter

chown -R someuser.somegroup /yourfolder

That will set the ownership for yourfolder and all files in it to the user you choose.

amberbaby

10+ Year Member



 
Msg#: 519 posted 11:50 am on Apr 15, 2003 (gmt 0)

does /yourfolder have to be the full path from root?
what is "somegroup"? eg.administrator?

sugarkane

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 519 posted 12:37 pm on Apr 15, 2003 (gmt 0)

> full path from root

That will work, or you can use a relative path from wherever you are.

> somegroup

That's just an example group ;)

You should set the group to be the same as for the other files owned by that user - what exactly this is will depend on how your server is set up.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved