Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Adding Group with Spaces to Sudoers?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Humbletech99
Posts: 365
Joined: 2005-12-29 00:03

[SOLVED] Adding Group with Spaces to Sudoers?

#1 Post by Humbletech99 »

Hi all,
I'm trying to add a group with a space in the name to the sudoers file unsuccessfully (I'm pretty sure I'm not supposed to do this). What I want to know is if there is a way that I can do this anyway and make it work normally. The reason is that I'm trying to add the "domain admins" group from the NT domain authentication to have all sudo rights on this machine.

I've tried using single and double quotes, all of the following lines in turn:

Code: Select all

%domain admins ALL=(ALL) ALL
%"domain admins" ALL=(ALL) ALL
"%domain admins" ALL=(ALL) ALL
%'domain admins' ALL=(ALL) ALL
'%domain admins' ALL=(ALL) ALL
None of these seem to be valid syntax. Can anybody recommend how I should do this?
Last edited by Humbletech99 on 2006-01-16 17:13, edited 1 time in total.

Harold
Posts: 1482
Joined: 2005-01-07 00:15
Been thanked: 3 times

#2 Post by Harold »

This would be a good question for the sudo-users mailing list.
http://www.sudo.ws/mailman/listinfo/sudo-users

User avatar
Humbletech99
Posts: 365
Joined: 2005-12-29 00:03

#3 Post by Humbletech99 »

I'm not fond of mailing lists cos they flood your mailbox.

User avatar
Humbletech99
Posts: 365
Joined: 2005-12-29 00:03

#4 Post by Humbletech99 »

never mind, just applied standard unix knowledge and escaped the space with a slash... works a treat.

Post Reply