Is it possible to upload setuid-set file to ftp-accessible directories?

1

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?

user41648

Posted 2012-09-19T02:04:04.763

Reputation: 43

Answers

1

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.

Isaac Rabinovitch

Posted 2012-09-19T02:04:04.763

Reputation: 2 645

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 – 2012-09-19T05:59:19.960