1

My pen drive is very important to me. I have a 32GB one, with Ubuntu 12.04 on it. On then pen drive, I created two partitions; one ext4 for Ubuntu (5GB) and the other partition is fat32, so that windows can access it too, with restrictions.

Windows users without my permission can't see nor modify anything in my fat32 partition. However, when I boot from my pen drive and log in with guest account, I can see the fat32 partition and do whatever with it, delete it if i want.

I just want to restrict access to that particular pen drive (only for the guest account). I also don't want to disable the guest account, because if somebody boots from my pen drive and just want to check mail or save an image from the Internet to their own pen drive, they need to be able to see/mount their pen drive.

Jorge Castro
  • 73,717
Fresco
  • 101

3 Answers3

1

It is important to understand that these permissions are only enforced when the version of ubuntu on the pen drive is running. If I were to connect this pen drive to another computer I would be able to read any data on the pen drive, regardless of the permissions set in the file system.

If someone else has physical access to the pen drive, only encryption of the contents will give you any protection. (Note that this applies to a desktop computer too - if someone has physical access then they can remove the hard disk and examine its entire contents on another machine, or boot from their own USB stick - the operating system only enforces permissions on files when it is running).

You might want to look at a cross-platform encryption tool like TrueCrypt to store your data.

chronitis
  • 12,647
0

Select contains of your drive. right click on it choose permissions. You can remove or give permission for data to any user or you also for read, write or execution of your data.

KK Patel
  • 19,753
0

http://www.ubuntugeek.com/ubuntu-tiphow-to-disable-guest-account-in-ubuntu-12-04precise.html

The link allows you to disable the guest access feature in Ubuntu to such that you could prevent access. You are good to go now...

guntbert
  • 13,475
aRvInD
  • 1