LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-26-2021, 03:09 AM   #1
MuadDibIII
LQ Newbie
 
Registered: Nov 2021
Distribution: Debian 11
Posts: 2

Rep: Reputation: Disabled
Impossible to give "write" permission on a sub folder


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:
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:
$ 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:
$ 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 Scan 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
 
Old 11-26-2021, 07:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Try adding "user" to the fstab line.

See about halfway down in this tutorial, under the heading, "The Scarier Stuff": https://www.howtogeek.com/howto/3812...-does-it-work/
 
Old 11-27-2021, 05:23 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
You need to familiarize yourself with the options for writing to ntfs from Linux, using umask, dmask and fmask. See the link below for details.

https://askubuntu.com/questions/4298...-mount-options
 
Old 11-30-2021, 08:44 AM   #4
MuadDibIII
LQ Newbie
 
Registered: Nov 2021
Distribution: Debian 11
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello and thanks for the answers (also sorry for the delay, work issues).

I've tried to change the mounting options on my fstab, but none of them work. What bother me with the mounting options is that all other folders end with the correct write permission, only 2 that breaks for some reason...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
[SOLVED] create sub-folder from folder name and transfer files on the fly BoydRice Linux - General 5 03-07-2012 07:44 PM
[SOLVED] how to set different permission for sub directories of a samba shared folder golden_boy615 Linux - Server 10 12-16-2011 06:54 PM
keep chmod on folder, sub-folder and files Friis Linux - Newbie 2 11-03-2010 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration