/usr/bin/xauth: error in locking authority file

Bob Benites benites at unca.edu
Thu Mar 15 16:53:14 UTC 2012


> On Thu, 2012-03-15 at 11:35 -0400, Bob Benites wrote:
>
>> [benites at host1 ~]$ ls -lZd /home/benites /home/benites/.Xauthority
>> drwxr-xr-x. benites users system_u:object_r:default_t:s0   /home/benites
>> -rw-------. benites users unconfined_u:object_r:default_t:s0
>> /home/benites/.Xauthority
>
> your home directory is mislabeled.

I thought as much.

> what does matchpathcon return:
>
> matchpathcon /home/benites

/home/benites	system_u:object_r:user_home_dir_t:s0

> does user benites have a home directory and login shell specified, what
> is benites uid/gid?
>
> grep benites /etc/passwd

Sorry, I knew I forgot something. We use LDAP
and Kerberos for authentication so I do not have
a entry in /etc/passwd. On another system where I
use local password authentication and is also
running RHEL 6:

[benites at host2 ~]$ grep benites /etc/passwd
benites:x:500:100:Robert K. Benites:/home/benites:/bin/bash
[benites at host2 ~]$ ls -ldZ /home/benites
drwxr-xr-x. benites users unconfined_u:object_r:user_home_dir_t:s0 /home/benites

I thought adding the context user_home_dir_t on my
home directory on the host where I'm having problems
would solve the problem -- something suggested in
one of the posts I read, but I was unsuccessful
at doing that.

-- Bob


More information about the selinux mailing list