LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-18-2023, 08:52 AM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 257

Rep: Reputation: Disabled
Question Folder ownership changing by itself?


I have 2 folders on a HDD. /mnt/spindle/plex and /mnt/spindle/emby. (The main Emby and Plex apps live on the SSD and I just use the folders on the spindle drive for a transcoding location.

I was running down a problem and noticed that /mnt/spindle/plex was owned by: systemd-network:systemd-journal
and /mnt/spindle/emby was owned by: systemd-timesync - systemd Time Synchronization:systemd-timesync

I did not change the ownership and am wondering how in the world did this happen?!
 
Old 11-18-2023, 09:02 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,342

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by road hazard View Post
I did not change the ownership and am wondering how in the world did this happen?!
What ownership did you expect the two directories to have?
 
Old 11-18-2023, 09:03 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555

Ownership is numbers - the names are just labels - so if the drive is shared with another machine, maybe there's a mismatch.

Use "stat PATH" (or "ls -n") to confirm the UID/GID values, and see if they match values from /etc/passwd and /etc/group on the other system.

e.g. "egrep -w '123|456' /etc/passwd /etc/group" would match 123 or 456 (but not 1235 or 1456).

If it's not a shared drive then... *shrug* when systemd is involved, who knows what it might do...


Last edited by boughtonp; 11-18-2023 at 09:06 AM.
 
Old 11-18-2023, 02:23 PM   #4
road hazard
Member
 
Registered: Nov 2015
Posts: 257

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jailbait View Post
What ownership did you expect the two directories to have?
DUH sorry..... I originally had that folder set to plex : plex
 
Old 11-18-2023, 02:27 PM   #5
road hazard
Member
 
Registered: Nov 2015
Posts: 257

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
Ownership is numbers - the names are just labels - so if the drive is shared with another machine, maybe there's a mismatch.

Use "stat PATH" (or "ls -n") to confirm the UID/GID values, and see if they match values from /etc/passwd and /etc/group on the other system.

e.g. "egrep -w '123|456' /etc/passwd /etc/group" would match 123 or 456 (but not 1235 or 1456).

If it's not a shared drive then... *shrug* when systemd is involved, who knows what it might do...

I have since chown'd the folder back to the rightful owner and group (plex : plex) and everything is back to normal and I used your command to verify the UID/GID values..... it's not a shared folder so systemd weirdness I guess?!!?
 
  


Reply

Tags
ownership



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
Root ownership vs wheel ownership StupidNewbie Linux - Security 2 08-08-2012 12:52 PM
Changing folder permissions and its sub folder and files? stratotak Linux - Newbie 6 12-29-2011 05:11 AM
[SOLVED] Computer turns off by itself, then boots by itself to a blank screen Lyle Linux - Hardware 8 07-25-2010 07:27 PM
How can I rename a folder's content to the name of the folder itself? xmrkite Linux - Software 7 07-25-2008 12:28 PM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM

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

All times are GMT -5. The time now is 01:31 PM.

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