Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Impossible to give "write" permission on a sub folder

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Marc77
Posts: 3
Joined: 2021-11-25 14:17

Impossible to give "write" permission on a sub folder

#1 Post by Marc77 »

Hello to all,

I have a dual boot PC with Windows 10 and Debian 11

This PC has 2 drives, one SSD that has both operating systems and a HDD where I store all other files (documents, music, images, ...)

The goal is to share this HDD between Windows and Debian. To do it, I added the following line to the fstab file:

Code: Select all

UUID=ACB23705B236D414   /mnt/windows    ntfs-3g defaults,umask=000    0   0

the folders lount without any problem to /mnt/windows, all with the correct permission settings (rwx) :

Code: Select all

$ ls -l /mnt/windows/
total 80
drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN'
drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation
drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents
-rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp
drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images
drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music
drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information'
drwxrwxrwx 1 root root 40960 21 nov. 22:22 Downloads
drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos

My problem is that in some sub folders, I'm not getting the write ("w") permission. For example on the "Documents" one:

Code: Select all

$ ls -l /mnt/windows/Documents/
total 117
drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1
-rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp
-rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini
dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2
drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public
drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3
dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan
-rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db
drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote'

Most of the folders are OK, but I ave User2 and San that doesn't have the write ("w") permission...

Do you have any idea on whats going on?

Thanks in advance for all the help,

Berst regards,
Marc

User avatar
Uptorn
Posts: 205
Joined: 2022-01-22 01:07
Has thanked: 171 times
Been thanked: 43 times

Re: Impossible to give "write" permission on a sub folder

#2 Post by Uptorn »

ntfs-3g has to handle file permissions by translating Windows ACL. It might be worth having a look at the permissions and user mapping portions of ntfs-3g docs.

Post Reply