You are not logged in.
Pages: 1
Hi All
First post, new arch linux user. I installed arch linux on a ssd, got it all working nicely and then bolted a 2Tb drive onto it.This 2Tb is my media drive with all my music and video. So far so good, recognised the drive, etc. Now this arch linux server is my media server for an android device at my TV. This device running Kodi. The trouble started when I tried to connect Kodi to the server. This is when I discovered that every folder and file on that drive is now owned by "Polkitd-user for polkitd". How can I change these folders and files back to something like root.
Offline
Offline
mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=4096k,nr_inodes=1048576,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=1593928k,nr_inodes=819200,mode=755,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
/dev/mapper/fedora_fedora-root on / type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=25986)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,nr_inodes=1048576,inode64)
/dev/sdb2 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/sdb1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=796960k,nr_inodes=199240,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /root/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
gvfsd-fuse on /root/.cache/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
/dev/sda2 on /run/media/dries/media type ext4 (rw,nosuid,nodev,relatime,seclabel,errors=remount-ro,uhelper=udisks2)
Offline
ext4
Offline
Chown the path you want owned by someone to the owner you want to be the owner of the path i.e.
sudo chown -R root:root /run/media/dries/media
Offline
sudo chown -R root:root /run/media/dries/media
[sudo] password for dries:
chown: changing ownership of '/run/media/dries/media/aquota.group': Operation not permitted
chown: changing ownership of '/run/media/dries/media/aquota.user': Operation not permitted
Offline
was wondering about aquota. group and user which suddenly appeared in media folder
Offline
but it seems to have worked
Offline
This will depend on what you did with the drive previously, permissions on an ext4 file system are stored on the file system and changed by an active action to change them
Offline
Thanks a mil V1del and slithery. I hope my problem is now solved. I seem to recall the drive was previously running under plex
Offline
You seem to be running Fedora, if your naming of volumes is any indication. And Fedora uses selinux out-of-the-box, which fits the output of mount.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Err, uhm, wha? Might have tried fedora. Had to replace the motherboard in this server prob. more than a year ago and then ran into a problem, the motherboard (ASUS Prime H410M -R) didn't want to run Linux. It seemed to be due to some new security feature introduced into BIOS for Windows. Upshot was that I couldn't run any Linux variant. And I tried a lot.
So was rather stuck until I got the bright idea to stick the boot boot drive into my ubuntu server and boot the drive there and then transplant it into my media server. Was very surprised and relieved when it booted up.
Offline
Pages: 1