Re: sudo problem on restore from archive

2023-12-30 Thread Jon LaBadie
On Sat, Dec 30, 2023 at 11:48:31PM -0500, Robert McBroom via users wrote: On 12/30/23 18:18, Mike Wright wrote: On 12/30/23 15:13, Robert McBroom via users wrote: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root

Re: sudo problem on restore from archive

2023-12-30 Thread Mike Wright
On 12/30/23 20:48, Robert McBroom via users wrote: On 12/30/23 18:18, Mike Wright wrote: On 12/30/23 15:13, Robert McBroom via users wrote: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root owns the file and is 0.

Re: sudo problem on restore from archive

2023-12-30 Thread Robert McBroom via users
On 12/30/23 18:18, Mike Wright wrote: On 12/30/23 15:13, Robert McBroom via users wrote: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root owns the file and is 0. Looking at a working system directory list shows   

Re: sudo problem on restore from archive

2023-12-30 Thread Sam Varshavchik
Robert McBroom via users writes: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root owns the file and is 0. Looking at a working system directory list shows   -rwsr-xr-x.  1 root root   57456 Aug 16 20:00 su  

Re: sudo problem on restore from archive

2023-12-30 Thread Samuel Sieb
On 12/30/23 15:13, Robert McBroom via users wrote: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root owns the file and is 0. Looking at a working system directory list shows   -rwsr-xr-x.  1 root root   57456

Re: sudo problem on restore from archive

2023-12-30 Thread Mike Wright
On 12/30/23 15:13, Robert McBroom via users wrote: On a system restore from a tar archive sudo won't work. Says /usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root owns the file and is 0. Looking at a working system directory list shows   -rwsr-xr-x.  1 root root   57456

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

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 -

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

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

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/

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

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

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

Re: sudo (with sssd) command duration 50ms -> 400ms performance degradation

2021-01-20 Thread Judd Gaddie
Apologies... got mixed up on this fedorahosted web interface.. this was meant for sssd-users ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct:

Re: sudo (with sssd) command duration 50ms -> 400ms performance degradation

2021-01-19 Thread Joe Zeff
On 1/19/21 8:34 AM, Judd Gaddie wrote: Hi, We have noticed a performance regression on some of our boxes when we upgraded from Ubuntu 18.04 (sssd 1.16.1-1ubuntu1.7) (sudo 1.8.21p2) -> Ubuntu 20.04 (sssd 2.2.3-3ubuntu0.1) (sudo 1.8.31) (however it was not universal, some Ubuntu 20.04 boxes are

Re: sudo (with sssd) command duration 50ms -> 400ms performance degradation

2021-01-19 Thread Patrick O'Callaghan
On Tue, 2021-01-19 at 15:34 +, Judd Gaddie wrote: > Hi, We have noticed a performance regression on some of our boxes when we > upgraded from Ubuntu 18.04 (sssd 1.16.1-1ubuntu1.7) (sudo 1.8.21p2) -> Ubuntu > 20.04 (sssd 2.2.3-3ubuntu0.1) (sudo 1.8.31) (however it was not universal, > some

Re: sudo privileges

2020-12-28 Thread Samuel Sieb
On 12/27/20 10:24 PM, Angelo Moreschini wrote: Probably the cancellation was caused by the command That is what caused it. Now the problem is solved, as well it seems me strange that adding a new group to a user should delete it from the list of sudoers As George said in an earlier email,

Re: sudo privileges

2020-12-27 Thread Angelo Moreschini
Hi George, thank you for answering me.. Yes I have two user name how you said what you say is right: <"You should not need to be in the wheel group if your username is in "/etc/sudoers"">. My name was not , at the moment that I had the problem, in the sudoers file . Later I added it , and this

Re: sudo privileges

2020-12-27 Thread Qiyu Yan
George N. White III 于2020年12月27日周日 下午10:28写道: > > On Sun, 27 Dec 2020 at 05:32, Angelo Moreschini > wrote: >> >> Hi >> >> some days before, I had a problem about using the "beep" function.. >> ... working around, to solve my problem, I got the suggestion to register >> myself in the "audio

Re: sudo privileges

2020-12-27 Thread George N. White III
On Sun, 27 Dec 2020 at 05:32, Angelo Moreschini wrote: > Hi > > some days before, I had a problem about using the *"beep" function..* > ... working around, to solve my problem, I got the suggestion to register > myself in the "audio group" .. > I made it using these commands: > > *sudo adduser

Re: sudo related

2020-03-31 Thread Paul Allen Newell
On 3/30/20 10:40 PM, David wrote: On the virus-front, Regarding your non-Fedora "On the virus front" Repulsive beyond belief and, more to the point, having nothing to do with Fedora or any flavor on Linux Shame ___ users mailing list --

Re: sudo

2019-01-10 Thread Rick Stevens
On 1/9/19 1:13 AM, Patrick Dupre wrote: > >> On 1/8/19 8:38 AM, Ulf Volmer wrote: >>> On 08.01.19 10:57, Patrick Dupre wrote: >>> With visudo, I did pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ >>> sudo /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home

Re: sudo

2019-01-09 Thread Ulf Volmer
On 09.01.19 10:13, Patrick Dupre wrote: >> $ mount /mnt/USB > > The problem is that it tries to mount at boot even if the drive is off Add noauto as option to your fstab line. This and other options are documented in 'man fstab'. best regards Ulf

Re: sudo

2019-01-09 Thread Patrick Dupre
> On 1/8/19 8:38 AM, Ulf Volmer wrote: > > On 08.01.19 10:57, Patrick Dupre wrote: > > > >> With visudo, I did > >> pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ > > > >> sudo /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB > > > > When you allow a specific

Re: sudo

2019-01-08 Thread Samuel Sieb
On 1/8/19 12:14 PM, Joe Zeff wrote: On 01/08/2019 12:23 PM, Samuel Sieb wrote: What does the "hostname" command give you?  I would suggest using "ALL" instead. Not a good idea unless you really trust that user.  This lets that person mount this partition when needed and nothing else.  (It

Re: sudo

2019-01-08 Thread Joe Zeff
On 01/08/2019 12:23 PM, Samuel Sieb wrote: What does the "hostname" command give you?  I would suggest using "ALL" instead. Not a good idea unless you really trust that user. This lets that person mount this partition when needed and nothing else. (It might be a good idea to allow umount

Re: sudo

2019-01-08 Thread Samuel Sieb
On 1/8/19 11:21 AM, Rick Stevens wrote: On 1/8/19 10:58 AM, Patrick Dupre wrote: sudo -l [sudo] password for pdupre: Sorry, user pdupre may not run sudo on Teucidide. Same for sudo -i Uhm you ARE entering the password for user pdupre, right? Do NOT use root's password, use your own.

Re: sudo

2019-01-08 Thread Samuel Sieb
On 1/8/19 1:57 AM, Patrick Dupre wrote: I wanted that a user be able to do: mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB With visudo, I did pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ (pdupre is also member of pdupre I tried also %pdupre localhost=/usr/bin/mount

Re: sudo

2019-01-08 Thread Rick Stevens
On 1/8/19 10:58 AM, Patrick Dupre wrote: > OK, > > Sorry, > > But again: > > sudo -l > [sudo] password for pdupre: > Sorry, user pdupre may not run sudo on Teucidide. > > > Same for sudo -i Uhm you ARE entering the password for user pdupre, right? Do NOT use root's password, use your own.

Re: sudo

2019-01-08 Thread Ulf Volmer
On 08.01.19 19:58, Patrick Dupre wrote: (Please do not top post) > sudo -l > [sudo] password for pdupre: > Sorry, user pdupre may not run sudo on Teucidide. I think you have to replace localhost in your sudoers either with your real hostname or with ALL. best regards Ulf

Re: sudo

2019-01-08 Thread Patrick Dupre
Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | === > Sent: Tuesday, January 08, 2019 at 7:30 PM > From: "Ulf Volmer" > To: users@lists.fedoraproject.org

Re: sudo

2019-01-08 Thread Ulf Volmer
On 08.01.19 19:24, Patrick Dupre wrote: > sudo -l /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ I guess there was a misunderstanding. 'sudo -l' is a single command to display the currently allowed rules. So you should try the commands: sudo -l sudo /usr/bin/mount

Re: sudo

2019-01-08 Thread Patrick Dupre
| | === > Sent: Tuesday, January 08, 2019 at 5:38 PM > From: "Ulf Volmer" > To: users@lists.fedoraproject.org > Subject: Re: sudo > > On 08.01.19 10:57, Patrick Dupre wrote: > > > With visudo, I did > > pdupre localhost=/usr/bi

Re: sudo

2019-01-08 Thread Rick Stevens
On 1/8/19 8:38 AM, Ulf Volmer wrote: > On 08.01.19 10:57, Patrick Dupre wrote: > >> With visudo, I did >> pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ > >> sudo /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB > > When you allow a specific command for sudo,

Re: sudo

2019-01-08 Thread Ulf Volmer
On 08.01.19 10:57, Patrick Dupre wrote: > With visudo, I did > pdupre localhost=/usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB/ > sudo /usr/bin/mount /dev/mapper/VolGrpUsr_DK0-home /mnt/USB When you allow a specific command for sudo, you *must* use *exactly* the same command. In this

Re: Sudo but no su -

2018-04-28 Thread Tom H
On Sat, Apr 28, 2018 at 10:21 AM, D wrote: > On Sat, 28 Apr 2018 06:15:08 -0400 Tom H wrote: >> On Fri, Apr 27, 2018 at 5:41 PM, Samuel Sieb wrote: >>> On 04/27/2018 07:26 AM, D wrote: On Fri, 27 Apr 2018 08:22:12 -0400 Tom H

Re: Sudo but no su -

2018-04-28 Thread Todd Zullinger
D wrote: > On Sat, 28 Apr 2018 06:15:08 -0400 > Tom H wrote: > >> On Fri, Apr 27, 2018 at 5:41 PM, Samuel Sieb wrote: >>> On 04/27/2018 07:26 AM, D wrote: On Fri, 27 Apr 2018 08:22:12 -0400 Tom H wrote: > > sudo -s

Re: Sudo but no su -

2018-04-28 Thread D
On Sat, 28 Apr 2018 06:15:08 -0400 Tom H wrote: > On Fri, Apr 27, 2018 at 5:41 PM, Samuel Sieb wrote: > > On 04/27/2018 07:26 AM, D wrote: > >> On Fri, 27 Apr 2018 08:22:12 -0400 > >> Tom H wrote: > >>> > >>> sudo -s > >>> sudo su >

Re: Sudo but no su -

2018-04-28 Thread Tom H
On Fri, Apr 27, 2018 at 5:41 PM, Samuel Sieb wrote: > On 04/27/2018 07:26 AM, D wrote: >> On Fri, 27 Apr 2018 08:22:12 -0400 >> Tom H wrote: >>> >>> sudo -s >>> sudo su >>> sudo su -l >>> sudo sh >>> sudo sh -l >>> sudo bash -l >>> ... >> >> None of the sudo

Re: Sudo but no su -

2018-04-28 Thread Tom H
On Fri, Apr 27, 2018 at 5:40 PM, Samuel Sieb wrote: > On 04/27/2018 05:13 AM, Tom H wrote: >> On Thu, Apr 26, 2018 at 4:14 PM, Samuel Sieb wrote: >>> >>> I suppose that's true, but in that case, there's probably a larger issue >>> involved and you'll likely need

Re: Sudo but no su -

2018-04-27 Thread Samuel Sieb
On 04/27/2018 07:26 AM, D wrote: On Fri, 27 Apr 2018 08:22:12 -0400 Tom H wrote: sudo -s sudo su sudo su -l sudo sh sudo sh -l sudo bash -l ... None of the sudo commands listed allow you to run a graphical program ie. meld. Is there some way to do that? Wayland does not

Re: Sudo but no su -

2018-04-27 Thread Samuel Sieb
On 04/27/2018 05:13 AM, Tom H wrote: On Thu, Apr 26, 2018 at 4:14 PM, Samuel Sieb wrote: I suppose that's true, but in that case, there's probably a larger issue involved and you'll likely need a live boot of some sort anyway. There is one case where this does become a

Re: Sudo but no su -

2018-04-27 Thread Dave Stevens
On Fri, 27 Apr 2018 10:24:36 -0700 Rick Stevens wrote: > On 04/26/2018 07:50 PM, Dave Stevens wrote: > > On Thu, 26 Apr 2018 18:56:22 -0700 > > Rick Stevens wrote: > > > >> and utterly awesome and loveable) self. > > > > what?? what??? > >

Re: Sudo but no su -

2018-04-27 Thread Tom H
On Fri, Apr 27, 2018 at 10:26 AM, D wrote: > On Fri, 27 Apr 2018 08:22:12 -0400 > Tom H wrote: >> On Fri, Apr 27, 2018 at 5:03 AM, Bob Marcan wrote: >>> On Thu, 26 Apr 2018 13:09:43 -0700 Samuel Sieb wrote:

Re: Sudo but no su -

2018-04-27 Thread Rick Stevens
On 04/27/2018 07:26 AM, D wrote: > On Fri, 27 Apr 2018 08:22:12 -0400 > Tom H wrote: > >> On Fri, Apr 27, 2018 at 5:03 AM, Bob Marcan wrote: >>> On Thu, 26 Apr 2018 13:09:43 -0700 Samuel Sieb wrote: On 04/26/2018 01:03 PM, Joe

Re: Sudo but no su -

2018-04-27 Thread Rick Stevens
On 04/26/2018 07:50 PM, Dave Stevens wrote: > On Thu, 26 Apr 2018 18:56:22 -0700 > Rick Stevens wrote: > >> and utterly awesome and loveable) self. > > what?? what??? Are you saying I'm not awesome and lovable (despite my misspelling)? That kind of hurts (insert pouty

Re: Sudo but no su -

2018-04-27 Thread D
On Fri, 27 Apr 2018 08:22:12 -0400 Tom H wrote: > On Fri, Apr 27, 2018 at 5:03 AM, Bob Marcan wrote: > > On Thu, 26 Apr 2018 13:09:43 -0700 Samuel Sieb wrote: > >> On 04/26/2018 01:03 PM, Joe Zeff wrote: > >>> On 04/26/2018 12:54

Re: Sudo but no su -

2018-04-27 Thread Tom H
On Fri, Apr 27, 2018 at 5:03 AM, Bob Marcan wrote: > On Thu, 26 Apr 2018 13:09:43 -0700 Samuel Sieb wrote: >> On 04/26/2018 01:03 PM, Joe Zeff wrote: >>> On 04/26/2018 12:54 PM, Samuel Sieb wrote: I'm curious what you find you need to use a root

Re: Sudo but no su -

2018-04-27 Thread Tom H
On Thu, Apr 26, 2018 at 4:14 PM, Samuel Sieb wrote: > On 04/26/2018 01:00 PM, Joe Zeff wrote: >> On 04/26/2018 12:14 PM, stan wrote: >>> >>> Good to know that it will always be there. Habit for me is to use root >>> and su instead of sudo. old dog - new tricks :-) >> >> Same

Re: Sudo but no su -

2018-04-27 Thread Tom H
On Thu, Apr 26, 2018 at 4:00 PM, Joe Zeff wrote: > On 04/26/2018 12:14 PM, stan wrote: >> >> Good to know that it will always be there. Habit for me is to use >> root and su instead of sudo. old dog - new tricks :-) > > Same here. If I ever had to work with Ubuntu, one of the first

Re: Sudo but no su -

2018-04-27 Thread Tom H
On Thu, Apr 26, 2018 at 1:25 PM, stan wrote: > I think I remember reading that there will be no default root account > after install of F28 or later. For Fedora 28 Workstation. > Again, I think I remember the workaround was to use sudo, and then > create a root

Re: Sudo but no su -

2018-04-27 Thread AV
On Thu, 2018-04-26 at 14:25 -0400, Matthew Miller wrote: > On Thu, Apr 26, 2018 at 01:03:58PM -0400, Bob Goodwin wrote: > > I installed Virtual Manager in this Fedora 27 workstation system > > and > > created afedora 28 beta installation and was surprised to find I > > haveonly user bobg, no root

Re: Sudo but no su -

2018-04-27 Thread Bob Marcan
On Thu, 26 Apr 2018 13:09:43 -0700 Samuel Sieb wrote: > On 04/26/2018 01:03 PM, Joe Zeff wrote: > > On 04/26/2018 12:54 PM, Samuel Sieb wrote: > >> I'm curious what you find you need to use a root login for. > > > If I need to do more than one or two things as root, it's

Re: Sudo but no su -

2018-04-26 Thread Chris Murphy
For what it's worth, systemd emergency/rescue target only accept a root login. Apparently it's complicated getting it to use a user in wheel. Anyway I add two boot parameters as a workaround rather than permanently enabling root. 1 systemd.debug-shell=1 tty9 will have a root shell, no password.

Re: Sudo but no su -

2018-04-26 Thread Ed Greshko
On 04/27/18 11:15, Samuel Sieb wrote: > On 04/26/2018 05:44 PM, Ed Greshko wrote: >> FWIW, I never have the need to login as root from the graphical interface.  >> But I do, >> at times, have the need to issue a series of commands from the command line >> as root. >> In those cases sudo is

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 05:44 PM, Ed Greshko wrote: FWIW, I never have the need to login as root from the graphical interface.  But I do, at times, have the need to issue a series of commands from the command line as root. In those cases sudo is cumbersome.  So, I will use "su -".   So, no matter what

Re: Sudo but no su -

2018-04-26 Thread Dave Stevens
On Thu, 26 Apr 2018 18:56:22 -0700 Rick Stevens wrote: > and utterly awesome and loveable) self. what?? what??? -- In modern fantasy (literary or governmental), killing people is the usual solution to the so-called war between good and evil. My books are not conceived in

Re: Sudo but no su -

2018-04-26 Thread Rick Stevens
On 04/26/2018 05:44 PM, Ed Greshko wrote: > On 04/27/18 08:29, Rick Stevens wrote: >> On 04/26/2018 12:54 PM, Samuel Sieb wrote: >>> On 04/26/2018 12:14 PM, stan wrote: On Thu, 26 Apr 2018 11:05:28 -0700 Samuel Sieb wrote: > I think the majority opinion now is that

Re: Sudo but no su -

2018-04-26 Thread Ed Greshko
On 04/27/18 08:29, Rick Stevens wrote: > On 04/26/2018 12:54 PM, Samuel Sieb wrote: >> On 04/26/2018 12:14 PM, stan wrote: >>> On Thu, 26 Apr 2018 11:05:28 -0700 >>> Samuel Sieb wrote: I think the majority opinion now is that logging in as the root user is discouraged. 

Re: Sudo but no su -

2018-04-26 Thread Rick Stevens
On 04/26/2018 12:54 PM, Samuel Sieb wrote: > On 04/26/2018 12:14 PM, stan wrote: >> On Thu, 26 Apr 2018 11:05:28 -0700 >> Samuel Sieb wrote: >>> I think the majority opinion now is that logging in as the root user >>> is discouraged.  In almost all cases sudo is sufficient and if

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 01:36 PM, Andre Robatino wrote: On 04/26/2018 12:14 PM, stan wrote: I'm curious what you find you need to use a root login for. The growisofs man page states "If executed under sudo(8) growisofs refuses to start." (and explains why). I don't know if there are other commands

Re: Sudo but no su -

2018-04-26 Thread stan
On Thu, 26 Apr 2018 12:54:08 -0700 Samuel Sieb wrote: > I'm curious what you find you need to use a root login for. I used > to use that all the time, but gradually I switched over and on my > desktop system, it is extremely rare that I use it. (I think only > when the

Re: Sudo but no su -

2018-04-26 Thread Andre Robatino
> On 04/26/2018 12:14 PM, stan wrote: > > I'm curious what you find you need to use a root login for. The growisofs man page states "If executed under sudo(8) growisofs refuses to start." (and explains why). I don't know if there are other commands with the same issue.

Re: Sudo but no su -

2018-04-26 Thread Joe Zeff
On 04/26/2018 01:14 PM, Samuel Sieb wrote: I suppose that's true, but in that case, there's probably a larger issue involved and you'll likely need a live boot of some sort anyway. I'd find it both faster and easier to switch to a text console, log in as root and do what's needed. Of course,

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 01:00 PM, Joe Zeff wrote: On 04/26/2018 12:14 PM, stan wrote: Good to know that it will always be there.  Habit for me is to use root and su instead of sudo.  old dog - new tricks  :-) Same here.  If I ever had to work with Ubuntu, one of the first things I'd do is set the root

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 01:03 PM, Joe Zeff wrote: On 04/26/2018 12:54 PM, Samuel Sieb wrote: I'm curious what you find you need to use a root login for. If I need to do more than one or two things as root, it's easier to become root rather than type sudo over and over. That's what "sudo -i" is for.

Re: Sudo but no su -

2018-04-26 Thread Joe Zeff
On 04/26/2018 12:54 PM, Samuel Sieb wrote: I'm curious what you find you need to use a root login for. If I need to do more than one or two things as root, it's easier to become root rather than type sudo over and over. ___ users mailing list --

Re: Sudo but no su -

2018-04-26 Thread Joe Zeff
On 04/26/2018 12:14 PM, stan wrote: Good to know that it will always be there. Habit for me is to use root and su instead of sudo. old dog - new tricks :-) Same here. If I ever had to work with Ubuntu, one of the first things I'd do is set the root password. As things are now, you're

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 12:14 PM, stan wrote: On Thu, 26 Apr 2018 11:05:28 -0700 Samuel Sieb wrote: I think the majority opinion now is that logging in as the root user is discouraged. In almost all cases sudo is sufficient and if you need to do root things for a while, just use "sudo

Re: Sudo but no su -

2018-04-26 Thread stan
On Thu, 26 Apr 2018 11:05:28 -0700 Samuel Sieb wrote: > The home directory for root is /root. Good to know that it will always be there. Habit for me is to use root and su instead of sudo. old dog - new tricks :-) > I think the majority opinion now is that logging in as

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 11:25 AM, Matthew Miller wrote: On Thu, Apr 26, 2018 at 01:03:58PM -0400, Bob Goodwin wrote: I installed Virtual Manager in this Fedora 27 workstation system and created afedora 28 beta installation and was surprised to find I haveonly user bobg, no root account. Sometimes it's

Re: Sudo but no su -

2018-04-26 Thread Matthew Miller
On Thu, Apr 26, 2018 at 01:03:58PM -0400, Bob Goodwin wrote: > I installed Virtual Manager in this Fedora 27 workstation system and > created afedora 28 beta installation and was surprised to find I > haveonly user bobg, no root account. Sometimes it's convenient to > keep a work space for root

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 10:53 AM, stan wrote: Thanks for the info. Does there have to be a home directory for the obligatory root account? The tone of the discussions I read was that root user was an anachronism, and linux would be better without it. That's only my interpretation, of course, so it

Re: Sudo but no su -

2018-04-26 Thread stan
On Thu, 26 Apr 2018 10:30:37 -0700 Samuel Sieb wrote: > There *has* to be a root account. By default there is no root > password unless you set one during the installation. I think there > has been talk of removing that option from the installer. All you > have to do is "sudo

Re: Sudo but no su -

2018-04-26 Thread Bob Goodwin
On 04/26/18 13:25, Bob Goodwin wrote: When you did the install, did you create a password for root?  If not, then do "sudo passwd" and set one.  The easier method though might be to just use "sudo -i". _ That worked ... [bobg@localhost-live ~]$ sudo passwd [sudo] password for bobg:

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 10:25 AM, stan wrote: I think I remember reading that there will be no default root account after install of F28 or later. Again, I think I remember the workaround was to use sudo, and then create a root account with useradd. You will have to specify the root directory as /root

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 10:24 AM, Bob Goodwin wrote: On 04/26/18 13:17, Samuel Sieb wrote: When you did the install, did you create a password for root?  If not, then do "sudo passwd" and set one.  The easier method though might be to just use "sudo -i". I will try that. I did the install several

Re: Sudo but no su -

2018-04-26 Thread stan
On Thu, 26 Apr 2018 13:03:58 -0400 Bob Goodwin wrote: > I installed Virtual Manager in this Fedora 27 workstation system and > created afedora 28 beta installation and was surprised to find I > haveonly user bobg, no root account. Sometimes it's convenient to > keep a

Re: Sudo but no su -

2018-04-26 Thread Bob Goodwin
On 04/26/18 13:17, Samuel Sieb wrote: When you did the install, did you create a password for root?  If not, then do "sudo passwd" and set one.  The easier method though might be to just use "sudo -i". _ I will try that. I did the install several times thinking I was having trouble

Re: Sudo but no su -

2018-04-26 Thread Bob Goodwin
On 04/26/18 13:17, Samuel Sieb wrote: When you did the install, did you create a password for root?  If not, then do "sudo passwd" and set one.  The easier method though might be to just use "sudo -i". _ I will try that. I did the install several times thinking I was having trouble

Re: Sudo but no su -

2018-04-26 Thread Samuel Sieb
On 04/26/2018 10:03 AM, Bob Goodwin wrote: I installed Virtual Manager in this Fedora 27 workstation system and created afedora 28 beta installation and was surprised to find I haveonly user bobg, no root account. Sometimes it's convenient to keep a work space for root and I was unable to do

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >