LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2010, 02:20 PM   #1
HelpMe2877
Member
 
Registered: May 2008
Location: USA
Distribution: CentOS, RHEL, Windows
Posts: 54

Rep: Reputation: 15
pam_usb login w/ usb stick in ubuntu


Hello,

what i'm trying to do is set up a ubuntu system that will lock and unlock itself by unplugging and plugging in a pen drive. i found a ubuntu forum that shows you how but i'm getting stuck in the beginning. its a fresh install of 10.04 LTS and i updated it. the instructions that i'm following are from http://ubuntuforums.org/showthread.php?t=17571&page=2 starting on post #18. i then install the modules from apt-get just fine, but get hung up on 'sudo pamusb-conf --add-device DeviceNickname' with the error "No Devices Detected". for DeviceNickname, i've tried TEAM (default name of pen drive), test, /media/TEAM, and /dev/sdb. i've even tried "....-device=test" format for each preceding option as i've seen suggested, but to no avail. am i missing something or doing something wrong?

thanks in advance!
 
Old 07-25-2010, 06:33 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by HelpMe2877 View Post
i then install the modules from apt-get just fine, but get hung up on 'sudo pamusb-conf --add-device DeviceNickname' with the error "No Devices Detected".
Apparently did not find any devices. When your USB stick is plugged in
- what does 'sudo fdisk -l' show?
- Which device is the stick at?
- Does syslog or 'dmesg' show any errors or clues after you plugged in the stick?
- What does 'sudo pamusb-conf -v -c /etc/pamusb.conf -d Stick' say?
- Or run this to enumerate USB devices:
Code:
#!/bin/bash --
for udi in $(/usr/bin/hal-find-by-capability --capability storage)
do
    device=$(hal-get-property --udi $udi --key block.device)
    vendor=$(hal-get-property --udi $udi --key storage.vendor)
    model=$(hal-get-property --udi $udi --key storage.model)
    if [[ $(hal-get-property --udi $udi --key storage.bus) = "usb" ]]
    then
        parent_udi=$(hal-find-by-property --key block.storage_device --string $udi)
        mount=$(hal-get-property --udi $parent_udi --key volume.mount_point)
        label=$(hal-get-property --udi $parent_udi --key volume.label)
        media_size=$(hal-get-property --udi $udi --key storage.removable.media_size)
        printf "\"$vendor $model\" \"$label\" $device $mount\n"
    fi
done | tr -s " "; exit 0
(BTW also note old http://bugs.debian.org/cgi-bin/pkgre...e=pamusb-tools which seems to be pointing to HAL.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running ubuntu from usb stick, can't connect to internet wdhpr Linux - Newbie 2 02-09-2010 08:36 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 04:56 PM
How to reformat a USB stick in Ubuntu izquierdista Ubuntu 6 07-10-2007 01:46 PM
avm WLAN USB-stick (Ubuntu 6.10) annuzzer Linux - Wireless Networking 1 11-27-2006 05:32 PM
usb-stick Problems-ubuntu mihalisla Ubuntu 5 08-29-2006 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 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