hddtemp dla userów
Krystian Tomczyk
krystian w kamionek.net
Sob, 23 Cze 2007, 22:48:02 CEST
Dnia 23-06-2007, sob o godzinie 09:33 +0200, Ĺukasz MaĹko napisaĹ(a):
> A co do strace, to dostajemy coĹ takiego:
>
> $ strace hddtemp /dev/hda
> execve("/usr/sbin/hddtemp", ["hddtemp", "/dev/hda"], [/* 41 vars */])
> = -1
> EACCES (Permission denied)
Tobie chyba strace pokazaĹ, Ĺźe nie moĹźesz uruchomiÄ hddtemp.
Ja robiĹem stace'a tak:
$ strace -o hddtemp-us.txt /usr/sbin/hddtemp /dev/hda
Wynik w zaĹÄ
czniku. Najbardziej podejrzane róşnice w stosunku do
uruchomionego z roota to (pierwsze z usera, drugie z roota):
< ioctl(3, 0x30d, 0xbf8a00a8) = 0
< ioctl(3, 0x31f, 0xbf8a029c) = -1 EACCES (Permission
denied)
< ioctl(3, 0x31f, 0xbf8a029c) = -1 EACCES (Permission
denied)
< ioctl(3, 0x31f, 0xbf8a02a4) = -1 EACCES (Permission
denied)
---
> ioctl(3, 0x30d, 0xbfc3ec38) = 0
> ioctl(3, 0x31f, 0xbfc3ee2c) = 0
> ioctl(3, 0x31f, 0xbfc3ee34) = 0
> ioctl(3, 0x31f, 0xbfc3ec30) = 0
Ale i tak nie wiem co dalej...
--
Pozdrawiam
Krystian T.
"errare humanum est..."
-------------- następna część ---------
execve("/usr/sbin/hddtemp", ["/usr/sbin/hddtemp", "/dev/hda"], [/* 34 vars */]) = 0
brk(0) = 0x8050000
uname({sys="Linux", node="laptom", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83456, ...}) = 0
mmap2(NULL, 83456, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb3000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2a\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1241884, ...}) = 0
mmap2(NULL, 1246704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e82000
mmap2(0xb7fad000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b) = 0xb7fad000
mmap2(0xb7fb0000, 9712, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fb0000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e81000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e80000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e81b50, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "o\275N\304", 4) = 4
close(3) = 0
mprotect(0xb7fad000, 4096, PROT_READ) = 0
mprotect(0xb7fe3000, 4096, PROT_READ) = 0
munmap(0xb7fb3000, 83456) = 0
rt_sigaction(SIGSEGV, {0x804c417, [ILL BUS], SA_RESTORER|SA_ONESHOT|SA_SIGINFO, 0xb7eaca20}, NULL, 8) = 0
rt_sigaction(SIGILL, {0x804c417, [BUS SEGV], SA_RESTORER|SA_ONESHOT|SA_SIGINFO, 0xb7eaca20}, NULL, 8) = 0
rt_sigaction(SIGBUS, {0x804c417, [ILL SEGV], SA_RESTORER|SA_ONESHOT|SA_SIGINFO, 0xb7eaca20}, NULL, 8) = 0
brk(0) = 0x8050000
brk(0x8071000) = 0x8071000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=809024, ...}) = 0
mmap2(NULL, 809024, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7dba000
close(3) = 0
open("/dev/hda", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, SCSI_IOCTL_GET_BUS_NUMBER, 0xbf8a04f8) = -1 EINVAL (Invalid argument)
ioctl(3, 0x30d, 0x804e3a0) = 0
ioctl(3, 0x30d, 0x804e3a0) = 0
open("/usr/share/misc/hddtemp.db", O_RDONLY) = 4
read(4, "#\n# Insert a regular expression "..., 1024) = 1024
read(4, "0A 19.9GB\n# SEAGATE ST330610A 29"..., 1007) = 1007
read(4, "################################"..., 1016) = 1016
read(4, "2080AH\"\n\n\"FUJITSU MPF3204AH\"\t\t19"..., 984) = 984
read(4, "B cache\"\n\"HDS722525VLAT80\"\t\t194 "..., 961) = 961
read(4, "C\t\"Hitachi Travelstar 4K40 40GB "..., 1000) = 1000
read(4, "r 16GP serie\"\n\n# according to sp"..., 988) = 988
read(4, "][02468]0AVV[AN]07*\"\t194 C\t\"IBM"..., 1015) = 1015
read(4, "\"Maxtor 5A300J0\"\n\"Maxtor 5T0[24]"..., 996) = 996
read(4, "reball CT10 20GB\"\n# I suspect th"..., 978) = 978
read(4, "SP0822N\"\t\t\t\t\t194 C\t\"Samsung SP0"..., 1015) = 1015
read(4, "\t\t\t\t0 C\t\"Seagate ST310210A\"\n\""..., 1013) = 1013
read(4, "ate U Series 40810 (40Gb, Ultra "..., 997) = 997
read(4, "B\"\n\"ST3120023A\"\t\t\t\t194 C\t\"Seaga"..., 971) = 971
read(4, "4 C\t\"Seagate Barracuda 7200.8 P"..., 1006) = 1006
read(4, "\"\n\"TOSHIBA MK3021GAS\"\t\t\t194 C\t\""..., 977) = 977
read(4, " AC420400D\"\t\t\t\t\t\t\t231 C \"Western"..., 1020) = 1020
read(4, "tern Digital Caviar 40GB Special"..., 981) = 981
read(4, "\t\t\t\t194 C \"Western Digital 800BB"..., 1002) = 1002
read(4, "\t194 C \"Western Digital Caviar 1"..., 998) = 998
read(4, "\t\t\t\t\t194 C \"Western Digital Cavi"..., 1002) = 610
read(4, "", 1024) = 0
close(4) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=26494, ...}) = 0
mmap2(NULL, 26494, PROT_READ, MAP_SHARED, 4, 0) = 0xb7fc1000
close(4) = 0
brk(0x8092000) = 0x8092000
brk(0x80b3000) = 0x80b3000
brk(0x80d4000) = 0x80d4000
brk(0x80f5000) = 0x80f5000
brk(0x8116000) = 0x8116000
brk(0x8137000) = 0x8137000
ioctl(3, 0x30d, 0xbf8a00a8) = 0
ioctl(3, 0x31f, 0xbf8a029c) = -1 EACCES (Permission denied)
ioctl(3, 0x31f, 0xbf8a029c) = -1 EACCES (Permission denied)
ioctl(3, 0x31f, 0xbf8a02a4) = -1 EACCES (Permission denied)
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=2871, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fc0000
read(4, "# Locale name alias data base.\n#"..., 4096) = 2871
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7fc0000, 4096) = 0
open("/usr/share/locale/pl_PL.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/pl_PL.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/pl_PL/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/pl.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/pl.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/pl/LC_MESSAGES/libc.mo", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=133783, ...}) = 0
mmap2(NULL, 133783, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d99000
close(4) = 0
open("/usr/lib/gconv/ISO8859-2.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\3\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=9512, ...}) = 0
mmap2(NULL, 12316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7d95000
mmap2(0xb7d97000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1) = 0xb7d97000
close(4) = 0
close(3) = 0
write(2, "/dev/hda: Brak dost\304\231pu\n", 24) = 24
exit_group(0) = ?
Więcej informacji o liście dyskusyjnej pld-users-pl