My computer has two hard drives. Ubuntu is installed on the first drive and the second drive (i.e. /dev/sda1) will be used by many users to store data. What is a proper way to mount this drive? That is, how can I mount this drive so it would satisfy all the following criteria?
- The drive must be named "Drive2"
- It would appear under the main drive as indicated in the figure below (and if possible, not as a mounted drive on a folder in the root directory, e.g. /Drive2).
- All users would have access to it.
- Each user would get a folder with their username (there are more than 30 users, so I hope this can be done automatically).
The following is not a requirement and I don't know if it is possible. If it is, I am very curious to know how would one set up this drive for the following two separate cases:
- non-sudo and sudo users can only view their own content.
- sudo users can view everyone's content but non-sudo users can only view their own content.
To clarify, I am not just asking how to mount a drive, but I am also looking for insights for systematic and secure file management system for secondary or external hard drives.
non-sudo and sudo users can only view their own content
mean exactly?/
will somewhere in/home/$USER
be ok?/home/$USER
? How does this affect all users? Does this automatically take care of criteria #4?