On Monday 06 March 2006 01:24, Panagiotis Sidiropoulos wrote:
> > You should be able to get almost all of it from /proc normal users have
> > read-only privileges there, it's basically a case of reading files to get
> > the information you want.
>
> This is a very simple and interesting approach.
> I checked suggested folder and found alot of files most of them having
> very promising names but no content, zero length. I only found
> information regarding network card at /sys/class/net/eth0 or eth1.
>
> Is there any way to unveil it's contents?
> Is this folder structure common to all linux dstributions?
>
/proc is a feature of the linux kernel so it´s common to all distributions, at 
least if the kernel is a post 2.0 release, there are only a very small number 
of special case distro´s like tomsrtbt that still uses anything older.
Proc is a VIRTUAL filesystem - technically ALL those files are empty as their 
content is maintained by the kernel on-access.
Root can change kernel settings by piping values into them, e.g 
echo "1" > /proc/bus/ide/hdd/autolock
To prevent cdrom drive locking (obviously the exact path will depend on your 
drive laout) and people can read values by cat´ing from them. However I think 
you cannot directly read them with file handles because the filesystem is 
virtual and you have to use a pipe to read through. 


Ciao
A.J.

-- 
"80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so."
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com       | +27 82 726 5103 (South Africa)
http://www.silentcoder.co.za    | +55 118 162 2079 (Brazil)

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to