[vorbis] Transcoding listening test

Greg Wooledge greg at wooledge.org
Mon Aug 6 15:47:59 PDT 2001


Paul Jarc (prj at po.cwru.edu) wrote:
> Greg Wooledge <greg at wooledge.org> writes:
> > Hongli Lai (hongli at telekabel.nl) wrote:
> >> mv music.mp3 /dev/audio.

> > Do *NOT* do that.  Or at least, not as root -- as a user, you should just
> > get an error message.  As root, you'll end up overwriting your /dev/audio
> > character device with a regular file, and you'll be wondering how to put
> > it back....

> /dev/audio might be writable by non-root users.  But regardless, you
> won't lose the device file unless /dev is writable (only for root)
> *and* music.mp3 is on the same filesystem (very unlikely).

jekyll:~$ touch foo.mp3
jekyll:~$ su
Password: 
jekyll# ls -l $PWD/foo.mp3 /dev/audio
crw-rw----    1 root     audio     14,   4 May 27  1997 /dev/audio
-rw-rw-r--    1 greg     greg            0 Aug  6 18:45 /home/greg/foo.mp3
jekyll# df . /dev/audio
Filesystem           1k-blocks      Used Available Use% Mounted on
dwarf:/home            1981710   1529170    350104  82% /home
/dev/audio               39007     29872      7121  81%
jekyll# mv foo.mp3 /dev/audio
jekyll# ls -l $PWD/foo.mp3 /dev/audio
ls: /home/greg/foo.mp3: No such file or directory
-rw-rw-r--    1 greg     greg            0 Aug  6 18:45 /dev/audio

jekyll# rm /dev/audio
jekyll# mknod /dev/audio c 14 4
jekyll# chmod 660 /dev/audio
jekyll# chown root:audio /dev/audio
jekyll# ls -l /dev/audio
crw-rw----    1 root     audio     14,   4 Aug  6 18:46 /dev/audio
jekyll# exit
exit


-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |



<HR NOSHADE>
<UL>
<LI>application/pgp-signature attachment: stored
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/octet-stream
Size: 241 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20010806/457a6130/part.obj


More information about the Vorbis mailing list