简体   繁体   中英

How do I mount a specific folder within my external harddrive in fstab?

The reason I want to do this is because I know ntfs format does not support chmod and I need specific directories with specific permission. How would I do this?

fstab only allows me to specify drives, for example /dev/sda1

I cannot do /dev/sda1/someDirectory

Is there a way around this?

One possibility, if you just have a couple of directories usable by certain users and hidden to others is to mount the device somewhere only root can reach (ie the mount point should be in a directory owned by root and with search permissions only for owner). Then bind-mount the important subdirectories to mount points with appropriate access for your target users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM