hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Change Folder & File Ownership
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Change Folder & File Ownership

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2006, 09:35 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
Question

Change Folder & File Ownership


I uploaded a HUGE directory with hundreds of files as ROOT, is there an easy way to change the ownership of the directory, subs, and files to the account that they reside in?

Reply With Quote


Sponsored Links
  #2  
Old 01-08-2006, 09:50 PM
Dacsoft Dacsoft is offline
Web Hosting Master
 
Join Date: May 2003
Location: Florida
Posts: 877
from inside the folder:
Code:
chown  -R  owner:owner  *
or from the level above
Code:
chown -R owner:owner folderName/


Last edited by Dacsoft; 01-08-2006 at 09:54 PM.
Reply With Quote
  #3  
Old 01-08-2006, 09:54 PM
Prince Prince is offline
Web Hosting Guru
 
Join Date: Nov 2001
Posts: 294
will that change all subs and files in the folder?

Reply With Quote
Sponsored Links
  #4  
Old 01-08-2006, 09:54 PM
Dacsoft Dacsoft is offline
Web Hosting Master
 
Join Date: May 2003
Location: Florida
Posts: 877
Quote:
Originally Posted by Prince
will that change all subs and files in the folder?
yes it will.

Reply With Quote
  #5  
Old 01-08-2006, 11:46 PM
bear bear is online now
Community Leader
 
Join Date: Oct 2002
Location: cognito
Posts: 17,320
Be careful with wildcards.
Better to use:
chown -R owner:owner ./*

__________________
Have problems (don't we all)? Head over to the help desk
If at first you don't succeed, that's one data point.


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Storage Tech firm Gladinet Offers SMB Tools Based on Google Cloud Storage Web Hosting News 2012-03-06 18:33:21
Pancake.io, DropPages Let Users Host Web Site Files on DropBox Blog 2011-12-08 17:03:11
SingleOS Launches Fuscan Linux Cloud 2.0 Web Hosting News 2011-08-12 19:09:05
Q&A: Go Daddy general counsel Christine Jones on Domain Transfer Lawsuit Web Hosting News 2011-06-09 20:50:09
Web Host WebHostingBuzz Partners with Cloud Platform SMEStorage Web Hosting News 2011-06-01 18:10:25


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?