Re: sudo / su with GUI apps - ?

2022-01-18 Thread Roberto Ragusa
On 1/12/22 9:38 PM, lejeczek via users wrote: On 11/01/2022 19:54, C Linus Hicks wrote: Making some assumptions about your requirements: 1. Make sure xauth is installed 2. Your DISPLAY environment variable is likely: ":0" - just verify it is set 3. Run the command: "xauth list" 4. Copy the line

Re: sudo / su with GUI apps - ?

2022-01-14 Thread Samuel Sieb
On 1/11/22 11:54, C Linus Hicks wrote: Making some assumptions about your requirements: 1. Make sure xauth is installed 2. Your DISPLAY environment variable is likely: ":0" - just verify it is set 3. Run the command: "xauth list" 4. Copy the line that has "/unix:", all three parts 5. Use su - or

Re: sudo / su with GUI apps - ?

2022-01-12 Thread lejeczek via users
On 11/01/2022 19:54, C Linus Hicks wrote: Making some assumptions about your requirements: 1. Make sure xauth is installed 2. Your DISPLAY environment variable is likely: ":0" - just verify it is set 3. Run the command: "xauth list" 4. Copy the line that has "/unix:", all three parts 5. Use su

Re: sudo / su with GUI apps - ?

2022-01-12 Thread Tim via users
Hi L, > How do you get your Firefox to run/work with different user? > I'm thinking obvious - sudo, su - kind of 'runas' with > windows OS. Seeing as no-one has said this, yet: *** Running things as root is ill-advised. *** While running a file manager as root to deal with some user file permi

Re: sudo / su with GUI apps - ?

2022-01-11 Thread linux guy
For root run GUI apps in KDE, I use kdesu. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ L

Re: sudo / su with GUI apps - ?

2022-01-11 Thread C Linus Hicks
Making some assumptions about your requirements: 1. Make sure xauth is installed 2. Your DISPLAY environment variable is likely: ":0" - just verify it is set 3. Run the command: "xauth list" 4. Copy the line that has "/unix:", all three parts 5. Use su - or sudo to get an interactive session for a

Re: sudo / su with GUI apps - ?

2022-01-11 Thread Joe Zeff
On 1/11/22 10:32 AM, Robert Moskowitz wrote: Kludge I have used for some apps, notably my file browser to run as root is to: in Terminal su - run app from prompt with & to release it from Terminal. Kind of works. I use Xfce and have this one liner to run Thunar as root: beesu - thunar Thi

Re: sudo / su with GUI apps - ?

2022-01-11 Thread lejeczek via users
On 11/01/2022 17:32, Robert Moskowitz wrote: On 1/11/22 12:23, lejeczek via users wrote: Hi guys. How do you get your Firefox to run/work with different user? I'm thinking obvious - sudo, su - kind of 'runas' with windows OS. Kludge I have used for some apps, notably my file browser to

Re: sudo / su with GUI apps - ?

2022-01-11 Thread Robert Moskowitz
On 1/11/22 12:23, lejeczek via users wrote: Hi guys. How do you get your Firefox to run/work with different user? I'm thinking obvious - sudo, su - kind of 'runas' with windows OS. Kludge I have used for some apps, notably my file browser to run as root is to: in Terminal su - run app fr

Re: sudo su

2017-05-30 Thread Rick Stevens
On 05/29/2017 12:17 PM, fred roller wrote: > >> On 05/27/2017 10:12 PM, fred roller wrote: >>> you could run "who" to see if the root user is still logged > on as well. >> >> I have a terminal open, logged in as root with su -. When I > ran who, it >> just showed me, logged in once and no root.

Re: sudo su

2017-05-29 Thread fred roller
> On 05/27/2017 10:12 PM, fred roller wrote: >> you could run "who" to see if the root user is still logged on as well. > > I have a terminal open, logged in as root with su -. When I ran who, it > just showed me, logged in once and no root. Checking with uptime, it > shows one user. I never hea

Re: sudo su

2017-05-28 Thread Samuel Sieb
On 05/28/2017 01:04 AM, Tom H wrote: On Sat, May 27, 2017 at 10:05 PM, Tom Horsley wrote: Nope, completely myth, and here's why: "sudo su -l" is absolutely the fastest and most efficient way to get a root login shell where the PATH is set correctly "-i" is faster than "su -l" :) Hey, I lea

Re: sudo su

2017-05-28 Thread Peter Gueckel
Tom Horsley wrote: > On Sat, 27 May 2017 21:36:29 -0600 > Peter Gueckel wrote: > >> Now, I wonder about $PATH: what is the correct value "to find the >> programs that root needs"? > > Well, root tends to have /sbin which "normal" users don't > have by default. There may be others, also there ca

Re: sudo su

2017-05-28 Thread Ahmad Samir
On 28 May 2017 at 15:16, Tom Horsley wrote: > On Sat, 27 May 2017 21:36:29 -0600 > Peter Gueckel wrote: > >> Now, I wonder about $PATH: what is the correct value "to find the >> programs that root needs"? > > Well, root tends to have /sbin which "normal" users don't > have by default. That's not

Re: sudo su

2017-05-28 Thread Peter Gueckel
Joe Zeff wrote: > On 05/27/2017 10:12 PM, fred roller wrote: >> you could run "who" to see if the root user is still logged on as well. > > I have a terminal open, logged in as root with su -. When I ran who, it > just showed me, logged in once and no root. Checking with uptime, it > shows o

Re: sudo su

2017-05-28 Thread Tom Horsley
On Sat, 27 May 2017 21:36:29 -0600 Peter Gueckel wrote: > Now, I wonder about $PATH: what is the correct value "to find the > programs that root needs"? Well, root tends to have /sbin which "normal" users don't have by default. There may be others, also there can be aliases and such in root's .b

Re: sudo su

2017-05-28 Thread Tom H
On Sun, May 28, 2017 at 5:24 AM, Paul Allen Newell wrote: > > Correcting my off-list post by cc-ing back to the list ... once again, my > apologies No harm done, no apologies necessary :) ___ users mailing list -- users@lists.fedoraproject.org To unsubs

Re: sudo su

2017-05-28 Thread Paul Allen Newell
On 05/28/2017 02:21 AM, Paul Allen Newell wrote: On 05/28/2017 01:40 AM, Tom H wrote: You replied off-list On Sun, May 28, 2017 at 4:16 AM, Paul Allen Newell wrote: On 05/28/2017 01:04 AM, Tom H wrote: "-i" is faster than "su -l" :) huh? sudo -i is faster than sudo su -l Apologies f

Re: sudo su

2017-05-28 Thread Tom H
On Sat, May 27, 2017 at 10:05 PM, Tom Horsley wrote: > > Nope, completely myth, and here's why: "sudo su -l" is absolutely > the fastest and most efficient way to get a root login shell > where the PATH is set correctly "-i" is faster than "su -l" :) __

Re: sudo su

2017-05-27 Thread Joe Zeff
On 05/27/2017 10:12 PM, fred roller wrote: you could run "who" to see if the root user is still logged on as well. I have a terminal open, logged in as root with su -. When I ran who, it just showed me, logged in once and no root. Checking with uptime, it shows one user. __

Re: sudo su

2017-05-27 Thread Joe Zeff
On 05/27/2017 08:36 PM, Peter Gueckel wrote: Now, I wonder about $PATH: what is the correct value "to find the programs that root needs"? Here's root's path on my box: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin ___ users mailing list

Re: sudo su

2017-05-27 Thread Cameron Simpson
On 27May2017 21:36, Peter Gueckel wrote: OK, thanks, guys. I was just curious. Well, closing a terminal emulator should normally sent SIGHUP to processes still on the terminal. Which may or may not exit (most will). And then there's job control and "disown"ed jobs (things you've asked to con

Re: sudo su

2017-05-27 Thread fred roller
you could run "who" to see if the root user is still logged on as well. On Sat, May 27, 2017 at 11:36 PM, Peter Gueckel wrote: > OK, thanks, guys. I was just curious. > > Yes, I do have my system set up not to require the password for > sudo. It is faster than constantly having to type it, time

Re: sudo su

2017-05-27 Thread Peter Gueckel
OK, thanks, guys. I was just curious. Yes, I do have my system set up not to require the password for sudo. It is faster than constantly having to type it, time and again. System installation is hell without it ;-) Now, I wonder about $PATH: what is the correct value "to find the programs that

Re: sudo su

2017-05-27 Thread Samuel Sieb
On 05/27/2017 07:05 PM, Tom Horsley wrote: On Sat, 27 May 2017 18:48:06 -0700 Joe Zeff wrote: First, running sudo su is redundant if you know the root password, as I presume you do. (It's your system, you installed it and assigned the root password.) In fact, the only reason to use sudo at al

Re: sudo su

2017-05-27 Thread Tom Horsley
On Sat, 27 May 2017 18:48:06 -0700 Joe Zeff wrote: > First, running sudo su is redundant if you know the root password, as I > presume you do. (It's your system, you installed it and assigned the > root password.) In fact, the only reason to use sudo at all is if you > don't know the root pas

Re: sudo su

2017-05-27 Thread Joe Zeff
On 05/27/2017 06:09 PM, Peter Gueckel wrote: I opened a second tab in konsole and immediately ran sudo su to obtain a prompt as root. I ran a program and then I forgot to exit and just closed the tab. Am I still root somewhere? Or did closing the tab do the same thing as a proper exit? First, r

Re: sudo su

2017-05-27 Thread stan
On Sat, 27 May 2017 19:09:59 -0600 Peter Gueckel wrote: > I opened a second tab in konsole and immediately ran sudo su to > obtain a prompt as root. I ran a program and then I forgot to > exit and just closed the tab. Am I still root somewhere? Or did > closing the tab do the same thing as a p