Getting hard drive serial number from USB devices
Madison Kelly
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Sat Jan 14 19:17:39 UTC 2006
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.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Madison Kelly (Digimer)
TLE-BU; The Linux Experience, Back Up
Main Project Page: http://tle-bu.org
Community Forum: http://forum.tle-bu.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--
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