|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
i am also having permission problems with proftpd my users cant ul and dl the message says permission denied will that work
|
|
#4
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > ftp question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|