Solved Changing permissions of folders in Ubuntu 24.04

Solved issue

lymphor

Member
Joined
Jul 16, 2023
Messages
91
Reaction score
47
Credits
897
Hello everybody,
I'm using Ubuntu 24.04 and I'm having issues using some folders, because of permissions. More specifically:

1. aMule sometimes cannot access the temporary folder and gives me this message:
Permissions on the temp directory too strict!
aMule cannot proceed. To fix this, you must set read/write/exec
permissions for the folder '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp'
Attempting to use default directory at location
'/home/lafenice/.aMule/Temp'.
2. I cannot copy files in some folders, this is the message I receive when I try to:
Could not paste files
Permissions do not allow pasting files in this folder

I tried my luck with some commands, but was unsuccesful.
I used
Code:
sudo chown -v lafenice:lafenice /media/lafenice/DATA/DOWNLOADS/"2. eMule - tmp"
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp': Read-only file system
failed to change ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp' from root:root to lafenice:lafenice
and
Code:
sudo chown -R lafenice:lafenice /media/lafenice/DATA/DOWNLOADS/"2. eMule - tmp"
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/002.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/003.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/003.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/003.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/004.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/004.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/004.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/005.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/005.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/006.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/007.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/007.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/007.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/009.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/009.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/009.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/011.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/011.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/011.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/012.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/012.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/012.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/013.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/013.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/013.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/048.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/048.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/053.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/053.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/053.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/068.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/074.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/074.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/074.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/005.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/048.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/082.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/080.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/080.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/080.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/082.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/082.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/083.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/083.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/083.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/085.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/085.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/085.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/087.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/087.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/087.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/089.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/089.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/089.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/090.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/090.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/090.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/014.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/014.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/014.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/175.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/175.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/175.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/019.part': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/019.part.met': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp/019.part.met.bak': Read-only file system
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp': Read-only file system

What else could I try/do?
Thanks!
 


Have you tried chmod?

chmod -R 777 "/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp"

also sometimes if this is a mounted drive, make sure the mount permissions are "rw" not "ro"

( read write, not read only )
 
2024-08-03_15-28.png
 
Have you tried chmod?

chmod -R 777 "/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp"
Hey, thanks for replying me! The command you suggested is giving me the same results, basically a lot of "Read-only file system".

also sometimes if this is a mounted drive, make sure the mount permissions are "rw" not "ro"

( read write, not read only )
It is a mount drive, yes, a NTFS one. Don't know where to change mount permissions, maybe in fstab file? I opened it and it looks like this:
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p5 during curtin installation
/dev/disk/by-uuid/10ee13a5-bc35-42e8-88e2-a8e0c412c538 / ext4 defaults 0 1
# /boot/efi was on /dev/nvme0n1p1 during curtin installation
/dev/disk/by-uuid/FA4D-FBB0 /boot/efi vfat defaults 0 1
/dev/disk/by-uuid/01DADA7CB9415F40 /media/lafenice/SSD2 auto nosuid,nodev,nofail,x-gvfs-show,noauto,x-gvfs-icon=SSD 0 0
/dev/disk/by-uuid/01DADA60D581CC60 /media/lafenice/MUSICA\040&\040VIDEO auto nosuid,nodev,nofail,x-gvfs-show,noauto,x-gvfs-icon=Multimedia 0 0
/dev/disk/by-uuid/01DAD9DA51E5BF00 /media/lafenice/DATA auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-icon=Data 0 0
/dev/disk/by-uuid/54BC56CBBC56A6F0 /media/lafenice/WINDOWS\04011 auto nosuid,nodev,nofail,x-gvfs-show,noauto,x-gvfs-icon=WindowsLogo 0 0
/dev/disk/by-uuid/01D29F1808F76C30 /media/lafenice/FENICE auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-icon=Phoenix1 0 0
/swapfile none swap sw 0 0
 
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp': Read-only file system
It will probably be useful to check what the current permissions are of "/media/lafenice/DATA/DOWNLOADS" when mounted and what filesystem is used?
Code:
ls -l /media/lafenice/DATA/DOWNLOADS
 
It will probably be useful to check what the current permissions are of "/media/lafenice/DATA/DOWNLOADS" when mounted and what filesystem is used?
Code:
ls -l /media/lafenice/DATA/DOWNLOADS
ls -l /media/lafenice/DATA/DOWNLOADS
Code:
total 1021484
drwxrwxrwx 1 root root      4096 Jul 19 20:39 '10 Years with Hayao Miyazaki [2019]'
drwxrwxrwx 1 root root      4096 Jul 20 17:40 '10 Years with Hayao Miyazaki (2019) (ENG)'
drwxrwxrwx 1 root root         0 Jul 19 20:37 '10 Years with Hayao Miyazaki (2019) {tmdb-89764}'
drwxrwxrwx 1 root root   1048576 Aug  2 13:01 '1. eMule - Download'
drwxrwxrwx 1 root root      4096 Aug  1 04:49 '[2020.10.07] NEON GENESIS EVANGELION SOUNDTRACK 25TH ANNIVERSARY BOX [CD][FLAC+CUE+LOG+BK][KICA-2576~80]'
drwxrwxrwx 1 root root     65536 Aug  3 00:42 '2. eMule - tmp'
-rwxrwxrwx 2 root root 520093696 Jul 17 10:32 'Alexandra 2006 (Radu Jude) HDTV ExtremlymTorrents.ws.mkv'
-rwxrwxrwx 2 root root 524388107 Apr 28 00:14 'Alexandra 2006 (Radu Jude) HDTV ExtremlymTorrents.ws.mkv.part'
drwxrwxrwx 1 root root      4096 Jul 19 20:39 'East 17 - 2021 - 24_7 [FLAC]'
drwxrwxrwx 1 root root      4096 Jul 19 20:40 'East 17 Discography'
drwxrwxrwx 1 root root      4096 Jul 19 20:40 'East 17 - Discography 1992-2012 (320)'
drwxrwxrwx 1 root root      4096 Jul 19 20:40 'East 17 - Discography 1992-2012 [FLAC]'
drwxrwxrwx 1 root root      4096 Jul 19 20:41 'East 17 Discography 1993-2012'
drwxrwxrwx 1 root root      4096 Jul 19 20:41 'East 17 Discography 1993-2017'
drwxrwxrwx 1 root root      4096 Jul 19 20:39 'East 17 (FLAC)'
drwxrwxrwx 1 root root      4096 Jul 19 20:40 'East 17 - It'\''s Alright + Remixes (2xCDM) (1993) (lossless-DENnv)'
drwxrwxrwx 1 root root      4096 Jul 19 20:40 'East 17 - Let It Rain + Special Remix CD (2xCD-Maxi) (1995) (lossless-DENnv)'
drwxrwxrwx 1 root root      8192 Jul 19 20:40 'East 17 - The Platinum Collection (2006) FLAC'
drwxrwxrwx 1 root root      4096 Jul 19 20:42  Far.from.Here.2017.1080p.NF.WEBRip.DDP5.1.x264-TEPES
drwxrwxrwx 1 root root      4096 Jul 19 20:42 'Far From Here (2017) [1080p] [WEBRip] [5.1] [YTS.MX]'
drwxrwxrwx 1 root root    262144 Jul 19 20:46 'homemade collection'
drwxrwxrwx 1 root root      4096 Jul 19 20:46 'Imi Este Indiferent Daca In Istorie Vom Intra Ca Barbari 2019 HDTV x264'
drwxrwxrwx 1 root root      4096 Jul 19 20:46 'Meus vídeos'
drwxrwxrwx 1 root root     20480 Jul 19 20:47 'Michael Jackson & Janet Jackson - SWG Extended Mixes (mp3)'
drwxrwxrwx 1 root root     16384 Jul 22 02:31 'Neon Genesis Evangelion (1995) [BluRay.Mux.1080p.AC3.ITA.Dynit.ITA.Netflix.ITA.Netflix.v2.AAC.JPN.Subs.Ita.Eng.v2] by stress'
drwxrwxrwx 1 root root     28672 Aug  2 14:41 'Ronin Warriors'

But I just noticed the issue is widespread, it looks like I cannot copy/modify any file from any drive anymore. And I would like to stress out that I didn't do anything.
 
But I just notice the issue is widespread, looks like I cannot copy/modify any file from any drive anymore. And I would like to stress out that I didn't do anything.
Can you share the output of the following?
Code:
mount  | grep DATA
 
mount | grep DATA
Code:
/dev/nvme0n1p6 on /media/lafenice/DATA type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096,x-gvfs-show,x-gvfs-icon=Data)
 
chown: changing ownership of '/media/lafenice/DATA/DOWNLOADS/2. eMule - tmp': Read-only file system
It doesn't work because your filesystem is read-only so you need to change it to read-write first.

To do this run:
Code:
sudo mount -o remount,rw /media/lafenice/DATA

Then if the above command is success, run chown again and it should work.
 
mount | grep DATA
Code:
/dev/nvme0n1p6 on /media/lafenice/DATA type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096,x-gvfs-show,x-gvfs-icon=Data)
Was this filesystems originally made in Windows?
 
It doesn't work because your filesystem is read-only so you need to change it to read-write first.

To do this run:
Code:
sudo mount -o remount,rw /media/lafenice/DATA

Then if the above command is success, run chown again and it should work.
Thanks, that worked :) I took a radical decision and used the following command to encompass ALL the partition:
Code:
sudo chown -vR lafenice:lafenice /media/lafenice/DATA/
Bye bye root, now I'm the one in control :cool:. I plan to do the same for the other drives/partitions (except the ones where the OSs are stored).

Thank you all!
 
I plan to do the same for the other drives/partitions (except the ones where the OSs are stored).
I think you need to investigate why your filesystems are mounted as read-only because my fix is temporary and won't change subsequent mounts.

Maybe @f33dm3bits 's clue about the driver is the reason, IDK.
 
It doesn't work because your filesystem is read-only so you need to change it to read-write first.
Quite odd because it was already mount rw.
mount | grep DATA
Code:
/dev/nvme0n1p6 on /media/lafenice/DATA type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096,x-gvfs-show,x-gvfs-icon=Data)
So was thinking it could have been a problem with the ntfs driver not being installed.
 
I used the commands suggested by f33dm3bits and I got this output when running sudo apt install ntfs-3g fuse
Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ntfs-3g is already the newest version (1:2022.10.3-1.2ubuntu3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fuse3 : Breaks: fuse
E: Unable to correct problems, you have held broken packages.
 
I used the commands suggested by f33dm3bits and I got this output when running sudo apt install ntfs-3g fuse
Then you can just try doing this.
Code:
sudo umount  /media/lafenice/DATA
sudo mount -t ntfs /dev/nvme0n1p6 /media/lafenice/DATA
Then show the output of the following again?
Code:
mount  | grep DATA
 
Thanks, everything done. How can I check if anything changed?
 
Thanks, everything done. How can I check if anything changed?
try chown again, if it works next step is to update /etc/fstab and tell it how to mount your NTFS drives.

Quite odd because it was already mount rw.
I don't know why but apparently doing changes to filesystems is sure way to tell if it's rw or not.
 

Members online


Top