how to lock a partition of internal hard disk or give permission to other users to access some partitions of hard disk

Asked by Maninder Singh on 2013-07-01

In ubuntu i some one login as guest then to access the files on hard disk ,guest requried the password of adminstrator .
If administrator give password to guest user then guest user get access to all the files and hard disk partition.

Is their any way to setup setting such a way that guest can get access only to some partitions or files?
Is their any method to lock the specific partition of hard disk to stop guest to open it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2013-07-04
Last query:
2013-07-04
Last reply:
2013-07-02

Put the users in groups. Then add the partitions in /etc/fstab and give the group ownership to the relevant group. Also chown then data so that again, only users in a certain group get access. You now have control over who can se what data via group membership. You can do the same in Windows.

Maninder Singh (maninder) said : #2

actionparsnip please tell how to put user in groups.
can i put guest in user group or i have to create another user and then put them in groups.

sudo usermod -a -G groupname username

Maninder Singh (maninder) said : #4

i not understand what you say. Please explain more how to add user to groups.i am using ubuntu 12.04LTS

Maninder Singh (maninder) said : #6

i add the user accounts to the groups and try to edit the permission of the groups but i do not got the desired result

but afte that i got following solution:---------

I got the solutions for managing premission by installing sofwares

I have tried mount manager and storage device manager for mangaing the partition.

Both software are good but storage device manager is easy while mountmanager have more functionalities.

those software not provide access to guest user but provide access to specific partitions to other user account.