Re: selinux, unlabeled files, apache, etc.

From: M. Lewis (_fedoralist__at_cajuninc.com)
Date: 08/27/05

  • Next message: Scot L. Harris: "Re: email servers"
    Date: Fri, 26 Aug 2005 22:54:41 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Walter Petrel wrote:
    > After upgrading from RH9 to FC4 (and opting for selinux), I followed the Fedora instructions on enabling user directories again, setting up the se context and all that, but no good -- I still get the 403's.
    >
    > I have a hunch it is due to the way I upgraded the system. Maybe some will say it's laziness, but I left /home as it was before (i.e. unformatted). As a result, I see that /home/xyz has no selinux label. Will that screw up apache? (The selinux faq for FC3 talks about potential trouble if you turn off selinux, create new files and then turn it back on.)
    >
    > Is there a way to label all the unabled files? Then I could give all files in home the user_home_t label, and then relabel the userdir for httpd. chcon won't work on /home/xyz because it tells me the file is unlabeled.
    >
    > Is there some other obvious trouble I might be in because I didn't let the installer write over /home?
    >
    > tia
    >
    >

    I think 'Walter Petrel wrote:
    > After upgrading from RH9 to FC4 (and opting for selinux), I followed
    the Fedora instructions on enabling user directories again, setting up
    the se context and all that, but no good -- I still get the 403's.
    >
    > I have a hunch it is due to the way I upgraded the system. Maybe some
    will say it's laziness, but I left /home as it was before (i.e.
    unformatted). As a result, I see that /home/xyz has no selinux label.
    Will that screw up apache? (The selinux faq for FC3 talks about
    potential trouble if you turn off selinux, create new files and then
    turn it back on.)
    >
    > Is there a way to label all the unabled files? Then I could give all
    files in home the user_home_t label, and then relabel the userdir for
    httpd. chcon won't work on /home/xyz because it tells me the file is
    unlabeled.
    >
    > Is there some other obvious trouble I might be in because I didn't
    let the installer write over /home?
    >
    > tia
    >
    >

    I think what you're looking for might be
    touch /.autorelabel <as root>
    Then reboot.

    The trouble you might have (along with other things maybe) is the config
    files that are found in the ~/.kde directory (I don't use Gnome, but I
    would expect similar problems). If you rename the directory (.kde ->
    origkde) and let KDE recreate everything, you should be fine.

    M

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Scot L. Harris: "Re: email servers"

    Relevant Pages

    • selinux, unlabeled files, apache, etc.
      ... Is there some other obvious trouble I might be in because I didn't let the installer write over /home? ... Graffiti.net free e-mail @ www.graffiti.net Check out our value-added Premium features, such as a 1 GB mailbox for just US$9.95 per year! ...
      (Fedora)
    • Re: Newbie first-time install advice: Highpoint Rocket 133SB
      ... There I found explanations about how this modem works, ... > trying to figure out why all of the lights were good but the installer ... > commands to run and what configuration files to edit if I have trouble. ... You should be able to boot from it, ...
      (Debian-User)
    • Re: REPOST : problem with security ? on IIS5-Soap-ISAPI-Win2Kpr
      ... I added extensive logging of errors to the DLL and found out ... "Visual Studio Installer 1.1" package which ... any trouble in those cases. ...
      (microsoft.public.inetserver.iis.security)
    • Re: REPOST : problem with security ? on IIS5-Soap-ISAPI-Win2Kpr
      ... I added extensive logging of errors to the DLL and found out ... "Visual Studio Installer 1.1" package which ... any trouble in those cases. ...
      (microsoft.public.win2000.security)
    • Re: Thinkpad T20 wireless troubles - revisited
      ... I am using a PCMCIA orinoco wireless card. ... The card is recognized by the installer. ... trouble comes when I finish the install and boot the machine. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)