Recently sound does not play as root

2023-03-19 Thread Eyal Lebedinsky
Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo) and in it I play a sound paplay /audio/ogg/beginning.ogg and it always worked.

Re: Recently sound does not play as root

2023-03-20 Thread Samuel Sieb
On 3/19/23 23:22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo) and in it I play a sound paplay /audio/

Re: Recently sound does not play as root

2023-03-20 Thread Felix Miata
Samuel Sieb composed on 2023-03-20 00:31 (UTC-0700): > You shouldn't. Why are you trying to do that? If the superuser can't do something, how can a mere mortal user be expected to do same? When the superuser determines *everything* works as expected is time enough to create the first regular u

Re: Recently sound does not play as root

2023-03-20 Thread Roberto Ragusa
On 3/20/23 07:22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo) and in it I play a sound paplay /audio/o

Re: Recently sound does not play as root

2023-03-20 Thread Tim via users
Samuel Sieb: >> You shouldn't. Why are you trying to do that? Felix Miata: > If the superuser can't do something, how can a mere mortal user be expected > to do > same? When the superuser determines *everything* works as expected is time > enough > to create the first regular user. That's *NOT

Re: Recently sound does not play as root

2023-03-20 Thread stan via users
On Mon, 20 Mar 2023 17:22:57 +1100 Eyal Lebedinsky wrote: > Fedora 36 up-to-date. > > $ uname -a > Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC > Fri Mar 3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux > > I have a script running as root (using sudo) and in it I pla

Re: Recently sound does not play as root

2023-03-20 Thread Felix Miata
Tim via users composed on 2023-03-20 20:28 (UTC+1030): > Felix Miata: >> If the superuser can't do something, how can a mere mortal user be expected >> to do >> same? When the superuser determines *everything* works as expected is time >> enough >> to create the first regular user. ... > Set up

Re: Recently sound does not play as root

2023-03-20 Thread Jeffrey Walton
On Mon, Mar 20, 2023 at 4:11 AM Felix Miata wrote: > > If the superuser can't do something, how can a mere mortal user be expected > to do > same? When the superuser determines *everything* works as expected is time > enough > to create the first regular user. This can actually happen under SEL

Re: Recently sound does not play as root

2023-03-20 Thread Tim via users
On Mon, 2023-03-20 at 12:33 -0400, Felix Miata wrote: > Everyone who reports use of root user doesn't need yet another lecture > instead of > an answer to a question asked. Everyone who asks to do stupid things, and advises others to do stupid things, needs told otherwise. Your longevity at doin

Re: Recently sound does not play as root

2023-03-20 Thread Eyal Lebedinsky
On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo) and in it I play a sound paplay /audi

Re: Recently sound does not play as root

2023-03-20 Thread Samuel Sieb
On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo)

Re: Recently sound does not play as root

2023-03-20 Thread Eyal Lebedinsky
On 21/03/2023 15.29, Samuel Sieb wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I

Re: Recently sound does not play as root

2023-03-20 Thread Samuel Sieb
On 3/20/23 21:37, Eyal Lebedinsky wrote: On 21/03/2023 15.29, Samuel Sieb wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 U

Re: Recently sound does not play as root

2023-03-20 Thread Jeffrey Walton
On Tue, Mar 21, 2023 at 12:38 AM Eyal Lebedinsky wrote: > [...] > > There used to be an environment variable that pointed to the pulseaudio > > socket, but that seems to have changed (at least in F37). Check that the > > XDG_RUNTIME_DIR variable is set. It wasn't when I tested going through >

Re: Recently sound does not play as root

2023-03-20 Thread Joe Zeff
On 03/20/2023 10:13 PM, Eyal Lebedinsky wrote: My current solution is to run the affected script as my non-root user and in it run some parts with sudo (set up to run without a sudo password to avoid script interruption). Although I don't approve of habitually running as root, I have a sugg

Re: Recently sound does not play as root

2023-03-20 Thread Eyal Lebedinsky
Thanks Joe, On 21/03/2023 16.02, Joe Zeff wrote: On 03/20/2023 10:13 PM, Eyal Lebedinsky wrote: My current solution is to run the affected script as my non-root user and in it run some parts with sudo (set up to run without a sudo password to avoid script interruption). Although I don't app

Re: Recently sound does not play as root

2023-03-20 Thread ToddAndMargo via users
On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo)

Re: Recently sound does not play as root

2023-03-21 Thread Eyal Lebedinsky
On 21/03/2023 17.50, ToddAndMargo via users wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU

Re: Recently sound does not play as root

2023-03-21 Thread Barry
> On 21 Mar 2023, at 08:52, Eyal Lebedinsky wrote: > >  >> On 21/03/2023 17.50, ToddAndMargo via users wrote: >>> On 3/20/23 21:13, Eyal Lebedinsky wrote: >>> On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc

Re: Recently sound does not play as root

2023-03-21 Thread ToddAndMargo via users
On 3/21/23 01:04, Eyal Lebedinsky wrote: On 21/03/2023 17.50, ToddAndMargo via users wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  3

Re: Recently sound does not play as root

2023-03-21 Thread Eyal Lebedinsky
On 22/03/2023 13.57, ToddAndMargo via users wrote: On 3/21/23 01:04, Eyal Lebedinsky wrote: On 21/03/2023 17.50, ToddAndMargo via users wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.

Re: Recently sound does not play as root

2023-03-21 Thread ToddAndMargo via users
On 3/21/23 21:32, Eyal Lebedinsky wrote: On 22/03/2023 13.57, ToddAndMargo via users wrote: On 3/21/23 01:04, Eyal Lebedinsky wrote: On 21/03/2023 17.50, ToddAndMargo via users wrote: On 3/20/23 21:13, Eyal Lebedinsky wrote: On 20/03/2023 17.22, Eyal Lebedinsky wrote: Fedora 36 up-to-date

Re: Recently sound does not play as root

2023-03-21 Thread Joe Zeff
On 03/21/2023 11:14 PM, ToddAndMargo via users wrote: Try running your script with su instead:     su root -c "script" You only need the quotation marks if what you're sending to su has spaces in it. HTH, HAND. ___ users mailing list -- users@list

Re: Recently sound does not play as root

2023-03-22 Thread ToddAndMargo via users
On 3/21/23 23:03, Joe Zeff wrote: On 03/21/2023 11:14 PM, ToddAndMargo via users wrote: Try running your script with su instead: su root -c "script" You only need the quotation marks if what you're sending to su has spaces in it.  HTH, HAND. Or the script has parameters added to the en

Re: Recently sound does not play as root

2023-03-22 Thread Patrick O'Callaghan
On Tue, 2023-03-21 at 22:14 -0700, ToddAndMargo via users wrote: > I hate the sudo command.  I never use it. > > Try running your script with su instead: > su root -c "script" You might want to explain your reasoning here. These two things are not equivalent, and saying you "hate the sudo co

Re: Recently sound does not play as root

2023-03-22 Thread Barry Scott
> On 21 Mar 2023, at 22:57, Barry wrote: > >> Tried it and this does not work for me. Does it work for you? > > Being the users is sufficient. You have to be in the user session that has > the sound system daemons runn8ng. Opp I meant to say: Being the users is NOT always sufficient. > > O

Re: Recently sound does not play as root

2023-03-22 Thread ToddAndMargo via users
On 3/22/23 04:21, Patrick O'Callaghan wrote: On Tue, 2023-03-21 at 22:14 -0700, ToddAndMargo via users wrote: I hate the sudo command.  I never use it. Try running your script with su instead: su root -c "script" You might want to explain your reasoning here. These two things are not eq

Re: Recently sound does not play as root

2023-03-22 Thread Go Canes
On Wed, Mar 22, 2023 at 12:33 AM Eyal Lebedinsky wrote: > [...] > Doing this works: > $ su > # su eyal -c "ogg123 ... > but doing this does not: > $ sudo -i > # su eyal -c "ogg123 ... > nor does this: > $ sudo -i > # sudo -u eyal "ogg123 ... > > So '

Re: Recently sound does not play as root

2023-03-22 Thread Patrick O'Callaghan
On Wed, 2023-03-22 at 04:42 -0700, ToddAndMargo via users wrote: > On 3/22/23 04:21, Patrick O'Callaghan wrote: > > On Tue, 2023-03-21 at 22:14 -0700, ToddAndMargo via users wrote: > > > I hate the sudo command.  I never use it. > > > > > > Try running your script with su instead: > > >   su r

Re: Recently sound does not play as root

2023-03-22 Thread George N. White III
On Wed, Mar 22, 2023 at 8:42 AM ToddAndMargo via users < users@lists.fedoraproject.org> wrote: > On 3/22/23 04:21, Patrick O'Callaghan wrote: > > On Tue, 2023-03-21 at 22:14 -0700, ToddAndMargo via users wrote: > >> I hate the sudo command. I never use it. > >> > >> Try running your script with s

Re: Recently sound does not play as root

2023-03-22 Thread Patrick O'Callaghan
On Wed, 2023-03-22 at 07:47 -0400, Go Canes wrote: > On Wed, Mar 22, 2023 at 12:33 AM Eyal Lebedinsky > wrote: > > [...] > > Doing this works: > >     $ su > >     # su eyal -c "ogg123 ... > > but doing this does not: > >     $ sudo -i > >     # su eyal -c "ogg123 ... > > nor does

Re: Recently sound does not play as root

2023-03-22 Thread ToddAndMargo via users
On 3/22/23 05:19, George N. White III wrote: On Wed, Mar 22, 2023 at 8:42 AM ToddAndMargo via users mailto:users@lists.fedoraproject.org>> wrote: On 3/22/23 04:21, Patrick O'Callaghan wrote: > On Tue, 2023-03-21 at 22:14 -0700, ToddAndMargo via users wrote: >> I hate the sudo com

Re: Recently sound does not play as root

2023-03-22 Thread Michael Hennebry
Even if OP aka root can be convinced of the evil(1) of his ways, he will likely want to know why something that used to work suddenly quit. My guess is that the answer lies with whatever was "updated" recently, but I have no special sound expertise. (1) clearly evil, not just error -- Michael

Re: Recently sound does not play as root

2023-03-25 Thread Francis . Montagnac
Hi On Mon, 20 Mar 2023 23:02:20 -0600 Joe Zeff wrote: > Years ago I created a little script to play an .mp3 as a wake-up alarm, but > there was a little problem. I have my box set to turn itself back on after > a power drop if it was on before, but if it happens late at night, I won't > be logg