LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2022, 12:57 AM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Rep: Reputation: 149Reputation: 149
[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

Last edited by dchmelik; 07-27-2022 at 02:52 AM.
 
Old 07-27-2022, 01:52 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
Quote:
Originally Posted by dchmelik View Post
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
Works for me. You do a lot of strange things to your computer apparently, that result in issues that are unique to you.
 
1 members found this post helpful.
Old 07-27-2022, 02:54 AM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by Windu View Post
Works for me.
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[...]
no
 
Old 07-27-2022, 03:34 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,126

Rep: Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201
are you using any flatpak application?
 
Old 07-27-2022, 03:52 AM   #5
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 625

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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.
 
Old 07-27-2022, 04:31 AM   #6
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
Quote:
Originally Posted by dchmelik View Post
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)
 
Old 07-27-2022, 04:41 AM   #7
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by ponce View Post
are you using any flatpak application?
I absolutely never use flatpak (nor snapd) on Slackware because am not crazy.

Quote:
Originally Posted by Mark Pettit View Post
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 View Post
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.

Quote:
[...] and have the same 'portal' mount
What's portal anyway?

Last edited by dchmelik; 07-27-2022 at 05:53 AM.
 
Old 07-27-2022, 04:58 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,126

Rep: Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201
Quote:
Originally Posted by dchmelik View Post
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
Code:
mkdir -p /dev/shm/$(whoami)
chmod 700 /dev/shm/$(whoami)
export XDG_CACHE_HOME=/dev/shm/$(whoami)
export XDG_RUNTIME_DIR=$XDG_CACHE_HOME
 
1 members found this post helpful.
Old 07-27-2022, 05:14 AM   #9
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Thumbs up

Quote:
Originally Posted by ponce View Post
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
Code:
mkdir -p /dev/shm/$(whoami)
chmod 700 /dev/shm/$(whoami)
export XDG_CACHE_HOME=/dev/shm/$(whoami)
export XDG_RUNTIME_DIR=$XDG_CACHE_HOME
My .bashrc is large enough (and partly used as template) so I'd rather in fstab.
 
Old 07-27-2022, 05:19 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,126

Rep: Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201
Quote:
Originally Posted by dchmelik View Post
y .bashrc is large enough (and partly used as template) so I'd rather in fstab.
being user-dependant you can't put those lines in /etc/fstab
 
1 members found this post helpful.
Old 07-27-2022, 05:52 AM   #11
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
Quote:
Originally Posted by dchmelik View Post
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; 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:

Code:
windu@woozle:~$ cat /etc/os-release
NAME=Slackware
VERSION="15.0"
ID=slackware
VERSION_ID=15.0
PRETTY_NAME="Slackware 15.0 x86_64 (post 15.0 -current)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:15.0"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
VERSION_CODENAME=current
windu@woozle:~$ cat /etc/slackware-version
Slackware 15.0+
Source:
http://ftp.slackware.com/pub/slackwa...urrent-release
 
1 members found this post helpful.
Old 07-27-2022, 06:41 AM   #12
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,163

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
As I mentioned in another thread, if you boot a recent -current .iso, it identifies itself as 15.1.
 
1 members found this post helpful.
Old 07-27-2022, 06:50 AM   #13
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,126

Rep: Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201Reputation: 4201
Quote:
Originally Posted by cwizardone View Post
As I mentioned in another thread, if you boot a recent -current .iso, it identifies itself as 15.1.
that most probably is just the INSTALLERVERSION variable as defined in /source/installer/installer.SlackBuild: from the build_installer.sh script
Code:
# INSTALLERVERSION is the Slackware version the installer will advertize!

Last edited by ponce; 07-27-2022 at 08:25 AM.
 
Old 09-07-2022, 07:36 PM   #14
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,163

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
Quote:
Originally Posted by ponce View Post
that most probably is just the INSTALLERVERSION variable as defined in /source/installer/installer.SlackBuild: from the build_installer.sh script
Code:
# INSTALLERVERSION is the Slackware version the installer will advertize!
Here you go:
Attached Thumbnails
Click image for larger version

Name:	slackware64-15-1.jpg
Views:	30
Size:	38.6 KB
ID:	39561  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp - some users see files, some don't, but all users are in same group anon091 Linux - Newbie 10 01-18-2010 07:41 PM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 12:40 AM
can't access/delete/list files even as root... tenshi Linux - General 7 10-13-2004 04:29 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 04:13 PM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration