<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ola Thoresen wrote:
<blockquote cite="midslrndt96oi.7ph.olen@lupus.olen.net" type="cite">
  <pre wrap="">2006-01-22 G�nter Schmidt <a class="moz-txt-link-rfc2396E" href="mailto:gsc.news@online.de"><gsc.news@online.de></a> wrote
  </pre>
  <blockquote type="cite">
    <pre wrap="">Since the latest 'yum update' I cant execute 'su - root' anymore.
Even the combination Ctrl+Alt+F1 and login:root can login to root.

I can get root access only if I login as root into the graphical desktop.

gsc@erica(23)$ strace su - root
execve("/bin/su", ["su", "-", "root"], [/* 38 vars */]) = 0
    </pre>
  </blockquote>
  <pre wrap=""><!---->
<snip>

  </pre>
  <blockquote type="cite">
    <pre wrap="">connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 
EACCES (Permission denied)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
hmm..

  </pre>
  <blockquote type="cite">
    <pre wrap="">open("/etc/passwd", O_RDONLY)           = -1 EACCES (Permission denied)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
hmm!!


  </pre>
  <blockquote type="cite">
    <pre wrap="">write(2, "user root does not exist", 24) = 24
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Seems like you have some serious permission problems.
  </pre>
</blockquote>
Yes, and I don't know how this happened, perhaps while I had Centos4
booted and accessed<br>
the FC5 partition.<br>
<blockquote cite="midslrndt96oi.7ph.olen@lupus.olen.net" type="cite">
  <pre wrap="">
Have you checked the regular file permissions and selinux context for
these files?

(ls -lZ /etc/passwd and /var/run/nscd/socket)
  </pre>
</blockquote>
No, not with -Z (I have to learn this option :-). The normal file
permissions had been ok.<br>
But after disabling selinux another 'yum update', touch /.autorelabel,
reenable selinux<br>
and reboot, 'su - root' is working again.<br>
With selinux enabled, the error messages are not really usefull.<br>
<br>
Regards,<br>
Günter.<br>
<br>
</body>
</html>