Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi folks,
USB Flash Drive (Pen Drive)
Avixe Platinum DrivePlease advise how to add authenication on the drive so that other users can't mount it without password. I searched its manual on
http://www.avixe.com/support.aspThey have instruction for adding password for Windows. I can't find it for Linux.
TIA
B.R.
satimis

http://www.tldp.org/HOWTO/Cryptoloop-HOWTO/index.html
http://www.tldp.org/HOWTO/Disk-Encryption-HOWTO/index.html

Hi 3Dave,
Tks for your links. Are there other simple ways. I just want to lock the device so that other users can't mount it, not to encrypt the files inside.
Besides is there a way to help me out of the non functioning of "Images On/Off" device. All history now disappear.
Tks
B.R.
satimis

By default ordinary users shouldn't be able
to mount devices unless stated so
in /etc/fstab. If the regular user tries to
mount it you should get:
$ mount -t vfat /dev/sda1
~/mountpoint
mount: only root can do that

Hi 3Dave,
On screen any user can mount the Flash Drive with right-click --> mount
Files can be read and copied but could not re-saved back to the Flash Drive.

It's being mounted read only for non root users. just for kicks try adding this to fstab:
/dev/sdaDEV# /mnt/MOUNTPOINT auto noauto 0 0
DEV# is one if theres no other usb drives or scsi drives
MOUNTPOINT is where it mounts (duh) :PThat should stop the automounting.
Nothing's broken until you choose not to fix it.

Hi ccpeterman,
Tks for your advice.
The USB Flash Drive won't be mounted automatically. The PC only detects it. If deleting "users" on /etc/fstab then I myself can't mount it on desktop. I must start a console as root to mount the Drive. Then it becomes a little bid complicate. I must start all applications as root to work on the files there.
I read "Avixe" site they have a software for Windows (I think a short script working on GUI) whenever you try to change to Flash Drive a window popup requesting for password. But I can't find a package for Linux.
B.R.
satimis

Check to see if the groups "usb" or "plugdev" exist if they do, remove users who shouldn't have acces to the jumpdrive from those groups.
gpasswd -d username plugdev
gpasswd -d username usbNothing's broken until you choose not to fix it.

What file system is the drive formatted to?
You can always try mounting it with
umask=xxx, uid=xxx or gid=xxx to allow a
specific user or group access.

Hi 3Dave
I suppose "root" still can mount the USB Flash Drive. Before I came across some discussion on Internet. A folk needed to exclude "root" accessing a specfic file on a device. Finally no conclusin was reached.
I'm thinking writing a simple bash script to control mounting the Flash Drive with password similar to the existing software for Windows on the manufacturer's website. I trust it is possible. I don't need GUI. I'll start searching later.
Tks
satimis

That's the difference between *nix root and
windoze administrator....root can do
anything! Encrypting the file system would
be one way of stopping root from reading the
contents...the other would be to keep the
flash drive in the users pocket until they
wanted to use it!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |