FIND/CHMOD combined

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FIND/CHMOD combined
# 22  
Old 09-18-2007
Originally Posted by smoother
i tried to execute the code you suggest ..through the command prompt and using telnet. the chmod works fine while find or ls and few other don't work.
I think Porter has a point. Are you connected to the telnet or ftp port? What error messages are you getting? If you are connecting to ftp, have you tried the "help" command?

Last edited by kahuna; 09-18-2007 at 09:28 AM..
# 23  
Old 09-18-2007
Well it seems we came to the truth. help returns something that i was afraid of all the time.
214-The following SITE commands are recognized
214 Pure-FTPd -

that probably means i have available only these four commands.
What's the idea of having only these commands? Security/.?

# 24  
Old 09-18-2007
Originally Posted by smoother
214 Pure-FTPd - Pure-FTPd - About
You are obviously connected to the FTP port. As Porter stated, there are only a limited number of commands available in FTP and the find command is not one of them. This machine appears to be more restrictive than some. This also explains the acceptance of upper case commands - FTP is sometimes more forgiving about case.
# 25  
Old 09-18-2007
But, what are my options after this? can i make and upload a batch file to the server and then execute it programatically?

And again i am confused; if it allows the CHMOD why it doesn't allow -R (recursive execution) of the CHMOD command? It doesn't make sense that i cannot execute CHMOD with -R ... correct me if i am wrong. Thanks!!!

Last edited by smoother; 09-18-2007 at 10:25 AM..
# 26  
Old 09-18-2007
FTP and shell are different animals. The unix shell chmod is different from the ftp chmod. They are related by a common name and function, but are not the same thing. You could try "help chmod" to see what options FTP's chmod supports.

You are confusing what is available to you under FTP and what is available in a normal unix shell. There are vast differences. Think of it as the difference as to what's available logging into a windows ftp server and what is available at a DOS prompt. That is part of what initially made your original query so hard to understand.

Regarding executing a script, FTP does not normally allow that. You will probably need to get access to a normal unix shell logon.

Last edited by kahuna; 09-18-2007 at 12:27 PM.. Reason: more comments
# 27  
Old 09-18-2007
Ok then we've finally located the problem. I didn't know that there are two kinds of CHMOD command (FTP and CHMOD from shell).

Means You do suggest another approaching like access to a normal unix shell logon.
I have only one question about this; how (if there is a native C#.NET code for that - mono has some libraries that provides support for SSH protocol but i have never heard about the .NET framework that does the same)?

Thanks a lot kahuna and other Smilie
# 28  
Old 09-18-2007
Originally Posted by smoother
but i have never heard about the .NET framework that does the same
Microsoft Windows does not use SSH as a native protocol.

/n software inc - The Leading Provider of Internet Components provides an implementation.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk combined with an IF

Hi everybody! I try to printout a csv-file with the exeption of cell $1 and $4. what i tried so far: awk '{for(i = 1; i<=NF; i++);if(i == 1 || i == 4);else print($i)}' file.csv ..any ideas how it work and why my example fails? Thanks in advance! IMPe (3 Replies)
Discussion started by: IMPe
3 Replies

2. UNIX for Dummies Questions & Answers

Grep and cat combined

Hello, i need to search one word (snp1) from many files and copy the content of the columns of this word in new file. example: file 1: SNP BP CHR P snp1 1 3 0.01 snp2 2 2 0.05 . . file 2: SNP BP CHR P snp1 1 3 0.06 snp2 2 2 0.3 output... (6 Replies)
Discussion started by: biopsy
6 Replies

3. UNIX for Dummies Questions & Answers

Unix Find and Chmod Question

I have a folder called "test" and this folder contains lots of other folders as sub folders, i intend to search for all file ending with .bin and then change the files to executable please how do i do this ---------- Post updated at 10:48 AM ---------- Previous update was at 10:42 AM ----------... (3 Replies)
Discussion started by: oyesiji
3 Replies

4. Shell Programming and Scripting

Combined Two CSV Lines

I have two CSV lines, I.e.: Line 1 = the,quick,brown,fox, ,jumps, ,the, ,dog Line 2 = the,quick,brown,fox, , ,over, ,lazy,dog Literally, columns missing from line 1 exist in line 2. Any suggestions on quick ways to combined these two lines into one line: New line:... (2 Replies)
Discussion started by: msf004
2 Replies

5. Shell Programming and Scripting

Find and automatically chmod

Hello everyone, my friend is asking for yOur Help. He is asking the script for combined find and changemode utility... Thank you (4 Replies)
Discussion started by: iennetastic
4 Replies

6. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

7. Shell Programming and Scripting

How to combined file?

hello there unix programmer i have problem in combining file and their values.. here it is. in my file1 i have values 1010<tab>10<tab>11<tab>13 1011<tab>11<tab>12<tab>14 in my file2 i have values 1010<tab>22<tab>23<tab>24 1011<tab>23<tab>24<tab>25 my desired output in shell... (7 Replies)
Discussion started by: jantzen16
7 Replies

8. HP-UX

how can I find all tool which can setuid like chmod

for security issue ,i would like to find all privilege tools that can setuid how to do this (2 Replies)
Discussion started by: alert0919
2 Replies

9. UNIX for Advanced & Expert Users

help on find with chmod.. urgent help needed

Hello to all Unix gurus.. I am writing a generic script which takes the options of unix command as input and concatenate all the pieces and forms a complete executable command. I am getting an error with the following command as I am resetting my own permission on the root directory. When the... (4 Replies)
Discussion started by: sdlayeeq
4 Replies

10. UNIX for Dummies Questions & Answers

chmod 777 on all directories do I do that using the "find" command?

I've got 100 directories that each have 2 directories with in them. Structered like this: /home/domains/domain1/ through to /home/domains/domain100/ and those 2 directories mentioned above are here: /home/domains/domain1/directory1/ /home/domains/domain1/directory2/ through to... (7 Replies)
Discussion started by: Neko
7 Replies
Login or Register to Ask a Question