Computing.Net > Forums > Linux > To lock USB Flash Dr with password

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

To lock USB Flash Dr with password

Reply to Message Icon

Name: satimis
Date: February 26, 2006 at 21:06:27 Pacific
OS: FC3
CPU/Ram: Athlon1.4/512MB
Comment:

Hi folks,

USB Flash Drive (Pen Drive)
Avixe Platinum Drive

Please 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.asp

They have instruction for adding password for Windows. I can't find it for Linux.

TIA

B.R.
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: February 27, 2006 at 00:29:20 Pacific
Reply:

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


0

Response Number 2
Name: satimis
Date: February 27, 2006 at 00:50:55 Pacific
Reply:

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


0

Response Number 3
Name: 3Dave
Date: February 27, 2006 at 03:35:11 Pacific
Reply:

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


0

Response Number 4
Name: satimis
Date: February 27, 2006 at 03:56:32 Pacific
Reply:

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.


0

Response Number 5
Name: ccpeterman
Date: February 27, 2006 at 09:47:21 Pacific
Reply:

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) :P

That should stop the automounting.

Nothing's broken until you choose not to fix it.


0

Related Posts

See More



Response Number 6
Name: satimis
Date: February 27, 2006 at 18:32:41 Pacific
Reply:

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


0

Response Number 7
Name: ccpeterman
Date: February 27, 2006 at 20:07:59 Pacific
Reply:

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 usb

Nothing's broken until you choose not to fix it.


0

Response Number 8
Name: 3Dave
Date: February 28, 2006 at 02:36:29 Pacific
Reply:

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.


0

Response Number 9
Name: satimis
Date: February 28, 2006 at 04:25:54 Pacific
Reply:

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


0

Response Number 10
Name: 3Dave
Date: February 28, 2006 at 04:39:22 Pacific
Reply:

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!


0

Response Number 11
Name: satimis
Date: February 28, 2006 at 04:41:15 Pacific
Reply:

Hi ccpeterman,

usb and plugdev do not exist on /etc/group

tks.

B.R.
satimis


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: To lock USB Flash Dr with password

How to format usb drive www.computing.net/answers/linux/how-to-format-usb-drive/28511.html

Transfer to NTFS USB drive www.computing.net/answers/linux/transfer-to-ntfs-usb-drive/24518.html

How to access USB Device in LINUX 8 www.computing.net/answers/linux/how-to-access-usb-device-in-linux-8/22130.html