Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

General Discussions


You are currently viewing our General Discussions as a guest. Please register to participate.
Login



Reply
Can someone explain CHMOD?
Old 05-11-2006, 02:36 AM Can someone explain CHMOD?
Ultra Talker

Posts: 250
Location: Massachusetts
Trades: 5
Ok, I always see "and CHMOD the file." I understand there is a code and each code means a specific permission regarding write protecting. Anyone have a handy cheat sheet? I use Plesk control panel and no where can I set a CHMOD 777 or what ever the numbers mean. I can set write protect, etc.

Thanks in advance!

Mike
__________________

Please login or register to view this content. Registration is FREE
for those living in Korea

Please login or register to view this content. Registration is FREE
for those living in Korea

Please login or register to view this content. Registration is FREE
Buy, sell or trade sport cards
mikesilvia is offline
Reply With Quote
View Public Profile Visit mikesilvia's homepage!
 
 
Register now for full access!
Old 05-11-2006, 02:40 AM Re: Can someone explain CHMOD?
Nintendo's Avatar
Average Talker

Posts: 29
Location: Planet Zeekois
Trades: 0
http://javascriptkit.com/script/script2/chmodcal.shtml

ftp programs usually let you set the permission.
__________________
.
Nintendo is offline
Reply With Quote
View Public Profile
 
Old 05-12-2006, 08:05 AM Re: Can someone explain CHMOD?
Experienced Talker

Posts: 38
Trades: 0
When you are using the chmod command, they are referring to it being done when logged in through SSH.

Example command:

chmod 755 index.html
__________________
The New York NOC Inc.
New York Dedicated Servers, Colocation, Shared Hosting

Please login or register to view this content. Registration is FREE
TheNewYorkNOC is offline
Reply With Quote
View Public Profile
 
Old 05-12-2006, 08:18 AM Re: Can someone explain CHMOD?
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Here's a good description of what the numbers mean:
http://www.redhat.com/docs/manuals/l...-chmodnum.html

The 3 numbers refer to permissions, the first one is the owners permission, the seconed number is the group, and the third is everybody else (world).

A permission setting of 777 means that everybody (user, group, world) can read, write and execute the file.
A permission of 664 means that user and group can read and write, but world can only read the file.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 05-16-2006, 11:27 AM Re: Can someone explain CHMOD?
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Which should make you go EEEEEEEEEEK when someone is setting perms to 755 or above.

A quick bit of advice then is to totally avoid 0777 permisions which renders your file or directory world readable. This permision WILL land you in trouble when somebody exploits it (WHICH they will).

The 0777 exploit allows folks to drop (via ftp or whatever) malicious files onto your web space. Then they will modify your pages and start making lots of system calls (normally they are looking at server specs and holes on the server to exploit, BUT this does not mean they wont exploit you if possible).

0664 is adequate, another trick is to use chgrp instead of changing the fp bits.

0777 renders any file an executable and in the world of the web its a dangerous thing to be.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Can someone explain CHMOD?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.57597 seconds with 12 queries