Re: chmod fails though it pretends to succeed

From: Christoph Pleger
Date: Thu May 28 2009 - 03:32:45 EST


Hello,

On Mon, 25 May 2009 17:46:30 -0600
Robert Hancock <hancockrwd@xxxxxxxxx> wrote:

> > Now I have two questions:
> >
> > 1. What can be the reason for chmod to return a value of 0 though
> > device permissions have not been changed?
> >
> > 2. What can be the reason why this chmod fails on the first login
> > of a user, but succeeds on further logins?
>
> Are you sure that some other process is not changing the device
> permissions also?

Maybe, but I do not have an idea what this can be. And if some other
process is interfering, why does this only happen on first login after
boot?

What completely surprises me is that when I install the Debian
lenny package of libpam-devperm (that works perfectly on lenny) on my
Ubuntu jaunty PC, it also does not change device permissions on first
login of a user.

Regards
Christoph
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/