changing permission using FTP

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting changing permission using FTP
# 1  
Old 11-07-2007
Bug changing permission using FTP

Dear all,

i want to change file permision of remote dir using FTP.
is that possible?

what i'm doing is i'm simply doing chmod 777 filename after establishing the connection with remote server using ftp...
but the result showing is

550 SITE CHMOD command failed.

can any body plz help?

# 2  
Old 11-07-2007
I do not think you can use ftp's chmod command to change the permissions of a remote directory - especially if you do not own it.

Does the chmod command work for ordinary files?
# 3  
Old 11-07-2007
You can use FTP to CHMOD files and directories. However, fpmurphy is correct in that the FTP user must have the correct permissions to modify the files/directories in the first place.

# 4  
Old 11-07-2007
The ftp protocol does not specify anything about file permissions. Many unix based ftp servers have implemented a site command based chmod facility. Some unix based ftp clients even have a chmod command to invoke the site command. When the server has a chmod facility, it may impose additional restictions beyond what the underlying file systems has. You need to check the docs for that particular server. I have never seen any ftp server fully implement the unix chmod command. Not allowing a ftp based chmod to effect a directory is a common restriction. Disallowing suid, sgid and sticky bits are also very common restrictions..possibly even universal restrictions.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permission denied when changing root password after reset

I have a Solaris 10 machine that I didn't know the root password to so I went into single user mode and removed the password from the shadow file and rebooted and I am able to login with no password now. But my problem is that when I try to change the root password from no password to something... (0 Replies)
Discussion started by: darkone_d1_2000
0 Replies

2. Shell Programming and Scripting

Changing file permission upon creation in a directory

I want to change the permission of a file when it gets created in a particular directory. For instance, I have directory MyDir. Everytime a file gets created in that directory, I would like to change the permission to 777. The context is that I have a 3rd party appication running as root. Only... (2 Replies)
Discussion started by: laiko
2 Replies

3. Shell Programming and Scripting

Changing file permission recursively

I have a directory named DIR. The contents of the directory is something like: assjsjkd gdshddll DFG/ ... ... Where only DFG/ is a folder. I want to grant execute permission to all(a+x), for all the files directly under the DIR directory except the files that... (4 Replies)
Discussion started by: proactiveaditya
4 Replies

4. Shell Programming and Scripting

FTP Files should get full permission

Hi All, Could any one please help me in performing the following? We have the following folder: /home/test/proj1 /home/test/proj2 /home/test/proj3 Users from different country places files in this folder using FTP (These users uses different flavors of FTP tools). Our... (1 Reply)
Discussion started by: vfrg
1 Replies

5. Shell Programming and Scripting

how to exclude file when changing permission

I have files as below: I can easily change permission of all files to 755 by issuing command below: chmod 755 erf*.sh; how do i change permission of all files but excluding file thanks best regards (2 Replies)
Discussion started by: khchong
2 Replies

6. UNIX for Dummies Questions & Answers

ftp transfer permission denied

I am using a Cobalt Raq4 with Apache web server. I am trying to set the intermediate SSL certificate. I have edited httpd.conf and have created the intermediate SSL certificate text file. However when I try to upload the text file via ftp I get a "Permission denied" message. I am the server... (1 Reply)
Discussion started by: dennisheazle
1 Replies

7. Red Hat

changing wtmp ownership and permission

Hi, I am using redhat AS 3. Recently, I was asked to implement a security control on the OS: to change ownership of /var/log/wtmp to root:sys and permission to 600. However, when I made the change and reboot the machine, everything was reverted. How come? Please help. The following is the... (1 Reply)
Discussion started by: voa2mp3
1 Replies

8. AIX

FTP File Permission

Hi Guys, I need help on how to configure file permission to be set to 755 whenever user ftp the files from their notebook to the AIX server. Currently when the user ftp the files, the default permission is 640. Please help me to vi the required files. Thankx RaYbAkH (1 Reply)
Discussion started by: raybakh
1 Replies

9. UNIX for Dummies Questions & Answers

changing permission using scripts

I have been trying to create a script that changes the user rights to read in the 'other' group across directories. The problem I'm having is that when i execute the script, the permissions of the directories remains the same. HELP (8 Replies)
Discussion started by: BigTool4u2
8 Replies

10. UNIX for Advanced & Expert Users

Ftp permission 644

On Sun Solaris 8 I would like a user to post via FTP a file with a put command with higher permission than the standard 644. For instance 664. I don't know how to perform it. Thank you in advance. (4 Replies)
Discussion started by: cagnod
4 Replies
Login or Register to Ask a Question