Unix administration - visudo and NIS. Trying to add a group with a space in the name.

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > February 2006 > visudo and NIS. Trying to add a group with a space in the name.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author visudo and NIS. Trying to add a group with a space in the name.
Cavorticus@gmail.com

2006-02-08, 5:57 pm

Greetings,

Using visudo, I attempted to add a group from my windows system. The
windows system has Services for UNIX loaded.
The group is Domain Admins
ie...
%Domain Admins (ALL)=ALL ALL

When I try to exit the sudoers edit, I get a syntax error message.
If I try a windows group without a space in the name such as
DnsAdmins to sudoers, there is no error and everything works fine.

My question is this: "How can I allow a group name that contains a
space?" I tried single quotes and double quotes. Still did not work.


Thanks,
Ca\/0r+1cu$

Chris Cox

2006-02-08, 9:06 pm

Cavorticus@gmail.com wrote:
> Greetings,
>
> Using visudo, I attempted to add a group from my windows system. The
> windows system has Services for UNIX loaded.
> The group is Domain Admins
> ie...
> %Domain Admins (ALL)=ALL ALL
>
> When I try to exit the sudoers edit, I get a syntax error message.
> If I try a windows group without a space in the name such as
> DnsAdmins to sudoers, there is no error and everything works fine.
>
> My question is this: "How can I allow a group name that contains a
> space?" I tried single quotes and double quotes. Still did not work.
>
>



Even if it's possible, it's certainly not portable. I'd avoid
usernames and groups with spaces in them.

Since you're using SFU, you might just ask Microsoft.
Dave Hinz

2006-02-09, 6:02 pm

On Wed, 08 Feb 2006 19:08:29 -0600, Chris Cox <ccox_nopenotthis@airmail.net> wrote:
> Cavorticus@gmail.com wrote:



Call it Domain_Admins and get on with life.
[vbcol=seagreen]

Yup.
[vbcol=seagreen]
[vbcol=seagreen]
> Even if it's possible, it's certainly not portable. I'd avoid
> usernames and groups with spaces in them.


Absolutely. There are countless reasons to not force a space into a
group or username, even if you can do it. Not the least of which is
"there's no good reason not to just use an underscore".

> Since you're using SFU, you might just ask Microsoft.


Ugh. I'd hate to see what kind of charlie-foxtrot they'd come up with
to force that space to 'work'.

Chris Cox

2006-02-12, 5:56 pm

Dave Hinz wrote:
> On Wed, 08 Feb 2006 19:08:29 -0600, Chris Cox <ccox_nopenotthis@airmail.net> wrote:
>
>
> Call it Domain_Admins and get on with life.
>
>
> Yup.
>
>
>
> Absolutely. There are countless reasons to not force a space into a
> group or username, even if you can do it. Not the least of which is
> "there's no good reason not to just use an underscore".
>
>
> Ugh. I'd hate to see what kind of charlie-foxtrot they'd come up with
> to force that space to 'work'.
>


I was sorta being fecetious

First mistake was giving NIS over to the dark side... Just my
opinion. It's not unreasonable to ask Microsoft since they've
supposedly taken on the role of supporting NIS.

Dave Hinz

2006-02-13, 6:04 pm

On Sun, 12 Feb 2006 14:13:06 -0600, Chris Cox <ccox_nopenotthis@airmail.net> wrote:
> Dave Hinz wrote:
>
> I was sorta being fecetious
> First mistake was giving NIS over to the dark side... Just my
> opinion. It's not unreasonable to ask Microsoft since they've
> supposedly taken on the role of supporting NIS.


Maybe they've started supporting their implementation of NIS, but
nothing they have to do with anything will ever be on any of _my_ boxes.

Not sure that sentence is gramattically correct, but it gets my point
across pretty well, I think.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com