Seperate HDD required to act as administrator?

Hello,

  • ROME Plasma6 AMD CPU (newer than 2017)
    OpenMandriva Lx 25.01 (ROME) Rolling
  • KDE Plasma 6

Description of issue:
My seperate hard drive (not root) for some reason requires me to input my password to “Act as Administrator”, and is a huge inconvenience, and is causing extremely slow transfer speeds and errors when trying to move files off of it.

I’ve never had this issue before on other distros. I just came from Bazzite yesterday and placed all my most important stuff on that hard-drive before moving here. Now that I’m here, I was ready to transfer the stuff to their new respective locations. But I can’t do it yet because the transfer speed has become abysmal, presumably because of the administrator requirement to access the files. It’s not worth waiting either, because while transferring, I sometimes get errors. I already tried cut/pasting over a few videos to Home, and got errors. They’re possibly corrupted now, I’m not entirelely sure yet, because the speed is so slow that opening them up to see if the videos have issues takes too long.


Linux Storage is the name I have given my hard drive.

Relevant information
Hardware:
CPU: AMD Ryzen 5 3600
GPU: AMD Radeon RX 6600
MB: MSI MPG B550 Gaming Edge WiFi

1 Like

please post the output from

lsblk -ao path,label,uuid,fstype

with the drive plugged in.

Okay, is /media/mandriva/Linux Storage considered the path, and is /dev/sdb1 considered the label? Sorry, I’ve forgotten some of the terminology for disks.


This is where I got that info from.

So would my command be:
lsblk -ao /media/mandriva/Linux Storage, /dev/sdb1, uuid, fstype ?

Just guessing on your username:group so change it if needed.

sudo chown liam:liam /dev/sdb1

BTW you didn’t have to edit the lsblk command. Just run as it is.

Oh, really? Well, in that case here you go:

1 Like

From the screenshot, it appears that your username is mandriva, so copy and paste this into the command line and run it.

sudo chown mandriva:mandriva /dev/sdb1

Okay, here is the output:


Well, I put in my password but the terminal didn’t print anything. Was this supposed to give me constant access to the HDD in dolphin?

1 Like

That should be all you needed.

I am not sure why you are using a different username on this system. This will have a lot to do with file permissions. The new system should have the same username as the old system if you want to bring all the files over.

I still get the same as in the very first screenshot even after doing this command.

I made my username mandriva when I installed the system from the live USB. Is that an issue?

1 Like

Yes. The username is a big issue. It should be the same as the old system, because all the files have the permissions for the old user.

I would start over. Re-install with the old username.

No, no. I didn’t copy over the whole Home folder to the Linux Storage drive or anything. I just copied some specific folders of stuff I wanted to keep, and the stuff found in Documents, Downloads, Pictures etc.

So stuff like games, photos, recordings etc. No system files that need special permissions. I did this when switching from Pop!_OS to Bazzite last year, and from Manjaro to Pop!_OS the year before that in 2023.

1 Like

I understand that, but Linux file permissions are tied to every file. Check any file on the USB drive and see the owner/group. This cannot change easily. The easy way out is start over.

Screenshot_20250215_063932

If you insist on changing your username, then you will have to chown recursively to get the permissions to every single file on the drive. This will take a few minutes.

sudo chown -R mandriva:mandriva /dev/sdb1

I find this terrifying.

My HDD is internal, it’s not an external USB one.

When looking in the properties like in your screenshot, there is no name next to “User:”.

I already wiped my Bazzite installation from my main drive (which is an SSD btw) once I knew I had all the files I needed on the Linux Storage HDD. I wiped it by installing OpenMandriva in order to overwrite it.

I can’t remember what username I used on Bazzite now because I hadn’t used the command-line in a while and I didn’t think it was important to keep note of that. I think the username might have been something like “bazzite”, but I can’t remember now. It could have been “liam” too, I’m not sure.

What exactly is the issue that is caused by making my username “mandriva”?

Your username is the name you login to the computer with. Linux sets file permissions for that user. Every time you change that username, the permissions are still set for the old user.

Look at the properties of multiple files on the USB drive and see what the Owner is, like I showed in the screenshot above.

Owner
This is what the properties look like on every file I checked on the HDD. User is blank and Group is “lusers”

You will have to Act as Administrator to see who the owner is. This is the problem you will have with every file on that drive.

The only reason I can access the files right now is because I am acting as administrator. I did that by clicking the “Act as Administrator” button shown in the very first screenshot and entering my administrator password. So what you see in properties in the last screenshot is what is shown to me while I’m acting as an administrator.

I’ve changed my username going from distro-to-distro before, so why would it only be a problem now?

I can’t sit here and do a full explanation of Linux file system permissions. It is not a simple thing and I am no expert.

I don’t know how you managed to do this before. I wasn’t there to see it. I have used my first name as my username for 2 decades and I see no reason to change it.

Since you are deadset on sticking with what you have, I am terrified that I will be held responsible if this doesn’t work, but here goes.

sudo chown -R mandriva:mandriva /dev/sdb1