Current-Users archive

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

Re: Problem with /etc/security script?

    Date:        Sun, 7 Oct 2018 05:23:00 +0800 (+08)
    From:        Paul Goyette <>
    Message-ID:  <>

  | Lately I've been noticing messages of the following form:
  | Checking mailbox ownership.
  | user paul.lock mailbox is owned by paul
  | user paul.lock mailbox is ----------, group wheel

You might want to work out what is using .lock file style locking in /var/mail

The current convention is to to use O_EXLOCK normally, not that old
style locking.

  | It seems like /etc/security tried to skip over the .lock files, but the 
  | test only checks for the filename having a leading '.' rather than 
  | matching ${user}.lock

I think it is intending to skip over dot files, rather than lock files.   '.'
is a valid char in user names, even if not often used, so simply
omitting files containing dots would not be a good idea.   If we wanted
to allow for old style user.lock files it would want to be skipping file
names that end in ".lock" not ones that happen to contain a '.'
(and then probably not skip, but validate that the xxx in xxx.lock is
owned by xxx)


Home | Main Index | Thread Index | Old Index