LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-31-2006, 01:40 PM   #1
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
smart card reader questions


Using Kubuntu 6.06 with a PQi Travel Flash smart card reader on USB2.

First time I plug it in it shows on my desktop. Unplug then replug, it doesn't show. Why is that? Can I force the system to scan for the drive?

Second, I have created a second user on the system and the reader won't show up there at all. This seems like a problem with permissions, but how do I identify the USB drive to give User 2 permission to read and write?

thx
 
Old 08-01-2006, 06:00 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
for the 1st question:
Did you eject the card? Did you just pull it out or did you use the context menu to eject it then pul it out?

for the 1nd question:
is the user a member of the plugdev group, if not add them to it so they can use the device. Also unless you create a common group for the users and add that to the option in fstab, the card will mount so that only the user that mounted it can use it.
 
Old 08-01-2006, 09:24 AM   #3
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
I had been using the "safely remove" command before pulling the card from the reader.

Both users are members of plugdev. Further, I had created a group called "smartcard", added both users as members, and associated that group with /dev/sdc1 [ the reader ]. As root, I changed the owner to the other user, and even changed the permissions on the command line as root to 0777, and still when I right click on properties, then permissions, it will report the wrong user as owner, and group rw privileges as forbidden.

I have not done an entry in fstab -- I thought I read somewhere fstab entries for USB devices were a bad idea. Do you have an example I can try? ## thanx
 
Old 08-01-2006, 09:44 AM   #4
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
With my card reader, as long as I use "safely remove", another icon comes up on the desktop when another card is inserted. Dose anything show up in (in konqueror) system:/media ?

Normally using fstab for USB devices is a bad idea because the names are assigned in order of detection, but as the card reader is always in and always has the same address it's ok.
changing the permissions on /dev/sdc1 won't help because 1 when the card is removed /dev/sdc1 will disappear and 2 your not accessing the device your accessing the filesystem (to which the permissions are assigned).
You could create a fstab entry like:
Code:
/dev/sdc1 /media/cardreader vfat noauto,users,gid=smartcard 0 0
 
Old 08-01-2006, 10:34 AM   #5
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for all the help; the fstab line did the trick.

Just for the record, the fstab I used was
/dev/sdc1 /media/sdc1 vfat nouato,users,gid=smartcard 0 0

Tested on both user accounts, safely removed and reinserted a few times on each, works fine.

thanks again ...
 
Old 08-01-2006, 10:39 AM   #6
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
http://images.linuxquestions.org/que...ilies/nono.gif typo correction [ for future generations of readers ] :

/dev/sdc1 /media/sdc1 vfat noauto,users,gid=smartcard 0 0


thanx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create new group for smart card reader rastavideo Ubuntu 1 07-30-2006 09:04 PM
Smart Card Reader on Acer 5502 circleback Linux - Laptop and Netbook 1 04-07-2006 10:27 AM
Smart card reader mehro Linux - Software 0 12-06-2005 12:56 AM
Smart card reader (PCI) with open pgp card cracidy Linux - Hardware 0 10-24-2005 02:34 AM
problem with smart card reader pxes351 Linux - Hardware 2 03-07-2005 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration