hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : CHMOD Permissions
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

CHMOD Permissions

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-08-2004, 05:12 AM
stripeyteapot stripeyteapot is offline
Hmmm....
 
Join Date: Apr 2003
Location: UK
Posts: 2,341

CHMOD Permissions


Hey,

How can I make it possible so that anyone can edit a .htm file I have uploaded, without FTP access, basically they would edit it through Notepad, or something similar.

I have also tried setting permissions to 777 and it didn't work the way I expected, if this is the correct way, how would someone edit the file?

__________________
ServeYourSite
Web hosting done right
██ Shared, Reseller and Dedicated web hosting
An Easy Web Presence Company

Reply With Quote


Sponsored Links
  #2  
Old 09-08-2004, 05:52 AM
aldee aldee is offline
Web Hosting Master
 
Join Date: Oct 2003
Posts: 566
You could put a script (php / perl...) online that allows people to modify that file, chmodding it to 777 is what allows you to do so. You probably want to set up a guest FTP account with read / write access limited to the directory your file is stored in though.

Reply With Quote
  #3  
Old 09-08-2004, 06:48 AM
CretaForce CretaForce is offline
Greece
 
Join Date: Jan 2004
Location: Greece
Posts: 2,039
chmod it to 606 I think is a little more secure.

__________________


Reply With Quote
Sponsored Links
  #4  
Old 09-08-2004, 07:02 AM
gogocode gogocode is offline
Web Hosting Evangelist
 
Join Date: Mar 2004
Location: New Zealand
Posts: 527
Re: CHMOD Permissions

Quote:
Originally posted by pmoduk2


I have also tried setting permissions to 777 and it didn't work the way I expected, if this is the correct way, how would someone edit the file?
What did you expect to happen?

__________________
James Sleeman
PHP Programmer | Specialist PHP 5 Web Hosting

Reply With Quote
  #5  
Old 09-08-2004, 07:31 AM
InfiniteRay InfiniteRay is offline
Newbie
 
Join Date: Jan 2004
Posts: 17
The format for permissions on UNIX filesystems is "user/group/world".

Add the following bits to achieve the combination you want:

1 = execute
2 = write
4 = read

So 7 is RWX.

First number applies to user, second to group, and third to world.

Therefore, permissions of 741 would be user rwx, group rw, and world x.

There is also a setuid bit which prefixes the permissions.
1 = Sticky (for directories only)
2 = SetGID
4 = SetUID

... it prefixes the standard rwx attibutes like so:
4755 sets rwx on user, and rx on group/world and also sets the setuid and setgid on the file as well.

I think what you probably want is 666, or read/write for u/g/w.

Also, the X attribute on directories only means "list" since directories cannot be executed. If a directory does not contain the "list" attribute, its contents cannot be enumerated.

Reply With Quote
  #6  
Old 09-08-2004, 09:34 AM
gogocode gogocode is offline
Web Hosting Evangelist
 
Join Date: Mar 2004
Location: New Zealand
Posts: 527
Quote:
Originally posted by InfiniteRay
4755 sets rwx on user, and rx on group/world and also sets the setuid and setgid on the file as well.
Note these are octal (base 8) numbers, not decimal (base 10).

Quote:
Also, the X attribute on directories only means "list" since directories cannot be executed. If a directory does not contain the "list" attribute, its contents cannot be enumerated.
Execute on a directory permits changing to the directory, read permits reading (listing) the contents of said directory. You can set execute without read to allow entering the directory but not listing the files.

__________________
James Sleeman
PHP Programmer | Specialist PHP 5 Web Hosting

Reply With Quote
  #7  
Old 09-08-2004, 10:40 AM
YUPAPA YUPAPA is offline
Quant Trader
 
Join Date: May 2001
Location: HK
Posts: 2,931
Smile

suEXEC better as long as the ownership is your own uid
You don't have to deal anything with permissions.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Dutch Web Host Protagonist Offers SpamExperts Spam Email Filtering Service Web Hosting News 2012-11-28 17:18:15
Cloud File Sharing Software ownCloud Launches Beta of Updated Community Version Web Hosting News 2012-09-04 17:09:04
Mimecast Email Security Updates Give Users, IT Departments More Control Web Hosting News 2012-08-02 17:32:44
Email Provider Atmail Releases One-Click iOS Provisioning with Atmail 6.3 Web Hosting News 2011-11-28 20:34:19
Cloud Management Software Firm Ensim Enhances Unify SharePoint Manager Web Hosting News 2011-09-06 17:57:22


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?