Re: is root realy root ?

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

 



On Sat, Jan 21, 2023 at 6:49 PM old sixpack13 <sixpack13@xxxxxxxxx> wrote:
>
> > On Sat, Jan 21, 2023 at 6:32 PM old sixpack13 <sixpack13(a)online.de&gt; wrote:
> >
> > It sounds like selinux. Under selinux, root is just another account to
> > be contained.
> >
> >     ls -alZ
> >
> > will show you the selinux context.
> >
>
> ls -lRZ /root/.cache
> /root/.cache:
> total 0
> dr-x------. 2 root root system_u:object_r:fusefs_t:s0 0  1. Jan 1970  doc
>
> /root/.cache/doc:
> total 0
> dr-x------. 2 root root system_u:object_r:fusefs_t:s0 0  1. Jan 1970  by-app
>
> /root/.cache/doc/by-app:
> total 0
>
> ls -laZ
> total 20
> dr-xr-x---. 1 root root system_u:object_r:admin_home_t:s0       154 22. Jan 00:17 .
> dr-xr-xr-x. 1 root root system_u:object_r:root_t:s0             138 15. Dez 00:48 ..
> -rw-------. 1 root root unconfined_u:object_r:admin_home_t:s0  3180 22. Jan 00:00 .bash_history
> -rw-r--r--. 1 root root system_u:object_r:admin_home_t:s0        18 23. Jul 2022  .bash_logout
> -rw-r--r--. 1 root root system_u:object_r:admin_home_t:s0       141 23. Jul 2022  .bash_profile
> -rw-r--r--. 1 root root system_u:object_r:admin_home_t:s0       429 23. Jul 2022  .bashrc
> drwx------. 1 root root system_u:object_r:cache_home_t:s0         6 22. Jan 00:08 .cache
> drwx------. 1 root root unconfined_u:object_r:config_home_t:s0   30 21. Jan 23:44 .config
> drwx------. 1 root root unconfined_u:object_r:dbus_home_t:s0     22 17. Sep 15:40 .dbus
> -rw-------. 1 root root unconfined_u:object_r:admin_home_t:s0    20 22. Jan 00:17 .lesshst
> drwx------. 1 root root unconfined_u:object_r:gconf_home_t:s0    10 10. Sep 20:15 .local
>
> I'm completely unexperienced with selinux, but shouldn't I be able to delete .cache cause I own the dir and have write permission ?

Selinux often bytes me, too.

Try relabeling your filesystem before going further.

   sudo fixfiles -B onboot
   sudo reboot && exit

If the issue persists after the reboot, then start working on the
selinux context problem.

Jeff
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[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