Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.