![]() |
| | #1 |
| Registered User Join Date: Oct 2006
Posts: 263
| Equivalent to volume serial number in linux |
| Elkvis is offline | |
| | #2 |
| Registered User Join Date: Mar 2003
Posts: 3,844
| There's "scsi_id" for non-ata drives... gg |
| Codeplug is offline | |
| | #3 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,379
| Is it really appropriate to authenticate clients with host characteristics? What sort of system is this where the user doesn't matter in the authentication process?
__________________ "Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot |
| brewbuck is online now | |
| | #4 | |
| Registered User Join Date: Oct 2006
Posts: 263
| Quote:
as a workaround, I get the output of "uname -a" and hash it down to a 32-bit quantity and use that. it is not quite as unique as a volume serial number, but at least it doesn't change over time without a change of kernel. | |
| Elkvis is offline | |
| | #5 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,379
| Newer Linux distributions allow you to mount drive partitions by "volume ID" -- these IDs will be visible in the /etc/fstab file. You might try checking there.
__________________ "Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot |
| brewbuck is online now | |
| | #6 |
| Registered User Join Date: Oct 2006
Posts: 263
| no such luck in this case. can you think of any other data that I can readily get from the system that is as unique as a volume serial number, aside from hostname and MAC? |
| Elkvis is offline | |
| | #7 |
| and the hat of vanishing Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,214
| You could do several things when you first run the program, and store the results in a file somewhere. - the 32-bit time of when the program was run. - the 32-bit value composed of the pid() and parent pid() of the registration task. - the 32-bit uptime at that moment. Or just use a uuid generator uuid_generate(3): create new unique UUID value - Linux man page
__________________ If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. Up to 8Mb PlusNet broadband from only £5.99 a month! |
| Salem is offline | |
| | #8 |
| Registered User Join Date: Dec 2006
Posts: 1,780
| Code: sudo vol_id --uuid /dev/sda1 |
| cyberfish is offline | |
| | #9 |
| Registered User Join Date: Oct 2006
Posts: 263
| |
| Elkvis is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wireless Network Linux & C Testbed | james457 | Networking/Device Communication | 3 | 06-11-2009 11:03 AM |
| Number Guessing | blacknapalm | C Programming | 2 | 10-01-2008 01:48 AM |
| Linux serial port interrupts | danga1993 | Linux Programming | 1 | 04-28-2007 11:15 AM |
| Linux equivalent of con | dwks | Linux Programming | 3 | 11-12-2005 11:58 AM |
| Array of boolean | DMaxJ | C++ Programming | 11 | 10-25-2001 11:45 PM |