Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just curious, is it possible to upload files set with setuid permission to directories using ftp and retain its setuid permission?

Or does FTP always change the permission?

share|improve this question
up vote 1 down vote accepted

The FTP Specification doesn't provide a way to transmit file permission bits between systems. Which makes sense: FTP clients and servers run on a lot of different OSs with very different file permission semantics.

File permissions of uploaded files are part of the server's configuration.

share|improve this answer
    
Have to add a bit of historical trivia. The original FTP spec mentions that FTP had already been implemented on the PDP-10 and a GE Multics system. Unix is not mentioned (only invented two years before) nor is Linux (Linus Thorvalds was 1 year old). We tend to think of Unix/Linux as the reference implementation of TCP/IP, but that was not always true. – Isaac Rabinovitch Sep 19 '12 at 5:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .