Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 05-02-2007, 10:23 PM
dealmaker dealmaker is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 1
Question How to Change Permission of Files & Directories Quickly?

Hi,
I want to change all files' permission to 644 and all directories to 755 recursively quickly. How do I do it? It seems that Hostgator doesn't support telnet. I can use ftp, but there is no way to change permissions recursively.
Thanks.
Reply With Quote
  #2  
Old 05-02-2007, 11:58 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: How to Change Permission of Files & Directories Quickly?

Quote:
Originally Posted by dealmaker View Post
Hi,
I want to change all files' permission to 644 and all directories to 755 recursively quickly. How do I do it? It seems that Hostgator doesn't support telnet. I can use ftp, but there is no way to change permissions recursively.
Thanks.
Instead of using telnet, open a ticket asking for ssh access (which is basically an encrypted telnet). Once they grant it, log in with that and run your command. Or, request support to run it for you.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 05-03-2007, 12:54 AM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 764
Default Re: How to Change Permission of Files & Directories Quickly?

Quote:
Originally Posted by dealmaker View Post
Hi,
I want to change all files' permission to 644 and all directories to 755 recursively quickly. How do I do it? It seems that Hostgator doesn't support telnet. I can use ftp, but there is no way to change permissions recursively.
Thanks.
Here a tool doing this if you dont have access to shell.

Last edited by riostyles; 05-06-2007 at 06:49 PM.
Reply With Quote
  #4  
Old 05-04-2007, 12:29 AM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: How to Change Permission of Files & Directories Quickly?

Quote:
Originally Posted by dealmaker View Post
Hi,
I want to change all files' permission to 644 and all directories to 755 recursively quickly. How do I do it? It seems that Hostgator doesn't support telnet. I can use ftp, but there is no way to change permissions recursively.
Thanks.

Many FTP clients allow you to recursively change the chmod of files. I know gFTP and FlashFXP both allow you to do this.

If you want to do this via Shell, you may request for SSH access.
Reply With Quote
  #5  
Old 05-06-2007, 08:13 AM
charlesgan's Avatar
charlesgan charlesgan is offline
Swamp Croc
 
Join Date: Mar 2007
Location: www.hostgatorreview.org
Posts: 350
Default Re: How to Change Permission of Files & Directories Quickly?

you can try using cuteftp.
today i use it to setup my online directory site, and select the files and folder. right click property and change the write access at once.
__________________
Charles Gan
Hostgatorreview.org webmaster
Reply With Quote
  #6  
Old 05-07-2007, 06:54 AM
slick slick is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 9
Default Re: How to Change Permission of Files & Directories Quickly?

The man wants recursive chmodding separately files and folders. Once you aqcuire SSH access issue this command in the main folder.
Code:
find . -type f | xargs chmod 644
(this goes for files)
HTML Code:
find . -type d | xargs chmod 755
(this goes for folders)

It will grant your wish. Ask for SSH or simply ask admin to implement it for you.

Generally SSH is great to have, provided you know what you are doing.
Reply With Quote
  #7  
Old 05-07-2007, 08:13 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: How to Change Permission of Files & Directories Quickly?

Quote:
Originally Posted by slick View Post
Generally SSH is great to have, provided you know what you are doing.
...and backup files are very useful if you don't.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
Reply

Bookmarks

Thread Tools

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

All times are GMT -6. The time now is 11:31 AM.

 
Forum SEO by Zoints