[SOLVED] Bash, maximum file/folder listing, ls -a? Why no /run/5000/?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
@Tb0ne, #4 should state the problem in its entirety that I am trying to solve. X E.
Wrong; it states one step in what you're trying to do, and you got a very clear explanation of what it is and why it doesn't matter in post #3. Did you not read/understand it??
AGAIN: What is the *ROOT PROBLEM* you're trying to 'solve'??? Seems to all center around backing things up, and you're just not paying attention/understanding what you're told.
'mount' tells that doc and gvfs are fuse file systems, mounted on /run/user/5591 which is tmpfs, mounted on /run which also is tmpfs.
Code:
$ mount |grep run
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=32768k,mode=755,inode64)
tmpfs on /run/user/5591 type tmpfs (rw,nosuid,nodev,relatime,size=594636k,nr_inodes=148659,mode=700,uid=5591,gid=100,inode64)
gvfsd-fuse on /run/user/5591/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=5591,group_id=100)
portal on /run/user/5591/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=5591,group_id=100)
To allow root see inside fuse mounts, 'allow_root' mount option would be needed when the fuse mounts are made.
None of these are on the disk drive. You should use 'find -xdev' to not descend to other file system mounts.
Last edited by Petri Kaukasoina; 01-20-2024 at 12:37 PM.
Reason: Added -a to show the directory permissions
I would actually guess the directory in question is /run/user/1000. With 1000 being the first UID for a regular user. The permissions of that directory should be something like:
Quote:
drwx------ 14 user_name user_name 480 Jan 20 09:41 /run/user/1000
For ls to list the contents you need x permissions but since root does not have access i.e. no permission for others your script fails.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.