Only administrator can access second internal hard drive.

Erwin Krisch
Erwin Krisch used Ask the Experts™
on
I am running Linux Mint 19.2 on my desktop. I also installed a second internal hard drive. I want to create a second user account (which I know how to do), but set up the system in such a way so that only the administrator (my account) can access this second hard drive. The second user should only be able to access the hard drive on which Linux is installed. Can anybody tell me how to do this? I need step by step instructions, please.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
Commented:
One either hard drive you will have some directory (or directories) which you will set as...

chown -R user1:user1 /disk2/dir
chmod 700 /disk2/dir

chown -R user2:user2 /disk1/dir
chmod 700 /disk1/dir

Open in new window


This way only each user can access these directories.

This seems fairly simple, so my guess is you're asking some other question I'm missing.

Likely best to use real directory + user names, as this might provide additional info to better answer your question.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial