[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UPG and the default umask



OoO La nuit ayant déjà recouvert  d'encre ce jour du samedi 15 mai 2010,
vers 23:34, Russ Allbery <rra@debian.org> disait :

>> Is it possible to detect whether an account is configured properly based
>> on the UPG idea? If yes, wouldn't it then make sense to only set umask
>> 002 if a proper UPG account is detected, otherwise 022? This would avoid
>> putting non-UPG systems on danger.

> That's a good idea.  I'm not sure if all UNIX group systems allow one to
> ask how many users are a member of a particular group, but if there's a
> way to ask that question at least in those group systems that support it,
> the implementation should be fairly straightforward.

If you  are thinking about checking if  the user is alone  in her group,
this seems a bad idea. I may  be alone in "users" group. But I may later
add  someone else. My  umask will  then change  but all  already created
files will be readable and writable by the new user.

Comparing names seems a better solution.
-- 
panic("aha1740.c"); /* Goodbye */
	2.2.16 /usr/src/linux/drivers/scsi/aha1740.c

Attachment: pgp6aK4h7awzp.pgp
Description: PGP signature


Reply to: