Live data from Hacker News

Beep security update

debian.org

1–10 of 103 posts

Re: Beep security update

#2
Can't one just

    sudo echo -e "\7” 
anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

Re: Beep security update

#4
post #2

Can't one just sudo echo -e "\7” anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

Nitpick: on my machine, that's:

    sudo echo -e "\07"

Re: Beep security update

#5
post #2

Can't one just sudo echo -e "\7” anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

Why would that need root? Is it not up to your terminal emulator to interpret the \7 and trigger the actual beep?

Re: Beep security update

#7
post #2

Can't one just sudo echo -e "\7” anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

I guess the whole point of setuid is that no, you can't always "just sudo" :-)

Re: Beep security update

#9
post #2

Can't one just sudo echo -e "\7” anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

Yes, it tries to do fancy things with ioctl().

Re: Beep security update

#10
post #2

Can't one just sudo echo -e "\7” anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.

Why would that need root? Is it not up to your terminal emulator to interpret the \7 and trigger the actual beep?

See the "A note about ioctl" section of the README: https://github.com/johnath/beep
Post reply on HN