LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2024, 12:18 PM   #16
maybeJosiah
Member
 
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 275

Original Poster
Blog Entries: 2

Rep: Reputation: 6

Anyway, maybe it is only when I run like my program. Good to know things in there are temporary. I guess I do not need this then. X E.
 
Old 01-20-2024, 12:21 PM   #17
maybeJosiah
Member
 
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 275

Original Poster
Blog Entries: 2

Rep: Reputation: 6
Screenshot. X E.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-01-20 13-20-22.png
Views:	9
Size:	90.7 KB
ID:	42450  
 
Old 01-20-2024, 12:26 PM   #18
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,757

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by maybeJosiah View Post
@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.
 
Old 01-20-2024, 12:27 PM   #19
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
I don't have Ubuntu, so the directory structure can be different. My UID is 5591.

Code:
$ TZ=UTC ls -al /run/user/5591 
total 0
drwx------ 8 kaukasoi users 160 2024-01-18 15:31 .
drwxr-xr-x 3 root     root   60 2024-01-18 15:28 ..
drwx------ 3 kaukasoi users  60 2024-01-18 15:28 dbus-1
drwx------ 2 kaukasoi users  60 2024-01-18 15:31 dconf
dr-x------ 2 kaukasoi users   0 1970-01-01 00:00 doc
dr-x------ 2 kaukasoi users   0 2024-01-18 15:31 gvfs
drwx------ 2 kaukasoi users  40 2024-01-18 15:31 gvfsd
drwx------ 2 kaukasoi users  80 2024-01-18 15:31 pulse
As root:
Code:
# TZ=UTC ls -al /run/user/5591 
ls: cannot access '/run/user/5591/gvfs': Permission denied
ls: cannot access '/run/user/5591/doc': Permission denied
total 0
drwx------ 8 kaukasoi users 160 2024-01-18 15:31 .
drwxr-xr-x 3 root     root   60 2024-01-18 15:28 ..
drwx------ 3 kaukasoi users  60 2024-01-18 15:28 dbus-1
drwx------ 2 kaukasoi users  60 2024-01-18 15:31 dconf
d????????? ? ?        ?       ?                ? doc
d????????? ? ?        ?       ?                ? gvfs
drwx------ 2 kaukasoi users  40 2024-01-18 15:31 gvfsd
drwx------ 2 kaukasoi users  80 2024-01-18 15:31 pulse
'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
 
Old 01-20-2024, 12:29 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
You do not need anything in /run.

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.

Last edited by michaelk; 01-20-2024 at 12:35 PM.
 
Old 01-20-2024, 01:25 PM   #21
maybeJosiah
Member
 
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 275

Original Poster
Blog Entries: 2

Rep: Reputation: 6
I consider this solved by not needing to record /run and that /run is temporary stuff so "find" may have just been creating something. X E.
 
Old 01-20-2024, 03:00 PM   #22
maybeJosiah
Member
 
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 275

Original Poster
Blog Entries: 2

Rep: Reputation: 6
P.S. I did see /run/user/1000 in like my new recording. I am certain it was /run/5000 with "find". Probably a temporary thing for "find". X E.
 
  


Reply

Tags
bash, find, finding, permission denied, timestamp



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
[SOLVED] maximum filename lenth and maximum file size snjksh Linux - Newbie 5 07-22-2013 12:34 AM
sftp ls command, short listing vs long listing slufoot80 Linux - General 3 02-05-2013 10:40 AM
I don't understand this line ->>> delay_parameters 2 5000/150000 5000/120000 manalisharmabe Linux - Newbie 6 05-17-2011 06:27 AM
[SOLVED] BASH: limit a .tar.gz to a maximum file size worm5252 Programming 8 04-09-2010 05:14 AM
Bash script for listing FTP usage as the file name of a file created in each share jojothedogboy Programming 1 12-05-2008 03:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:15 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