How do I Chmod Files?

  • Edgar Gravely
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Dec 20, 2003
  • Posts: 5
  • Status: Offline

Post December 22nd, 2003, 12:10 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 22nd, 2003, 12:10 pm

  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post December 22nd, 2003, 12:39 pm

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".
Free Programming Resources
  • Edgar Gravely
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Dec 20, 2003
  • Posts: 5
  • Status: Offline

Post December 22nd, 2003, 3:32 pm

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
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post December 22nd, 2003, 4:12 pm

What FTP program are you using?

If you're using windows FileZilla is a free download, so you might give it a try.
Free Programming Resources
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Joined: Dec 21, 2003
  • Posts: 42
  • Status: Offline

Post December 22nd, 2003, 9:07 pm

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
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2003, 10:35 pm

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?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Edgar Gravely
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Dec 20, 2003
  • Posts: 5
  • Status: Offline

Post December 23rd, 2003, 6:30 am

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
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post December 23rd, 2003, 6:45 am

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.
Free Programming Resources
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post January 22nd, 2004, 11:58 am

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
  • Joined: Jan 14, 2004
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada
  • Status: Offline

Post January 23rd, 2004, 8:40 am

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
  • Joined: Jan 12, 2004
  • Posts: 350
  • Loc: NY
  • Status: Offline

Post January 23rd, 2004, 3:31 pm

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
  • Joined: Dec 03, 2003
  • Posts: 31
  • Status: Offline

Post March 21st, 2004, 7:28 pm

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
  • Joined: Jan 12, 2004
  • Posts: 350
  • Loc: NY
  • Status: Offline

Post March 22nd, 2004, 2:03 pm

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
  • No Avatar
  • Joined: Mar 23, 2004
  • Posts: 6
  • Loc: finland
  • Status: Offline

Post March 23rd, 2004, 8:08 am

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
  • Joined: Jan 12, 2004
  • Posts: 350
  • Loc: NY
  • Status: Offline

Post March 23rd, 2004, 2:24 pm

Uhm...what?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 23rd, 2004, 2:24 pm

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 170 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.