Re: sftp transfer has different unix right



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/>

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: non root execution on boot
    ... One way I can think of is the 'su' command, ... will start the ls command in background for user 'username'. ... The '-' after su will set up the environment for that user, ... $HOME point to username's home directory (this depends on the shell ...
    (comp.os.linux.setup)
  • Re: Win 2000-Xp-98 network porblem, pls help!
    ... Samething happens when working on win 98 and want to copy or transfer file ... > delete all *.pwl files you find. ... > username and password that you created on the other two boxes. ...
    (microsoft.public.win2000.networking)