According to this table, my permissions should be ok to read and write:
The umask is the default for files and folders, if you want to customize files and folders’s permissions you should use fmask and dmask same use as the umask.
The mask permissions are not like the octal permission codes passed to the chmod command, however this table is really helpful understanding how the masks permissions work :
0 1 2 3 4 5 6 7
r + + + + - - - -
w + + - - + + - -
x + - + - + - + -
It works as the normal octal permissions but subtracted from 7, and use the absolute value. for instance if you want to set the permissions to 0777 you will need to set it 0000 in the umask(e.g. umask=0000), if you want to set it to 0755 you will set it to 0022 :
- The first character represents that its an octal permissions
- The second is for the owner
- The third is the group
- The fourth is for other, i.e any other user
According to this, I changed my umask to 0011 and fmask to 0011 (or to 011/011) but it’s only locked my partition. I think no need to say chown, chmod didn’t does anything for the NTFS.
P.S. do I need to optimize my fstab parameters e.g. add “defaults” etc?
To begin with, you talk about “my permissions”. I do not know who’s you mean with that.
As you may know NTFS has no user/group ownership, nor permission bits. Thus they are faked by the NTFS software. That software should thus be fed with the owning user, the owning group and the permission bits to be used.
You have not specified an owning user in your fstab entry (no uid=…) and thus the uid of the current process (which is the mount process) is used. Which is root.
You have specified the group ownership as gid=users. But users is a group name, not a gid. I am not sure using a group name will work (I stick to what the man page says), but using the gid is more sure IMHO.
fmask=133 means that all regular files willl (as the maximum) have rw-r–r-- as permission bits. Or: all can read, but only the owner (root) can write.
dmask=022 means that all directories will (as the maximum) have rwxr-xr-x as permission bits. Which means that everebody can read the directory and get information from the inodes. Only the owner (root) can write to the directory i.e. remove, rename and create files in it.
You can of course check which user, group. permission bits are active by doing (as root)
ls -l
somewhere in that file system.
Now it depends on what you want which of those parameters is wrong or not. In any case please do not talk about “me” and “I”, because the system does not know any “me” and “I”. The systems knows uid, gid and the user names and group names attached to them.
Sorry, I have to correct a few things. The fmask= and dmask = are mentioned for fat, but not for ntfs. For ntfs the man page says:
uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else.
Also there is no locale= (nowhere in the whole of the man page), but there is for ntfs
I read that NTFS can’t be configured with detailed permissions. It’s my HDD for multimedia (video, music etc) without kind of secrets so I’d like to set it to use “free for all”. Now I can’t even create a folder without root (or to use Transmission with it).
To begin with, you talk about “my permissions”
First I tried to use
sudo chmod psijic
sudo chown 777/755
to change my account’s permissions for adding dirs,files. Useless. Nothing changes.
So, I need to set in /etc/fstab right parameters, right?
I do not think this is an answer to my suggestions. You can of course not change ownership and/or permissions on an ntfs file system, because they are not there. There are only the faked ones. And you can (and should) set those faked ones.
When you want to offer all permission for all users, then of course use
umask=000
and remove those fmask and dmask, because they are not valid for ntfs as I told you above.
I any case, I do not understand at all why you use an ntfs for this. Why not ext4 or xfs?
Are you exchanging this file system with a Windows system?
Windows legacy. The whole HDD is 1.5TB so it can’t be formatted for a long time. It’s a second drive so I don’t have problems to use it as media storage.
I have only one OS