how to manage premission for user group for internal harddisk partitions

Asked by Maninder Singh

someone suggest me that for managing permission for accessing the partitions of hard disk you should add users to group and now i have found from askubuntu.com that how to add user to groups.

But i not get the way how to add permissions for users in such a way that they not have access to specific hard disk partition but they have access to other partition without use of admin password?

after mounting partition in admin user when i go to properties and then to permission and their try to change the premissions something like access to files/folder and groups then when i change the groups and going to save it automatically changed to previous setting before i can save?

i am using ubuntu 12.04 LTS

so please tell how to manage the permission for user for access to hard disk partitions?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Maninder Singh
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can add the options in /etc/fstab so that the access is set when the partition is mounted.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

The option : defaults
should do the trick for everyone has access to a specific partition without the need of root password.

Example

/dev/sda2 /media/shared ext4 defaults 0 0

Now, about the other concern of yours, there are 3 type of access. Read-Write-Execute. Which of them you want to NOT have other users ? Here you can "play" with the mount point. First, change the owner to you.

sudo chown /media/mountpoint

Then AFTER you mount the partition to that mountpoint, you can change the permissions for a set of users that belong to a group.
eg: You can remove the write permission or even read permission in some files.

Regards
 NikTh

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

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.