Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Dear brothers, While I tried to change the selinux contex the following error came chcon: can't apply partial context to unlabeled file /softwares. and I proceed further and finshed ...
  1. #1
    klv
    klv is offline
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6

    Smile changing selinux contex

    Hi Dear brothers,


    While I tried to change the selinux contex the following error came

    chcon: can't apply partial context to unlabeled file /softwares.

    and I proceed further and finshed the samba configuration and I tried to open the directory in the windows pc its not opening.

    Plz give the solution

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    First relabel the filesystem..which will automatically add SELinux context to unlabeled files.
    execute commands as root.
    touch /.autorelabel
    Then Reboot
    reboot
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    klv
    klv is offline
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6

    changing selinux contex

    Hi brother,

    I have mysql database and some services are running on the server if I create touch /.autorelabel and reboot ,does it cause any harm to any services running on the server.plz clear my doubt.

    Thankyou so much.

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Relabeling the whole filesystems can create some SELinux conflicts, after that you may have to fix each problem using commands prompted by SETroubleshooter.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    1
    did u try restorecon ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...