[SOLVED] [Slackware64 15.1-current] some users (even root) can't find/list/locate files
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Slackware64 15.1-current] some users (even root) can't find/list/locate files
If you ever used GNU findutils non-root trying to find from / (find / -iname file) you'll have seen 'permission denied': /proc, /sys. Locate (mlocate replaced slocate probably replaced locate) is faster and skips forbidden files but finds any matching partial *file* name unless specify '-b "\file"' so I usually forget and use find. Can non-root users set find 'permission denied' errors to not display? Update someone on libera IRC #gnu said 'find / -iname file 2> /dev/null'.
I also have this odd situation.
Code:
d@cosmos:~/.cache$ ls -l doc
total 0
dr-x------ 2 d users 0 Dec 31 1969 by-app/
d@cosmos:~/.cache$ su
root.cosmos:/home/d/.cache# ls doc
ls: cannot access 'doc': Permission denied
root@cosmos:/home/d/.cache# groups root
root : root bin daemon sys adm disk wheel audio users
d@cosmos:~/.cache$ ls -l doc
total 0
dr-x------ 2 d users 0 Dec 31 1969 by-app/
d@cosmos:~/.cache$ su
root.cosmos:/home/d/.cache# ls doc
ls: cannot access 'doc': Permission denied
root@cosmos:/home/d/.cache# groups root
root : root bin daemon sys adm disk wheel audio users
Works for me. You do a lot of strange things to your computer apparently, that result in issues that are unique to you.
Okay but are you on Slackware64 15.1-current and using whatever software (such as from SlackBuidls.org) mounted the below?
d@1cosmos:~$ mount|grep doc
portal on /home/d/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
Quote:
You do a lot of strange things to your computer[...]
mount|grep doc
portal on /home/d/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
That looks very much like a "fuse" application - perhaps an iso mount ? In that case, if setup a certain way, not even root can get into it.
From the "fuse" man page :
General mount options:
These are FUSE specific mount options that can be specified for all filesystems:
default_permissions
By default FUSE doesn't check file access permissions, the filesystem is free to implement it's access
policy or leave it to the underlying file access mechanism (e.g. in case of network filesystems). This
option enables permission checking, restricting access based on file mode. This is option is usually
useful together with the allow_other mount option.
allow_other
This option overrides the security measure restricting file access to the user mounting the filesystem.
So all users (including root) can access the files. This option is by default only allowed to root,
but this restriction can be removed with a configuration option described in the previous section.
allow_root
This option is similar to allow_other but file access is limited to the user mounting the filesystem
and root. This option and allow_other are mutually exclusive.
Okay but are you on Slackware64 15.1-current and using whatever software (such as from SlackBuidls.org) mounted the below?
d@1cosmos:~$ mount|grep doc
portal on /home/d/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
I run Slackware-current 64bit (there is no Slackware 15.1) and have the same 'portal' mount as you but look at my mount point, it is completely different. I have this in a KDE5 environment as well as under XFCE, and it is exactly the same on Slackware 15.0 here on my other computer:
Code:
windu@woozle:~$ mount |grep doc
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,user=windu)
I absolutely never use flatpak (nor snapd) on Slackware because am not crazy.
Quote:
Originally Posted by Mark Pettit
mount|grep doc
portal on /home/d/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
That looks very much like a "fuse" application - perhaps an iso mount ?[...]
Apparently so but I mount all ISOs as user in a way root can read.
Quote:
Originally Posted by Windu
I run Slackware-current 64bit (there is no Slackware 15.1)[...]
There is: you don't know of changes/terminology.
Code:
root@cosmos:/var/log/packages# ls -1 *15.1*
aaa_libraries-15.1-x86_64-6
etc-15.1-x86_64-1
When aaa_libraries (then other packages) reach a new version it's that prerelease version so after 15.1-current (or any version-current) becomes stable then current continues people will say 15.1+current (or version+current)... been this way since Slackware 7.1 (2001)). The plus means beyond stable like the minus means prerelease. Overwrite aaa_libraries-15.1 & etc. onto 15.0 (or vice versa) see what happens: see if you still think so.
d@1cosmos:~$ mount|grep doc
portal on /home/d/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
a mount is created in your $HOME/.cache folder most probably because you are not using a desktop environment that exports the environment variable XDG_RUNTIME_DIR (kde and xfce do that), the normal behaviour is the one that Windu described before, with a directory created under /run
see https://github.com/flatpak/xdg-deskt...ment-729700318
you can also export it manually in your ~/.bashrc file to some other tmpfs: for example here I use this
a mount is created in your $HOME/.cache folder most probably because you are not using a desktop environment that exports the environment variable XDG_RUNTIME_DIR (kde and xfce do that), the normal behaviour is the one that Windu described before, with a directory created under /run
see https://github.com/flatpak/xdg-deskt...ment-729700318
Thanks for making that clear.
Quote:
you can also export it manually in your ~/.bashrc file to some other tmpfs: for example here I use this
root@cosmos:/var/log/packages# ls -1 *15.1*
aaa_libraries-15.1-x86_64-6
etc-15.1-x86_64-1
When aaa_libraries (then other packages) reach a new version it's that prerelease version so after 15.1-current (or any version-current) becomes stable then current continues people will say 15.1+current (or version+current)... been this way since Slackware 7.1 (2001)). The plus means beyond stable like the minus means prerelease. Overwrite aaa_libraries-15.1 & etc. onto 15.0; see what happens: see if you still think so.
You can point to all kinds of filenames with "15.1" in them but its version is still "15.0+" and not "15.1-current".
Let me show the authoritative places where the Slackware version is defined:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.