>>I am running solaris 2.4 and need to know where the default protections
are set
>>when someone ftp's anything into the machine. At the moment everything gets
>>set to rw-rw-rw-. I have checked the umask everywhere I can think of and
>>everything
>>is set to 022. I don't know if this is even what needs to be set or if I am
>>just
>>looking in the right place.
>
>The solaris FAQ says:
>
>3.48) How can I prevent daemons from creating mode 666 files?
>
> By default, all daemons inherit the umask 0 from init.
> This is most problematic for a service like ftp, which in a
> standard configuration leaves all uploaded files with mode 666.
>
> To get daemons to use another umask execute the following
> commands in /bin/sh and reboot:
>
> umask 022 # make sure umask.sh gets created with the proper mode
> echo "umask 022" > /etc/init.d/umask.sh
> for d in /etc/rc?.d
> do
> ln /etc/init.d/umask.sh $d/S00umask.sh
> done
>
> Note: the trailing ".sh" of the scriptname is important, if
> you don't specify it, the script will will be executed in a
> sub-shell, not in the main shell that executes all other scripts.
>
> --- end of excerpt from the FAQ
>
thanks to Casper Dik <casper@holland.Sun.COM>
marc
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:07 CDT