[Spacewalk-list] File permission problem in SW1.6

Nilton Moura redhat at nmoura.eti.br
Thu Jan 19 12:03:01 UTC 2012


Yes Michael.

Just to inform that when I configured the Spacewalk, because the precedence
of NIS instead passwd on nsswitch.conf, it used an apache user and group
from NIS server. So it didn't added tomcat user on apache group.

Thank you!

2012/1/16 Michael Mraka <michael.mraka at redhat.com>

> Nilton Moura wrote:
> % Hello list!
> %
> % I had some issues to start Spacewalk 1.6 on RHEL 6.2 because the default
> % permissions for the /etc/rhn directory and /etc/rhn/rhn.conf file. The
> % group default is apache, but the tomcat didn't start properly with this,
> % showing this error message:
> %
> % [main] ERROR com.redhat.rhn.common.conf.Config - Could not
> % parse file/etc/rhn/rhn.conf
> % java.io.FileNotFoundException: /etc/rhn/rhn.conf (Permission denied)
> %
> % So, to not open read access for others, I changed the group to tomcat and
> % now it's ok.
> %
>
> Well, the correct setup is
>
> [root at test-05 ~]# ll /etc/rhn/ -d
> drwxr-x---. 4 root apache 4096 Jan 10 03:05 /etc/rhn/
> [root at test-05 ~]# ll /etc/rhn/rhn.conf
> -rw-r-----. 1 root apache 2790 Jan  9 10:35 /etc/rhn/rhn.conf
> [root at test-05 ~]# id tomcat
> uid=91(tomcat) gid=91(tomcat) groups=91(tomcat),48(apache)
>
> Tomcat is added to apache group by spacewalk-setup so it looks like your
> setup went wrong. Please check logs.
>
> Regards,
>
>
> --
> Michael Mráka
> Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120119/a8ff1dd1/attachment.htm>


More information about the Spacewalk-list mailing list