LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MX linux - Change permissions on a drive (https://www.linuxquestions.org/questions/linux-software-2/mx-linux-change-permissions-on-a-drive-4175673609/)

DanceMan 04-20-2020 06:09 PM

MX linux - Change permissions on a drive
 
Trying to move my Pale Moon profile to another computer. Copy and paste blocked by permissions.

Donor computer has my user name permission. USB drive has root permission. Cannot find any method in all the MX programs to change permissions on a drive. Could not even find a way to format the thumb drive -- had to take it to a Windows computer.

BW-userx 04-20-2020 06:24 PM

Code:

sudo chown userName:group
sudo chmod 775 -R

one or the other.

DanceMan 04-20-2020 06:58 PM

Thanks. I'll keep that for next time. I was somehow able to open something (and I've been hunting around so many places I can't remember) as root and managed to copy and paste the profile over. However I have some files on a usb hdd that were transferred while on Mint that are tied to root ownership and I will eventually have to change permissions or ownership of them.

ondoho 04-22-2020 07:47 AM

Quote:

Originally Posted by BW-userx (Post 6113928)
Code:

sudo chown userName:group
sudo chmod 775 -R

one or the other.

Definitely not the latter for a browser profile (making all files executable, is simply asking for malware execution).
The 'chown' should most probably be executed recursively, i.e.
Code:

cd /to/misbehaving/partition
sudo chown -R DanceMan:Danceman .


BW-userx 04-22-2020 08:17 AM

Quote:

Originally Posted by ondoho (Post 6114451)
Definitely not the latter for a browser profile (making all files executable, is simply asking for malware execution).
The 'chown' should most probably be executed recursively, i.e.
Code:

cd /to/misbehaving/partition
sudo chown -R DanceMan:Danceman .


765 .. nonetheless you're most likely more right, I just do that on occasion, to a blank data drive with root permissions. no home drive, a data drive I might put executable's on , ie scripts.

a look up on permissions octal
https://chmodcommand.com/chmod-765/


All times are GMT -5. The time now is 11:09 PM.