Re: Another perplexity: lost+found

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

 



On Thu, 2013-11-14 at 17:59 -0500, m.roth@xxxxxxxxx wrote:
> Dominick Grift wrote:
> > On Thu, 2013-11-14 at 17:38 -0500, m.roth@xxxxxxxxx wrote:
> >> CentOS 6.4
> >>
> >> I have *no* idea how this happened - I didn't build this box, but I've
> >> got two mounted filesystems, and lost+found on both of them is wrong.
> >>
> >> drwx------. root root system_u:object_r:usr_t:s0       lost+found
> >> semanage fcontext -a -t lost_found_t /export/1/lost+found
> >> restorecon -v /export/1/lost+found
> >> ll -Z /export/1
> >> drwx------. root root system_u:object_r:usr_t:s0       lost+found
> >>
> >> Clues for the poor?
> >
> > # semanage fcontext -l | grep lost
> > /boot/lost\+found                                  directory
> > system_u:object_r:lost_found_t:s0
> > /boot/lost\+found/.*                               all files
> > <<None>>
> > ...
> >
> > You probably needed to at least escape the +
> >
> > try:
> >
> > semanage fcontext -d -t lost_found_t /export/1/lost+found
> > semanage fcontext -a -t lost_found_t -f -d "/export/1/lost\+found"
> > semanage fcontext -a -t <<none>> "/export/1/lost\+found/.*"
> Didn't need the above - dunno why it didn't run, acted like it was waiting
> for a closing quote.
> 

maybe it should be:

semanage fcontext -a -t "<<none>>" "/export/1/lost\+found/.*"


> > restorecon -R -v -F /export/1/lost+found
> 
> WORKED! Thank you.
> 
>        mark
> 
> 
> 


--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux