I need to mount an EXT4 partition at startup but not for all users, only for my user.

If it's possible (I'm sure it is) I would like to deny all permissions from that partition for the other users.

link|improve this question
Do the other users have root access? If so, then all bets are off. – Zoredache Sep 24 '11 at 10:42
No, I only have root privileges – Nahuel Garbezza Sep 24 '11 at 16:20
feedback

1 Answer

After mounting the partition (let say /mnt/mypart), change the owner of the mount point so that your user (let say myuser) is the owner

$ sudo chown myuser:root /mnt/mypart

and give the permission to this user to access this partition using chmod:

$ sudo chmod 700 /mnt/mypart

Doing this, only myuser and root will be able to access this partition. The partition has to be mounted when you are executing these commands.

link|improve this answer
+1. The most obvious way :D – grawity Sep 24 '11 at 6:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.