Hi, This question is probably not specific to SSH but SSH uses this approach so I'm posting here. When SSHD receives a request to run a subsystem (say sftp), why does it FORK and EXEC a Shell with "-c /usr/sbin/sftp-server" instead of FORKing and EXECing "/usr/sbin/sftp-sever" directly? What value does execing the shell add? Appeciate any info or pointers. TIA
On Wed, May 21, 2008 at 10:50:19AM -0700, Asheesh Jadav wrote:> What value does execing the shell add?The system administrator's policy as set by the shell can still be enforced. The user's preferences are still honored. //Peter