SFTP - Maintaining Windows file permissions

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Sat Apr 25 12:46:00 GMT 2009


Scott D Friedemann wrote:
> When a user uploads a file via SFTP, the file has permissions only for 
> the user who uploaded it.  If another users tries to upload a new 
> version, he gets a permissions error.
> 
> Is it possible to set the default so that the Windows file permissions 
> for the directory are followed?  

See 'nontsec' in <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>
for Cygwin 1.5 or 'noacl' in 
<http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount> for Cygwin 1.7.

> Or is there another method to use so 
> that all users have write access to the files?

How about chmod/chgrp/chown?  This is the way to do it from sftp.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list