FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 24th, 2001, 02:31 AM
frindler frindler is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Berlin
Posts: 11 frindler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to frindler
Hi!

I have the following problem: I want to provide the users of a big php project an automatic installer, because it's needed for running my program that lots of files get the "write" (666) permission for the httpd process (PHP has to change some values in these files).

But my installer can't change the file permissions automatically, because his process (httpd) isn't the owner of the files, this is the ftp-"user", e.g. ftp3196.

Of course, the users could change the file attributes manually (with the FTP program) to 666, but for about 30 files (in different directories) this is not the comfotable way!

Isn't there any command with which I can change the permissions of these files under another user context?

It would be no problem, if the user had to give his ftp-username and password to the script (through a html form).

Reply With Quote
  #2  
Old April 30th, 2001, 01:52 PM
KCK KCK is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 7 KCK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re:

I don't know how to do it in PHP but why not write a shell script and just put it in cron to run as frequent as you need it to change the file permissions?

Reply With Quote
  #3  
Old April 30th, 2001, 03:22 PM
frindler frindler is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Berlin
Posts: 11 frindler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to frindler
Unfortunately, this isn't allowed for nobody and the webserver runs under this account...

Reply With Quote
  #4  
Old January 14th, 2006, 04:23 PM
ronniekyazze ronniekyazze is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 1 ronniekyazze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 37 sec
Reputation Power: 0
You can log in to your FTP server using the Command Line DOS Client and when you are in You type the command

quote site chmod ###(that is the file permissions digits) filename....

But make sure you first cd into the directory you want to chmod....This should flow pretty fast that way.

Reply With Quote
  #5  
Old January 14th, 2006, 11:34 PM
codergeek42's Avatar
codergeek42 codergeek42 is offline
[Insert clever comment here.]
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Jul 2003
Location: Anaheim, CA (USA)
Posts: 6,424 codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)  Folding Points: 35702 Folding Title: Starter FolderFolding Points: 35702 Folding Title: Starter Folder
Time spent in forums: 1 Month 1 Week 6 Days 7 h 3 m 22 sec
Reputation Power: 1105
Send a message via ICQ to codergeek42 Send a message via AIM to codergeek42 Send a message via Yahoo to codergeek42 Send a message via Google Talk to codergeek42
ronniekyazze, thank you for trying to assist in resolving this issue; but I can only presume that this issue is already resolved or no longer relevant after almost five years.

I'm locking this thread so it can die off as it should.

@frindler or others: If you need me to reopen it for further discussion of this problem, please PM me. Thanks.
__________________
~~ Peter ~~
( My Blog: It's exactly like normal nerdiness, but completely different. ) :: ( Supporter of the EFF & FSF ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key )

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > file permissions / FTP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway