Re: sudo / su with GUI apps - ?

2022-01-18 Thread Roberto Ragusa
splay): 9. Type "add" and then paste the line you copied from step 4 10. Type "exit" command from xauth 11. Firefox should now be able to use the display, and your addition is persistent oughh.. It turns out that export XAUTHORITY=... is redundant and I had it in .bash_prof

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
the line you copied from step 4 10. Type "exit" command from xauth 11. Firefox should now be able to use the display, and your addition is persistent oughh.. It turns out that export XAUTHORITY=... is redundant and I had it in .bash_profile of my 'regular', sudo/su f

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

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
t;exit" command from xauth 11. Firefox should now be able to use the display, and your addition is persistent On Tue, 2022-01-11 at 17:23 +, lejeczek via users wrote: > Hi guys. > > How do you get your Firefox to run/work with different user? > I'm thi

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 f

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 Termina

sudo / su with GUI apps - ?

2022-01-11 Thread lejeczek via users
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. many thanks, L ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an em

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

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 su

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

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 su

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 > do

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

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 sam

sudo su

2017-05-27 Thread Peter Gueckel
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? ___ users

Re: su or sudo su?

2010-10-26 Thread Patrick O'Callaghan
On Tue, 2010-10-26 at 18:02 +1030, Tim wrote: > On Mon, 2010-10-25 at 19:34 -0700, James McKenzie wrote: > > You cannot cure or eliminate stupid > > Yes, intelligence has it's limits, but stupidity knows no bounds. "Only two things are infinite, the universe and human stupidity, and I'm not s

Re: su or sudo su?

2010-10-26 Thread Tim
On Mon, 2010-10-25 at 19:34 -0700, James McKenzie wrote: > You cannot cure or eliminate stupid Yes, intelligence has it's limits, but stupidity knows no bounds. -- Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- users mailing

Re: su or sudo su?

2010-10-25 Thread James McKenzie
On 10/18/10 3:09 PM, Tim wrote: > Over the years I've tried Red Hat Linux, Fedora, CentOS, one of the > BSDs, DeliLinux, Mandrake, Suse, Caldera, and Ubuntu. Might have forget > one or two more. None of them did. > Most modern UNIX/Linux Distros default to /root or /home/root. However, users ar

Re: su or sudo su?

2010-10-19 Thread Tom H
On Tue, Oct 19, 2010 at 11:55 AM, Todd Zullinger wrote: > Tom H wrote: >> "sudo -i" = "sudo su -" > > Just a minor nit, they're not entirely equivalent.  Not all > environmental vars are reset.  PS1 is one that I noticed.  (Like I > said, a minor

Re: su or sudo su?

2010-10-19 Thread Todd Zullinger
Tom H wrote: > "sudo -i" = "sudo su -" Just a minor nit, they're not entirely equivalent. Not all environmental vars are reset. PS1 is one that I noticed. (Like I said, a minor nit. ;) -- ToddOpenPGP -> KeyID: 0xBEAF0CE

Re: su or sudo su?

2010-10-19 Thread Tom H
On Tue, Oct 19, 2010 at 9:49 AM, James Mckenzie wrote: > Tomas Hajek wrote: >>I have to disagree with "sudo su - is stupid." > Given all of the information in this thread and rethinking my position, I > have to agree. > You can block this if needed in the sudo

Re: su or sudo su?

2010-10-19 Thread Tom H
On Tue, Oct 19, 2010 at 9:20 AM, Tomas Hajek wrote: > > I suppose if "sudo su -" asks for roots password ("Defaults targetpw" in > sudoers for > instance) like opensuse seems to do, I might consider that stupid but it > probably is > there for a reason

Re: su or sudo su?

2010-10-19 Thread Tom H
On Tue, Oct 19, 2010 at 8:22 AM, Craig White wrote: > On Mon, 2010-10-18 at 10:05 -0600, Petrus de Calguarium wrote: >> When I need root access, I used to use sudo su -. Recently, I discovered I >> could simply type su -. >> >> What's the difference: >> &g

Re: su or sudo su?

2010-10-19 Thread James Mckenzie
Tomas Hajek wrote: (BTW, I know that I'm breaking threads, don't complain to me, complain to Earthlink.) > >I have to disagree with "sudo su - is stupid." > Given all of the information in this thread and rethinking my position, I have to agree. You can block this

Re: su or sudo su?

2010-10-19 Thread Tomas Hajek
I have to disagree with "sudo su - is stupid." If it serves a purpose (as it does for me and others I work with) then I don't see it as being stupid. Can I use "su -", sure I can but then I have to remember roots password (do I know it yes, am I allowed to work a

Re: su or sudo su?

2010-10-19 Thread Tsvetomir Totev
Hmm, I think $ sudo -i and your account password will give you root access on Ubuntu. On Debian sudo is not allowed by default. $ sudo su - is stupid. On Tue, Oct 19, 2010 at 3:22 PM, Craig White wrote: > On Mon, 2010-10-18 at 10:05 -0600, Petrus de Calguarium wrote: > > When I

Re: su or sudo su?

2010-10-19 Thread Craig White
On Mon, 2010-10-18 at 10:05 -0600, Petrus de Calguarium wrote: > When I need root access, I used to use sudo su -. Recently, I discovered I > could simply type su -. > > What's the difference: > > su - > sudo su - > I can't imagine why any UNIX/Linux syst

Re: su or sudo su?

2010-10-18 Thread James McKenzie
On 10/18/10 2:13 PM, Tim wrote: > On Mon, 2010-10-18 at 09:40 -0700, James Mckenzie wrote: >> Also root's home directory should NEVER be / (root) but rather >> something like /home/root. > Wrong. Bad advice. The following somewhat mitigates that, but you've > muddied the water with bad advice i

Re: su or sudo su?

2010-10-18 Thread Chris Adams
Once upon a time, Patrick O'Callaghan said: > Back in the mists of time when men were men and dinosaurs roamed the > Earth, the home directory for "root" was indeed "/", but of course I'm > talking about Unix, not Linux. Heh, I just turned off one such system last month (one more to go)! -- Chri

Re: su or sudo su?

2010-10-18 Thread Patrick O'Callaghan
On Mon, 2010-10-18 at 18:20 -0400, Tom H wrote: > > Also root's home directory should NEVER be / (root) but rather > something like /home/root. > > I've known of several folks who 'forgot' they were root or had > either sudo'd or su -'d and > > then issued the famous (or infamous) rm -rf * wiping o

Re: su or sudo su?

2010-10-18 Thread Tom H
On Mon, Oct 18, 2010 at 12:40 PM, James Mckenzie wrote: > Also root's home directory should NEVER be / (root) but rather something like > /home/root. > I've known of several folks who 'forgot' they were root or had either sudo'd >or su -'d and > then issued the famous (or infamous) rm -rf * wip

Re: su or sudo su?

2010-10-18 Thread Chris Smart
On Tue, Oct 19, 2010 at 9:09 AM, Tim wrote: > >> Most folks just install using the defaults and some systems default to >> root's home being the base root directory and not /root or /home/root. > > I've never seen that, what distro does that?  Geez, what a bad idea! > Maybe a busybox based initra

Re: su or sudo su?

2010-10-18 Thread Tim
James Mckenzie: > I did not state /root but rather the base root directory '/'. > Anything else would be ok in my book from a security standpoint. Sorry, I misread your prior post. I don't know why I didn't notice the brackets where you wrote: / (root) > Most folks just install using the defaul

Re: su or sudo su?

2010-10-18 Thread James Mckenzie
Tim wrote: >Sent: Oct 18, 2010 2:13 PM >To: James Mckenzie , Community support for Fedora >users >Subject: Re: su or sudo su? > >On Mon, 2010-10-18 at 09:40 -0700, James Mckenzie wrote: >> Also root's home directory should NEVER be / (root) but rather >>

Re: su or sudo su?

2010-10-18 Thread Tim
On Mon, 2010-10-18 at 09:40 -0700, James Mckenzie wrote: > Also root's home directory should NEVER be / (root) but rather > something like /home/root. Wrong. Bad advice. The following somewhat mitigates that, but you've muddied the water with bad advice in the first place. > I've known of sever

Re: su or sudo su?

2010-10-18 Thread James Mckenzie
suvayu ali wrote: >Sent: Oct 18, 2010 12:30 PM >To: James Mckenzie , Community support for Fedora >users >Subject: Re: su or sudo su? > >Hi James and Patrick, > >On 18 October 2010 09:40, James Mckenzie wrote: >> Suvayu Ali wrote: >>>I am not sure how

Re: su or sudo su?

2010-10-18 Thread Steven Stern
On 10/18/2010 02:30 PM, suvayu ali wrote: > Hi James and Patrick, > > On 18 October 2010 09:40, James Mckenzie wrote: >> Suvayu Ali wrote: >>> I am not sure how it is insecure, could you elaborate? At least to me >>> giving (limited/full) root privileges to an ordinary user seems a lot >>> more

Re: su or sudo su?

2010-10-18 Thread suvayu ali
Hi James and Patrick, On 18 October 2010 09:40, James Mckenzie wrote: > Suvayu Ali wrote: >>I am not sure how it is insecure, could you elaborate? At least to me >>giving (limited/full) root privileges to an ordinary user seems a lot >>more risky. > > Which is what you are doing with the file be

Re: su or sudo su?

2010-10-18 Thread Petrus de Calguarium
wrote: > ... Thanks, guys. I now understand the difference. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Re: su or sudo su?

2010-10-18 Thread Patrick O'Callaghan
On 10/18/10 12:01 PM, Suvayu Ali wrote: > On Monday 18 October 2010 09:15 AM, James Mckenzie wrote: >> su - exposes the root password and is generally discouraged. sudo >> does not but exposes which users have this privilege. Logins >> through unsecured means should be disabled or very closely

Re: su or sudo su?

2010-10-18 Thread James Mckenzie
Suvayu Ali wrote: > >On Monday 18 October 2010 09:15 AM, James Mckenzie wrote: >> su - exposes the root password and is generally discouraged. sudo >> does not but exposes which users have this privilege. Logins >> through unsecured means should be disabled or very closely >> controlled. Most S

Re: su or sudo su?

2010-10-18 Thread Tom H
On Mon, Oct 18, 2010 at 12:05 PM, Petrus de Calguarium wrote: > > When I need root access, I used to use sudo su -. Recently, I discovered I > could simply type su -. > > What's the difference: > > su - > sudo su - When you use "sudo su -", you have to t

Re: su or sudo su?

2010-10-18 Thread James Mckenzie
Todd Zullinger wrote: > >James Mckenzie wrote: >> Petrus de Calguarium wrote: >>> >>>When I need root access, I used to use sudo su -. >> >> This is plain wrong. The command should be sudo . > >And su - is a command. ;) But this is, in most ca

Re: su or sudo su?

2010-10-18 Thread Suvayu Ali
On Monday 18 October 2010 09:15 AM, James Mckenzie wrote: > su - exposes the root password and is generally discouraged. sudo > does not but exposes which users have this privilege. Logins > through unsecured means should be disabled or very closely > controlled. Most SAs now disable or remove u

Re: su or sudo su?

2010-10-18 Thread Kevin J. Cummings
On 10/18/2010 12:05 PM, Petrus de Calguarium wrote: > When I need root access, I used to use sudo su -. Recently, I discovered I > could simply type su -. > > What's the difference: > > su - > sudo su - The answer depends on how you configure your sudo. The diffe

Re: su or sudo su?

2010-10-18 Thread Todd Zullinger
James Mckenzie wrote: > Petrus de Calguarium wrote: >> >>When I need root access, I used to use sudo su -. > > This is plain wrong. The command should be sudo . And su - is a command. ;) There's really nothing wrong with that command from a technical standpoint. W

Re: su or sudo su?

2010-10-18 Thread James Mckenzie
Petrus de Calguarium wrote: > >When I need root access, I used to use sudo su -. This is plain wrong. The command should be sudo . >Recently, I discovered I >could simply type su -. > >What's the difference: Passwords and what is recorded in your log files. If you use

su or sudo su?

2010-10-18 Thread Petrus de Calguarium
When I need root access, I used to use sudo su -. Recently, I discovered I could simply type su -. What's the difference: su - sudo su - ? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/