Czy cdrecord może działac bez roota i inne problemy
Michal Kochanowicz
michal w michal.waw.pl
Sob, 20 Kwi 2002, 20:38:15 CEST
On Sat, Apr 20, 2002 at 04:49:38PM +0200, Olgierd Pieczul wrote:
> czy jakis miesiac temu nie pisalem ze wystarczy dodac usera do grupy, a
> tej gupie dac prawo do zapisu do /dev/nagrywarka?
Mam tak zrobione, i to nic nie daje. Poniżej strace:
5906 execve("/usr/bin/cdrecord", ["cdrecord", "-dummy", "-multi", "-v", "-"], [/* 38 vars */]) = 0
5906 uname({sys="Linux", node="wieszak", ...}) = 0
5906 brk(0) = 0x807603c
5906 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
5906 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
5906 open("/etc/ld.so.cache", O_RDONLY) = 3
5906 fstat(3, {st_mode=S_IFREG|0644, st_size=41490, ...}) = 0
5906 old_mmap(NULL, 41490, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
5906 close(3) = 0
5906 open("/lib/libc.so.6", O_RDONLY) = 3
5906 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\10\333"..., 1024) = 1024
5906 fstat(3, {st_mode=S_IFREG|0755, st_size=1198916, ...}) = 0
5906 old_mmap(NULL, 1215040, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
5906 mprotect(0x4013f000, 43584, PROT_NONE) = 0
5906 old_mmap(0x4013f000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11d000) = 0x4013f000
5906 old_mmap(0x40146000, 14912, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40146000
5906 close(3) = 0
5906 munmap(0x40016000, 41490) = 0
5906 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
5906 setrlimit(RLIMIT_NOFILE, {rlim_cur=109, rlim_max=1024}) = 0
5906 fstat(0, {st_mode=S_IFIFO|0600, st_size=4096, ...}) = 0
5906 brk(0) = 0x807603c
5906 brk(0x80761bc) = 0x80761bc
5906 brk(0x8077000) = 0x8077000
5906 open("/etc/cdrecord.conf", O_RDONLY) = 3
5906 fstat(3, {st_mode=S_IFREG|0644, st_size=781, ...}) = 0
5906 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
5906 _llseek(3, 0, [0], SEEK_SET) = 0
5906 read(3, "#ident @(#)cdrecord.dfl\t1.2 00/0"..., 4096) = 781
5906 close(3) = 0
5906 munmap(0x40016000, 4096) = 0
5906 open("/etc/cdrecord.conf", O_RDONLY) = 3
5906 fstat(3, {st_mode=S_IFREG|0644, st_size=781, ...}) = 0
5906 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
5906 _llseek(3, 0, [0], SEEK_SET) = 0
5906 read(3, "#ident @(#)cdrecord.dfl\t1.2 00/0"..., 4096) = 781
5906 close(3) = 0
5906 munmap(0x40016000, 4096) = 0
5906 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
5906 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
5906 write(1, "Cdrecord 1.10 (i686-pc-linux-gnu"..., 73) = 73
5906 fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
5906 write(1, "TOC Type: 3 = CD-ROM XA mode 2\n", 31) = 31
5906 mlockall(MCL_CURRENT|MCL_FUTURE) = -1 EPERM (Operation not permitted)
5906 write(2, "cdrecord: Operation not permitte"..., 67) = 67
5906 write(2, "cdrecord: WARNING: This causes a"..., 65) = 65
5906 sched_get_priority_max(0x2) = 99
5906 sched_setscheduler(0, 0x2, 0xbfffdba8) = -1 EPERM (Operation not permitted)
5906 write(2, "cdrecord: Operation not permitte"..., 68) = 68
5906 getpid() = 5906
5906 setpriority(PRIO_PROCESS, 5906, -20) = -1 EACCES (Permission denied)
5906 write(2, "cdrecord: Permission denied. WAR"..., 79) = 79
5906 write(2, "cdrecord: WARNING: This causes a"..., 65) = 65
5906 msgget(IPC_PRIVATE, 0x801000|0) = 224387
5906 msgsnd(224387, {5906, 0x4}, 384, MSG_NOERROR|IPC_NOWAIT|0xbfffc368) = 0
5906 msgctl(224387, IPC_RMID, 0) = 0
5906 msgctl(224387, MSG_STAT, 0) = -1 EPERM (Operation not permitted)
5906 write(2, "cdrecord: Operation not permitte"..., 79) = 79
5906 munmap(0x40016000, 4096) = 0
5906 _exit(1) = ?
--
--= Michal Kochanowicz==--==--==BOFH==--==--==michal w michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!
Więcej informacji o liście dyskusyjnej pld-users-pl