D
D
dflbrhekbn2017-12-13 12:30:29
linux
dflbrhekbn, 2017-12-13 12:30:29

How to give domain users permission to sudo?

There is a domain (Windows Server 2012), there is a PC with Centos 6.6. The PC is added to the domain, the domain user on this PC. How to allow domain users (group - linuxadmin) to use sudo ?
I did so. I logged in as a domain user, wrote "id" in the terminal, found my group and its identifier -
groups = ....,16777229(KVDRO\linuxadmin)
Then in /etc/sudoers I write this:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
%KVDRO\\linuxadmin ALL = (ALL:ALL) ALL : ALL
After that when I write : sudo something_there
AND I get : sudo: >>> /etc/sudoers: syntax error near line 99 <<< - this is the number of my added
sudo line: parse error in /etc/sudoers near line 99
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy module
How to right ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2017-12-13
@CityCat4

getent group [group-name] shows what?

# getent group jabberuser
jabberuser:*:231636:mplab

it shows me like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question