You are not logged in.

#1 2022-05-11 07:41:07

RaZorr
Member
Registered: 2021-12-02
Posts: 42

[SOLVED] Inconsistencies in sudoers file syntax

As mentioned in the wiki from Sudo :

root            ALL = (ALL:ALL) ALL
%wheel          ALL = (ALL:ALL) ALL

This is the same syntax used in

/etc/sudoers

file shipped with the package.

However,

man sudoers

uses this:

root            ALL = (ALL) ALL
%wheel          ALL = (ALL) ALL

Also, here sudoers(5) §EXAMPLES

Last edited by RaZorr (2022-08-11 16:52:32)

Offline

#2 2022-05-11 07:59:30

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Inconsistencies in sudoers file syntax

Do you want to learn about this syntax? https://man.archlinux.org/man/sudoers.5#Runas_Spec

Or why is this in Arch Discussion?

Offline

#3 2022-05-11 08:03:21

RaZorr
Member
Registered: 2021-12-02
Posts: 42

Re: [SOLVED] Inconsistencies in sudoers file syntax

I was asking to see whether the example given in man is correct? https://man.archlinux.org/man/sudoers.5#EXAMPLES

root		ALL = (ALL) ALL
%wheel		ALL = (ALL) ALL

If not and since it doesn't match the current syntax, shouldn't it be updated?

Last edited by RaZorr (2022-05-11 08:04:14)

Offline

#4 2022-05-11 08:19:16

ayekat
Member
Registered: 2011-01-17
Posts: 1,632

Re: [SOLVED] Inconsistencies in sudoers file syntax

Both are correct. See the `Runas_Spec` section in the sudoers manpage for an explanation of what the part between the parentheses means.

Last edited by ayekat (2022-05-11 08:19:37)


pkgshackscfgblag

Offline

#5 2022-05-11 08:25:19

RaZorr
Member
Registered: 2021-12-02
Posts: 42

Re: [SOLVED] Inconsistencies in sudoers file syntax

Solved. Should've posted in the newbie corner tongue. Sorry

Offline

#6 2022-05-11 08:50:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,587
Website

Re: [SOLVED] Inconsistencies in sudoers file syntax

Please remember to mark your thread as solved.

https://wiki.archlinux.org/title/Genera … ow_to_post

Mod note: Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB