This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problem: SCP and umask ?!
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Duncan Rubinger <duncan at semanticedge dot de>
- Cc: cygwin at cygwin dot com
- Date: Thu, 3 Apr 2003 17:32:41 -0500 (EST)
- Subject: Re: Problem: SCP and umask ?!
- Reply-to: cygwin at cygwin dot com
On Thu, 3 Apr 2003, Duncan Rubinger wrote:
> Hi,
>
> >> I've changed th umask in the profile file to 000 for private reasons
> >> and this works fine directly under bash!
> >> But if I copy some files using any scp application, the files will be
> >> created with 644 as umask! Each file gets rw-r--r-- ! Don't know why
>
> IP> Two questions:
> IP> 1) are you sure your "profile" is executed on scp?
> IP> 2) why would Cygwin's umask affect Windows programs? or am I missing
> IP> something?
> IP> Igor
>
> Yes, I'm sure, 'cause before it was on 644, after my change 000 really
> works while I'm using the bash by commandline.
> The curious thing is, that only for copied files on any scp
> application (independent from the OS, Linux, Windows, etc.) app. the
> files gets the above permissions :-(
>
> Best regards,
> Duncan
So, again, is the scp application a Cygwin application, or a native
Windows application? Because if it is a Cygwin application, it should be
affected by the umask.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`' -. ;-;;,_ igor at watson dot ibm dot com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Knowledge is an unending adventure at the edge of uncertainty.
-- Leto II
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/