[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8858.0. "Changing system-wide default umask?" by NETRIX::"[email protected]" (Jason Orendorf) Mon Feb 17 1997 19:52

A customer is using 'rcp' to copy files between systems.  He's trying to 
maintain permissions (664), so he's been using the '-p' option.  Problem is,
he's doing this over a bad link & at times the file gets copied, but the
permissions don't get set correctly.  So he would like to just change the
system-wide default umask to 002 rather than 022.  Where is this value
defined?  I thought I had it when I found "#define CMASK   022" in
/usr/sys/include/sys/param.h, but changing this & rebuilding the kernel
had no effect.  What directory/file did I miss, or is this do-able?

TIA
-Jason
[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
8858.1ftfm :-)VAXCPU::michaudJeff Michaud - ObjectBrokerTue Feb 18 1997 00:198
> A customer is using 'rcp' to copy files between systems.

	rcp uses rshd on the remote system, which does use the
	uses shell, and the shell will read it's normal startup
	files (for example, .cshrc).  Put a umask command in
	your .cshrc and you should get what you want ....

ps: the rcp man page mentions most of this ....