sftp transfer has different unix right

Matthew Miller mattdm at mattdm.org
Wed Aug 23 19:59:26 UTC 2006


On Wed, Aug 23, 2006 at 12:03:18PM -0700, M E Fieu wrote:
> Hi.. I have a unix user account for example david, which has umask 0002 in
> its environment. so , if I touch a file in its home directory /home/david,
> the file will have rw-rw-r-- right. But the strange thing is if I use sftp
> to transfer file into the box using the same username and password, the
> transferred file will appear to have rw-r--r-- right in /home/david
> folder. Why ??

That's the way ftp normally works, so it makes sense that sftp behaves
analogously. But try using the -P flag -- "get -P yerfile".

-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list