File owners on HDD after OS migration

Hello
I just restore my yunohost on a fresh install in order to move from 32Bit debian to 64Bit debian on my Raspi4. Globally, everything went fine.
I just have one issue: Most of my data (nextcloud, ebooks, multimedia, etc.) are on an external drive (which I link to the /homewith a symbolic link to replace the “standard” folder) so that I don’t have to migrate them but rather just replug the disk.
Now, most of my files on the disk have strange owner/group, like “mdns” or “metronome” instead of “nextcloud”, multimedia", etc.
I suspect this is because the uid and gid have change during the reinstall?
Could some good soul indicate me what are the correct user/group for following folders including acl?

  • nextcloud data directory
  • /home/yunohost.transmission
  • shared multimedia folders in /home/yunohost.multimedia/share

Thanks for you help

Hi.

Does this help you?

I don’t have transmission but I guess permissions might be similar to this app:

root@xxxx:/home# ls -hal yunohost.app/ | grep simple-torrent
drwxrwx---  4 simple-torrent www-data 4,0K mar 29  2022 simple-torrent
root@xxxx:/home# 

I think you also asked for this:

admin@xx:/home$ ls -hal yunohost.multimedia/ | grep share
drwxrwxr-x+  6 root  root 4,0K ene  3 21:21 share

admin@xx:/home$ ls -hal yunohost.multimedia/share
total 24K
drwxrwxr-x+ 6 root root 4,0K ene  3 21:21 .
drwxrwxr-x+ 7 root root 4,0K ene  6 09:40 ..
drwxrwxr-x+ 2 root root 4,0K ene  3 21:21 eBook
drwxrwxr-x+ 2 root root 4,0K ene  3 21:21 Music
drwxrwxr-x+ 2 root root 4,0K ene  3 21:21 Picture
drwxrwxr-x+ 2 root root 4,0K ene  3 21:21 Video
admin@xx:/home$ 

Yep! Thanks a lot!
Can you also give me getfacl /home/yunohost.multimedia/share/ and getfacl /home/yunohost.multimedia/share/*?

There you go:

admin@xx:~$ getfacl /home/yunohost.multimedia/share/
getfacl: Removing leading '/' from absolute path names
# file: home/yunohost.multimedia/share/
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x

admin@xx:~$ getfacl /home/yunohost.multimedia/share/*?
getfacl: Removing leading '/' from absolute path names
# file: home/yunohost.multimedia/share/eBook
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x

# file: home/yunohost.multimedia/share/Music
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x

# file: home/yunohost.multimedia/share/Picture
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x

# file: home/yunohost.multimedia/share/Video
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x
1 Like

Thanks a lot!