gnc-backend-file.c: ERR_BACKEND_PERM too unspecific
Derek Atkins
warlord at MIT.EDU
Fri Dec 30 10:20:39 EST 2005
Karl Hegbloom <hegbloom at pdx.edu> writes:
> There may be cases where that assumption is not correct, I think. For
> the general case, and to err on the side of caution, it's probably best
> to set all of owner, group, mode, and ACL attributes. If ACL is not
> being dealt with by the application, and the administrator wants to use
> them, then I suppose they can be set for the directory...?
chown() requires root permissions. You cannot set the owner from a
non-suid program. Gnucash is not setuid (and shouldn't be setuid!),
so we cannot chown() the file. We can still chgrp the file, and we
do so now.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list