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

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

English Edit question
Ubuntu util-linux Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :

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.

Revision history for this message
Maninder Singh (maninder) said :

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.

Revision history for this message
actionparsnip (andrew-woodhead666) said :

sudo usermod -a -G groupname username

Revision history for this message
Maninder Singh (maninder) said :

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

Revision history for this message
Maninder Singh (maninder) said :

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.