Wish you a good day!
I want to mount a folder with type ntfs or ext2 or ext4 in order to set permissions for files in that.
This is how I did:
tudinh@Acoustic:~$ sudo mount --bind -v -t ext2 -o umask=0022,gid=1004,uid=1001 /media/tudinh/Data/Downloads/oracledb /oracledb
And this is the results, type set to
none instead of
/media/tudinh/Data/Downloads/oracledb on /oracledb type none (rw,bind,umask=0022,gid=1004,uid=1001)
- I set
-o umask=0022,gid=1004,uid=1001because I want to grant all permission to user 1001 and group 1004. Pls tell me if this is not correct.
/media/tudinh/Data/Downloads/oracledbis a folder in NTFS partition. (yes, I install Ubuntu along with Windows)
/oracledbis the mount point I created in
My final purpose is to grant full permissions to user 1001 and group 1004 to all files within