Re: chmod, chown and user, group

From: Måns Rullgård (mru_at_inprovide.com)
Date: 11/20/04


Date: Sat, 20 Nov 2004 23:21:28 +0100

Kasper Dupont <kasperd@daimi.au.dk> writes:

> If it is just about showing something to the user, I'd
> keep it simple. Some of the special cases like immutable
> files I'd avoid, and just let the user see an error
> message.
>
> I'd suggest you verify only two things. First of all
> that the user have write permissions to the directory.
> And in addition to that if the directory is sticky, you
> verify that the user is owner of either the directory
> or the file.
>
> That should be good enough for displaying in a GUI.

Wrong. AFS ignores the usual permission bits when deciding whether to
allow an operation, and looks only at its own ACLs. It's quite
irritating when a program refuses to let you do something you are
allowed to do, only because the program believes it wouldn't work, and
so won't even let you try. It's much better to just attempt the
operation and fail with an error message if it turns out it wasn't
allowed.

-- 
Måns Rullgård
mru@inprovide.com


Relevant Pages

  • Re: HELP!!!PLEASE!!
    ... Also, verify this setting: Tools, Accounts, select that mail account, ... incorrect information for the Host/Server (see error message below). ... the server name correctly", but I don't know were to do this... ...
    (microsoft.public.windows.vista.mail)
  • RE: HELP!!!PLEASE!!
    ... Also, verify this setting: Tools, Accounts, select that mail account, ... incorrect information for the Host/Server (see error message below). ... the server name correctly", but I don't know were to do this... ...
    (microsoft.public.windows.vista.mail)
  • Re: Emails stuck in outbox..
    ... In the Servers tab of the account's properties, is "My server requires authentication" checked? ... get any error message to copy to you, it now came up for me to verify my ... >>>> fails, drag it to the Recycle Bin. ...
    (microsoft.public.windows.vista.mail)
  • Re: chmod, chown and user, group
    ... > irritating when a program refuses to let you do something you are ... It's quite frustrating to work with a filesystem which isn't consistent. ... IMO it's wrong to just give the user an error message and let him figure ... But since I think it's very convenient for the casual user it ...
    (comp.os.linux.development.apps)
  • RE: Migrate NT 4 domain to 2003 server R2 x64 with ADMT v.3
    ... Based on the error message included in your post, ... verify this and let me know the result. ... we can verify the domain trust by "nltest" command. ... Microsoft Online Support ...
    (microsoft.public.windows.server.migration)