How do I Chmod Files?

  • Edgar Gravely
  • Newbie
  • Newbie
  • Edgar Gravely
  • Posts: 5

Post 3+ Months Ago

I am told to load all files in one directory and Chmod a few files where do I put the Chmod numbers, once I install the files in a directory :roll:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

It depends a little on your host. Mine provides a handy little tool to enter the numbers, but you can use an FTP program if your host doesn't provide a specific tool. One example of a freeware ftp program that will do this is FileZilla:

http://sourceforge.net/projects/filezilla/

After you log into your site with your FTP client you generally right-click on the remote file where you want to set the permissions and select "chmod" or in FileZilla "File Attributes".
  • Edgar Gravely
  • Newbie
  • Newbie
  • Edgar Gravely
  • Posts: 5

Post 3+ Months Ago

When I open the web site with my FTP and right click on ardguest.php I get FTP command and when I click on it all I get is CWC,PWD,HELP,SYST,SITE,QUOTE,LIST,NLST,RETR,STOR BUT NO chmod.

now what do I do
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

What FTP program are you using?

If you're using windows FileZilla is a free download, so you might give it a try.
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Posts: 42

Post 3+ Months Ago

CHMOD is simple for web documents.

Here is a reference, if you don't have a GUI picker like FileZilla:

Read is given a value of 4; Write is given a value of 2; Execute is given a value of 1.

OWNER is the first digit GROUP is the second digit WORLD
is the third digit

Let's say you were using IE's built-in FTP functionality; if you wanted chmod 666, you would select:

READ WRITE EXECUTE
OWNER X X
GROUP X X
OTHER* X X

because 4 + 2 = 6; so 666 would be read / write permissions for ALL users.

So, what would 602 be in IE?


(It's good to know simple CHMOD permissions, just for reference)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'll try not to make this too far off-topic, but in lines of SniperDevil's last post....until recently I have used WS_FTP Pro, but have since switched to CUTE FTP -- Why? Specifically I could not get WS_FTP Pro to CHMOD where and when I wanted to, whereas I could with Cute FTP. Anyone know what the difference is?
  • Edgar Gravely
  • Newbie
  • Newbie
  • Edgar Gravely
  • Posts: 5

Post 3+ Months Ago

I am using WS_FTP 5.1 where can I get the file Zilla at I will try to use it
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

You can download it by following this link:

http://prdownloads.sourceforge.net/file ... e?download

That link will bring you to the download page where you choose the location nearest you in the "download" column along the right side of the page.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

I like FlashFXP myself :)

http://www.flashfxp.com

I've been using this for at least 5 or 6 years now, and it's a great piece of kit.
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

Do you have telnet access to the host? You may find life a lot earier if you have to manage a large number of files and do it from the console.

What's easier than chmod -R 744 *html

(That means owner gets all privs, all other users get read priv, for all html files in this and sub-directories.)

(The "." character is not needed when globbing (i.e. *.* vs. *) file listings on UNIX)

Not to mention you can set the sticky bit such that future files inherit specific permissions.
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

Telnet is great if you have it, but it can be a bitch to remember commands and such. I definitely go with the aforementioned rec of FileZilla. Excellent program, never had problems with it.
  • Smilingwolf
  • Novice
  • Novice
  • User avatar
  • Posts: 31

Post 3+ Months Ago

Is there a way to chmod a file without using an ftp program? What if you are running your own home server and have direct access to your files?
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

Eh, I don't know about that, never having had experience with it. You can try Googling it or asking one of the super moderators around here; they seem to know everything. ;)
  • ainab
  • Newbie
  • Newbie
  • ainab
  • Posts: 6
  • Loc: finland

Post 3+ Months Ago

Assignment2_Q3

A program in which you define two separate arrays of type Property
data structure (in lecture II) and uses pointers to compare, find and
print out those elemnts of arrays which are equal in both arrays; values for
house, car and boat are the same.*/

#include <iostream>
using namespace std;


struct Property{
char house[10];
unsigned short car;
unsigned short boat;
};

int main() {

int i;
Property Friends[] = { {"Yes", 0, 2}, {"No",1, 0}, {"No", 0, 0} };
Property Friend[] = { {"Yes", 0, 2}, {"No",1, 0}, {"No", 0, 0} };
Property *p,*p1;
p=Friends;
p1=Friend;

while(*p==*p1)

{
if(*p == *p1)
{
(p)++;
(p1)++;
}

else
{

for(i=0; i<3; i++)
{
cout<<"\nFriends "<<(i+1)<<" owns a house? "<<p[i].house;
cout<<"\tFriends "<<(i+1)<<" owns "<<p[i].car<<"car(s).";
cout<<"\tFriends "<<(i+1)<<" owns "<<p1[i].boat<<"boat(s).";

(p)++;
(p1)++;
}
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

Uhm...what?

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 67 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.