I have an internal 8tb harddrive which I want it to be mounted to all users on my machine some of the users are local and some are ldap users.
I've created a folder called 8tb in /media/8tb
Then I added the below to /etc/fstab
/dev/sda /media/8tb ext4 user,defaults 0 1
Now I wonder how to make this drive mounted to all users?
man mount
: users Allow any user to mount and to unmount the filesystem.user
option from the line in/etc/fstab
. Otherwise you should changeuser
tousers
, and add something to the login processes (where to do so depends on how your users log in, but you also have to hook into something that also allows you to hook into the logout process) that does the (un)mounting - and if you need to support several users logged in at the same time, some extra bookkeeping is needed.bash: /media/8tb/myprogramfolder/myprogram : Permission denied
Any advice?