Re: sftp transfer has different unix right

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux