Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Joe Zeff

On 01/12/2020 01:54 PM, Stephen Morris wrote:

On 12/1/20 08:12, Joe Zeff wrote:

On 01/11/2020 05:54 AM, Stephen Morris wrote:
Is the only course of action I have to get it back to reinstall F29 
and then upgrage to F31?


Why would you do that when you can simply install F31 over your 
existing installation?
F31 was an upgrade from F30 and I don't have the root account enabled to 
be able to reissue the dnf upgrade command.


So?  Just create a LiveUSB of F31 and use that to reinstall.  HTH, HAND.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Samuel Sieb

On 1/12/20 12:53 PM, Stephen Morris wrote:

On 12/1/20 04:18, Doug H. wrote:

On Sat, 2020-01-11 at 23:54 +1100, Stephen Morris wrote:

  Hi,
  By mistake I removed administration privileges from my
account
under kde, which is the only account that had it. Removing the
privilege
has removed my account from sudoers. Is the only course of action I
have
to get it back to reinstall F29 and then upgrage to F31?

Nope, lots of simpler methods...

1. Of course, if you have the root password you can give your user
sudo.

2. Boot to a maintenance CD and set a root password.

I don't have the root account enabled and I don't have a maintenance CD 
for F31 as it was an upgrade from F30, which was an upgrade from F29.


If you're comfortable with the command line, you can download the 
netinstall ISO and use rescue mode.

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Samuel Sieb

On 1/12/20 12:54 PM, Stephen Morris wrote:

On 12/1/20 08:12, Joe Zeff wrote:

On 01/11/2020 05:54 AM, Stephen Morris wrote:
Is the only course of action I have to get it back to reinstall F29 
and then upgrage to F31?


Why would you do that when you can simply install F31 over your 
existing installation?
F31 was an upgrade from F30 and I don't have the root account enabled to 
be able to reissue the dnf upgrade command.


Ok, but if you're wanting to end up at F31 and you're reinstalling 
anyway, why start with F29 instead of just using the F31 installer?

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Stephen Morris

On 13/1/20 07:29, Stephen Morris wrote:

On 13/1/20 03:32, Samuel Sieb wrote:

On 1/11/20 6:34 PM, Ed Greshko wrote:

On 2020-01-12 10:24, Samuel Sieb wrote:
FWIW, the "System Settings" process that I'm talking about simply 
places the user in the "wheel"

group.


Yes, that's what administrator rights means for a user.


I also should have asked "how" the OP lost admin privileges since it 
was stated by the OP
"Removing the privilege has removed my account from sudoers" which 
is inconsistent with the

the "wheel" group assumption.


For a typical user, not being able to use sudo would mean not being 
in sudoers.  And in a way it's correct.  If you aren't in the wheel 
group, you're not included by the sudoers file any more.
Hi Samuel and ED, I encountered this issue as I was trying Gnome under 
Xorg and KDE as the upgrade I did from F30 to F31 has caused Wayland 
to not work properly on my system. I have another thread around the 
Wayland issue (as a side issue to this, in another vm image I 
reinstalled F29 from scratch and upgraded it to F31 and the Wayland 
issue still occurs). While I was checking whether KDE exhibited the 
issues I was looking at my account in settings and it had and it had 
the administrative privileges checkbox set. Incorrectly thinking that 
meant that administrative privileges were permanently set rather than 
through sudo, I unchecked the setting. After this I tried to use 
kwrite to update /etc/default/grub, as the upgrade to F31 overwrote 
the changes I had in there, but kwrite was unable to save my changes 
because I was not in sudoers. I also tried using sudo in both a KDE 
and Gnome shell, under KDE and Gnome, and under both when I used it I 
got the message that I wasn't in the sudoers list and that the 
violation would be reported.
I do not have the root user active, as having installed KDE from Gnome 
via the Plasma group in dnf, I was not prompted to supply a root 
password, and I also thought that Fedora was like other distributions 
and disallowed the use of the root account.
Following the instructions in the link provided by Patrick Laimbock I 
have enabled the root account by setting its password, and used it to 
add the administrative privilege back to my account under KDE. In 
testing whether the Wayland issue happened on a new account, I created 
an account for my wife which I have also added the administrative 
privilege to so that I have a backup account I can use if I cause this 
issue again.


regards,
Steve



regards,
Steve


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

List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

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

List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Stephen Morris

On 12/1/20 08:12, Joe Zeff wrote:

On 01/11/2020 05:54 AM, Stephen Morris wrote:
Is the only course of action I have to get it back to reinstall F29 
and then upgrage to F31?


Why would you do that when you can simply install F31 over your 
existing installation?
F31 was an upgrade from F30 and I don't have the root account enabled to 
be able to reissue the dnf upgrade command.


regards,
Steve


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

List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Stephen Morris

On 12/1/20 04:18, Doug H. wrote:

On Sat, 2020-01-11 at 23:54 +1100, Stephen Morris wrote:

  Hi,
  By mistake I removed administration privileges from my
account
under kde, which is the only account that had it. Removing the
privilege
has removed my account from sudoers. Is the only course of action I
have
to get it back to reinstall F29 and then upgrage to F31?

Nope, lots of simpler methods...

1. Of course, if you have the root password you can give your user
sudo.

2. Boot to a maintenance CD and set a root password.

I don't have the root account enabled and I don't have a maintenance CD 
for F31 as it was an upgrade from F30, which was an upgrade from F29.


regards,
Steve





regards,
Steve
___
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/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Stephen Morris

On 13/1/20 03:32, Samuel Sieb wrote:

On 1/11/20 6:34 PM, Ed Greshko wrote:

On 2020-01-12 10:24, Samuel Sieb wrote:
FWIW, the "System Settings" process that I'm talking about simply 
places the user in the "wheel"

group.


Yes, that's what administrator rights means for a user.


I also should have asked "how" the OP lost admin privileges since it 
was stated by the OP
"Removing the privilege has removed my account from sudoers" which is 
inconsistent with the

the "wheel" group assumption.


For a typical user, not being able to use sudo would mean not being in 
sudoers.  And in a way it's correct.  If you aren't in the wheel 
group, you're not included by the sudoers file any more.
Hi Samuel and ED, I encountered this issue as I was trying Gnome under 
Xorg and KDE as the upgrade I did from F30 to F31 has caused Wayland to 
not work properly on my system. I have another thread around the Wayland 
issue (as a side issue to this, in another vm image I reinstalled F29 
from scratch and upgraded it to F31 and the Wayland issue still occurs). 
While I was checking whether KDE exhibited the issues I was looking at 
my account in settings and it had and it had the administrative 
privileges checkbox set. Incorrectly thinking that meant that 
administrative privileges were permanently set rather than through sudo, 
I unchecked the setting. After this I tried to use kwrite to update 
/etc/default/grub, as the upgrade to F31 overwrote the changes I had in 
there, but kwrite was unable to save my changes because I was not in 
sudoers. I also tried using sudo in both a KDE and Gnome shell, under 
KDE and Gnome, and under both when I used it I got the message that I 
wasn't in the sudoers list and that the violation would be reported.
I do not have the root user active, as having installed KDE from Gnome 
via the Plasma group in dnf, I was not prompted to supply a root 
password, and I also thought that Fedora was like other distributions 
and disallowed the use of the root account.


regards,
Steve


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

List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-12 Thread Samuel Sieb

On 1/11/20 6:34 PM, Ed Greshko wrote:

On 2020-01-12 10:24, Samuel Sieb wrote:

FWIW, the "System Settings" process that I'm talking about simply places the user in the 
"wheel"
group.


Yes, that's what administrator rights means for a user.


I also should have asked "how" the OP lost admin privileges since it was stated 
by the OP
"Removing the privilege has removed my account from sudoers" which is 
inconsistent with the
the "wheel" group assumption.


For a typical user, not being able to use sudo would mean not being in 
sudoers.  And in a way it's correct.  If you aren't in the wheel group, 
you're not included by the sudoers file any more.

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Ed Greshko
On 2020-01-12 10:24, Samuel Sieb wrote:
>
>> I deleted the Admin Priv, Reboot, and then enabled.  I was prompted for the 
>> root PW and it does as expected.
>> Now, if one has not enabled the root user, then there is more to be done.
>
> Sure, but by default there is no root password and the user doesn't have 
> permission to change anything.

The OP did not indicate that that root hasn't been enabled.  FWIW, the OP 
indicated that KDE was being used.
Unlike a GNOME install, the KDE install does have a prompt for enabling the 
root user.  So, and I should have
asked, it wasn't clear if the root was enabled or not.  No one else asked that 
Q.  So, it seems, assumptions
were being made.

>
>> FWIW, the "System Settings" process that I'm talking about simply places the 
>> user in the "wheel"
>> group.
>
> Yes, that's what administrator rights means for a user.

I also should have asked "how" the OP lost admin privileges since it was stated 
by the OP
"Removing the privilege has removed my account from sudoers" which is 
inconsistent with the
the "wheel" group assumption.

-- 
The key to getting good answers is to ask good questions.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Samuel Sieb

On 1/11/20 5:18 PM, Ed Greshko wrote:

On 2020-01-12 08:40, Samuel Sieb wrote:

On 1/11/20 6:05 AM, Ed Greshko wrote:

On 2020-01-11 20:54, Stephen Morris wrote:

      By mistake I removed administration privileges from my account under 
kde, which is the only account that had it. Removing the privilege has removed 
my account from sudoers. Is the only course of action I have to get it back to 
reinstall F29 and then upgrage to F31?


Are you saying that in the "User Manager" section of "System Settings" you have 
unchecked the
box "Enable administrator privileges for this user"?

If so, they why not just check it again?


Once you remove adminstrator rights from yourself, you don't have permission to 
change it again.


Have you tried it???

I have

I deleted the Admin Priv, Reboot, and then enabled.  I was prompted for the 
root PW and it does as expected.
Now, if one has not enabled the root user, then there is more to be done.


Sure, but by default there is no root password and the user doesn't have 
permission to change anything.



FWIW, the "System Settings" process that I'm talking about simply places the user in the 
"wheel"
group.


Yes, that's what administrator rights means for a user.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Ed Greshko
On 2020-01-12 09:18, Ed Greshko wrote:
> Kindly just dismiss what someone says without knowing what they've done.

Of course I meant to type...

Kindly *don't* just dismiss what someone.

-- 
The key to getting good answers is to ask good questions.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Ed Greshko
On 2020-01-12 08:40, Samuel Sieb wrote:
> On 1/11/20 6:05 AM, Ed Greshko wrote:
>> On 2020-01-11 20:54, Stephen Morris wrote:
>>>      By mistake I removed administration privileges from my account 
>>> under kde, which is the only account that had it. Removing the privilege 
>>> has removed my account from sudoers. Is the only course of action I have to 
>>> get it back to reinstall F29 and then upgrage to F31?
>>
>> Are you saying that in the "User Manager" section of "System Settings" you 
>> have unchecked the
>> box "Enable administrator privileges for this user"?
>>
>> If so, they why not just check it again?
>
> Once you remove adminstrator rights from yourself, you don't have permission 
> to change it again.

Have you tried it???

I have

I deleted the Admin Priv, Reboot, and then enabled.  I was prompted for the 
root PW and it does as expected.
Now, if one has not enabled the root user, then there is more to be done.

Kindly just dismiss what someone says without knowing what they've done.

FWIW, the "System Settings" process that I'm talking about simply places the 
user in the "wheel"
group.


-- 
The key to getting good answers is to ask good questions.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Benjamin Lowry via users
On Sat, 2020-01-11 at 23:54 +1100, Stephen Morris wrote:
>  Hi,
>  By mistake I removed administration privileges from my
> account 
> under kde, which is the only account that had it. Removing the
> privilege 
> has removed my account from sudoers. Is the only course of action I
> have 
> to get it back to reinstall F29 and then upgrage to F31?
> 
> regards,
> Steve
You should be able to boot into a root shell by entering grub and
adding "init=/bin/bash" to the end of your kernel command line. You can
probably find detailed instructions with some googling, but basically
after you do that you can remount the root drive as read/write and then
readd your user to the wheel (admin) group. -ben


signature.asc
Description: This is a digitally signed message part
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Samuel Sieb

On 1/11/20 6:05 AM, Ed Greshko wrote:

On 2020-01-11 20:54, Stephen Morris wrote:

         By mistake I removed administration privileges from my account under 
kde, which is the only account that had it. Removing the privilege has removed 
my account from sudoers. Is the only course of action I have to get it back to 
reinstall F29 and then upgrage to F31?


Are you saying that in the "User Manager" section of "System Settings" you have 
unchecked the
box "Enable administrator privileges for this user"?

If so, they why not just check it again?


Once you remove adminstrator rights from yourself, you don't have 
permission to change it again.

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Joe Zeff

On 01/11/2020 05:54 AM, Stephen Morris wrote:
Is the only course of action I have to get it back to reinstall F29 and 
then upgrage to F31?


Why would you do that when you can simply install F31 over your existing 
installation?

___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Ed Greshko
On 2020-01-11 20:54, Stephen Morris wrote:
>         By mistake I removed administration privileges from my account under 
> kde, which is the only account that had it. Removing the privilege has 
> removed my account from sudoers. Is the only course of action I have to get 
> it back to reinstall F29 and then upgrage to F31?

Are you saying that in the "User Manager" section of "System Settings" you have 
unchecked the
box "Enable administrator privileges for this user"?

If so, they why not just check it again? 

-- 
The key to getting good answers is to ask good questions.
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


RE: Loss of Administrative Privileges on Only Account

2020-01-11 Thread Patrick Laimbock
>      Hi,
>          By mistake I removed administration privileges from my account 
> under kde, which is the only account that had it. Removing the privilege 
> has removed my account from sudoers. Is the only course of action I have 
> to get it back to reinstall F29 and then upgrage to F31?

Use the procedure below to add yourself back to sudoers
https://docs.fedoraproject.org/en-US/Fedora/21/html/System_Administrators_Guide/sec-Changing_and_Resetting_the_Root_Password.html#proc-Resetting_the_Root_Password_Using_rd.break

Best,
Patrick
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Loss of Administrative Privileges on Only Account

2020-01-11 Thread Stephen Morris

    Hi,
        By mistake I removed administration privileges from my account 
under kde, which is the only account that had it. Removing the privilege 
has removed my account from sudoers. Is the only course of action I have 
to get it back to reinstall F29 and then upgrage to F31?


regards,
Steve
___
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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org