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

Reply
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 13th, 2003, 12:24 PM
gmdavis gmdavis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Rochester, NY
Posts: 1 gmdavis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ftp question

I want to know how to issue a batch command to change the permissions on a few hundred files on my remote server. "chmod" seems like it only works on one file at a time.

I dont know how to script ftp so if I need to do that, please tell me where I can learn about it. I have tired to find some definitive web tutorial on ftp. Alas, it must be considered too basic as I couldn't find much out there.

Thanks.

Reply With Quote
  #2  
Old October 13th, 2003, 05:30 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 80
FTP stands for "file transfer protocol". You are not going to be able to change file permission using ftp scripts.

CHMOD can change the permissions on multiple files and directories in one fell swoop. Use chmod -R mode file....

Read the man pages for more info.

Reply With Quote
  #3  
Old November 24th, 2003, 07:29 PM
UFSS UFSS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Manalapan, NJ
Posts: 59 UFSS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 39 sec
Reputation Power: 5
Send a message via AIM to UFSS Send a message via MSN to UFSS
i am also having permission problems with proftpd my users cant ul and dl the message says permission denied will that work

Reply With Quote
  #4  
Old November 25th, 2003, 01:44 AM
infamous41md's Avatar
infamous41md infamous41md is offline
not a fan of fascism (n00b)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2003
Location: ct
Posts: 2,756 infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 4 m 29 sec
Reputation Power: 26
i believe the thread starter is talking about using the chmod command when he is logged into his ftp to change the permissions of files on the server. what you need is the expect scripting language. it uses (if your familiar with C) pseudoterminals to automate interactive programs. it's pretty cool and u can actually do a lot of neat stuff with it that would otherwise be a real pain. see http://expect.nist.gov/ .
if you're familiar with shell scripting it's not too hard to write an ugly script that does the job. there is also a good book by o'reilly if you really want to learn it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp question


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 3 hosted by Hostway