Re: Problem with su -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/03/12 11:35, David Quigley wrote:

Ok so for some odd reason root's home directory isn't labeled properly. You can see this by typing ls -Z in / and seeing that /root is labeled default_t and then checking what it should be by typing matchpathcon /root. Did you have SELinux disabled at any point? If so you might want to relabel your entire system (" and reboot). If not just type restorecon -Rvv /root and it should fix up all of the labels properly.

Dave


       Ok, I looked at the things you suggested and yes it was as you said.

       I have never disabled SELinux on either of these computers, not
       even run in permissive.

       I did restorecon -Rvv /root and then things appeared to work
       normally again except for the strange prompt "bash-4.2#"

       So the I did the "touch /.autorelabel" and rebooted, the
       computer churned through a massive effort relabeling and when it
       finally settled things seem to work normally except I still get
       that strange prompt "bash-4.2#" when it has always been
       "[root@box6 bobg]#."

       I guess it doesn't matter since this is what I see when I
       investigate:

           [bobg@box9 ~]$ pwd
           /home/bobg

           [bobg@box9 ~]$ su
           Password:
           bash-4.2# pwd
           /home/bobg

       So I guess I still have root permissions as user bobg; it's just
       the prompt display that's changed now, an insignificant [I hope]
       mystery.

       Thanks for your help,

       Bob


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux