[Pkg-shadow-devel] useradd fails (cannot lock /etc/passwd)

9jd5b2 9jd5b2 at gmail.com
Thu Nov 12 16:56:13 UTC 2009


On Thu, Nov 12, 2009 at 1:49 PM, Nicolas François
<nicolas.francois at centraliens.net> wrote:
>> fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
>> -1 EACCES (Permission denied)
>
> This is not normal, and I have no idea why this fails.
> Since you mentioned that the box might not be configured properly, I
> would be tempted to look in this direction.

I had to enable CONFIG_FILE_LOCKING in the kernel. Now useradd works
as expected. Thanks for the suggestion!



More information about the Pkg-shadow-devel mailing list