Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1680  / 1 Year ago, wed, may 10, 2023, 1:29:52

I have workstation with 160GB HDD capacity.

I have partitioned it with:




  1. 40GB -- for OS(Ubuntu) Installation

  2. 40GB -- for my personal data, and

  3. 80GB -- for all other (public) data.



I have installed Ubuntu 11.04 on 1st partition.



Confusion : How can i make 2nd partition (Personal data) visible and accessible to me (and root, of course) only.

All other programs and files need to be accessed by all the users, but those 40GB must be accessible to me (my account) and root.

How can I achieve this (or some alternate)?



Note : If referring to any link, then make sure it's easy to understand as I am very (very) new to Ubuntu.


More From » security

 Answers
2

It's rather easy to do: set the directory where your disc is mounted to your username and usergroup. Only users that are that username or are part of that usergroup and of course root will have access. So lets assume you gave this disc (during installation) a mountpoint called /discworld/. Log in with your admin-user and do...



 sudo chown $USER:$USER /discworld/


... and any other user should get an permissions error when trying to access this disc.



(where $USER needs to be replaced for the username you want this for unless it is the admin-user)



Sidenote:



If you did not add a mountpoint during installation you can add one to /etc/fstab. If you got questions about how to do that ... search AU first and if no good results are found ask a question about it ;-)


[#43667] Wednesday, May 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
reangi

Total Points: 213
Total Questions: 102
Total Answers: 114

Location: Namibia
Member since Wed, Jan 19, 2022
2 Years ago
;