Problem
When creating remote files (rcmd,rcp,rsh..) on an OpenServer5 system, files are always created using a umask of 077, despite what the user's umask is configured to be.
Cause
For security reasons, the user's umask is ignored.
Solution
For `rcmd`/`rsh`, you can use an explicit `umask` command to set it
to what you want.Example:rcmd OSR5box "umask 022 ; touch foo"For `rcp`, you can use its "-p" flag to preserve the permissions of
the source file.Example:rcp [ -p ] file1 file2Orrcp [ -p ] [ -r ] file ... directory
See also
ftp(TC), rcmd(TC), rcp.mn(C), rlogin(TC), rshd(ADMN), services(SFF)
profile(M), sh(C)