The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing wtmp ownership and permission voa2mp3 Red Hat 1 10-15-2007 06:48 AM
Changing userID and Changing group and GID deal732 Shell Programming and Scripting 2 04-18-2007 10:09 AM
permission dozy UNIX for Dummies Questions & Answers 1 12-28-2004 11:00 AM
changing permission using scripts BigTool4u2 UNIX for Dummies Questions & Answers 8 04-21-2004 11:48 PM
su permission siavoush UNIX for Dummies Questions & Answers 12 06-15-2002 11:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-07-2007
panknil panknil is offline
Registered User
  
 

Join Date: Apr 2007
Location: Kolkata
Posts: 83
Smile 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?

Regards,
Pankaj
  #2 (permalink)  
Old 11-07-2007
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,917
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 (permalink)  
Old 11-07-2007
nadamson nadamson is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 4
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.

Cheers,
Nate
  #4 (permalink)  
Old 11-07-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0