Getting hard drive serial number from USB devices

Paul Sutton zen14920-1HOZaDBbGgxaa/9Udqfwiw at public.gmane.org
Sat Jan 14 20:49:06 UTC 2006


Thanks

paul
Madison Kelly wrote:

> Paul Sutton wrote:
>
>> Cool that works fine on my system, i had to run it as root though,  
>> anyway,  I have a routine somewhere that checks to see if you are 
>> logged in as root but that is a bash script,  is there anything 
>> similar in perl that can be added to this?
>>
>> is 755 the correct permissions for this? IIRC the answer is yes.  but 
>> anyone got any other suggestions that would be useful.
>>
>> Paul
>
>
> From my installer script:
>
> if ( $< ne "0" )
> {
>     die "I am sorry but this install script must be run by the root!";
> }
>
> Madison
>
> PS - Yes, 755 is a good permission and yes, it needs to be run as root.
>

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list