Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

chgrp with domain\domain+admins

88 views
Skip to first unread message

Roger

unread,
Mar 23, 2012, 1:04:35 AM3/23/12
to
I'm trying to change the group of a folder called 'foo' and it's files
using chgrp to COMPANY\Domain+Admins

I've tried all kinds of variations:

chgrp -R \"COMPANY\\Domain+Admins\" foo

But it's not liking that.

This is kornshell.

Any ideas? I have tried other variations but unsuccessfull.

Thank you in advance.
-R

Aragorn

unread,
Mar 23, 2012, 2:52:52 AM3/23/12
to
On Friday 23 March 2012 06:04, Roger conveyed the following to
comp.unix.shell...

> I'm trying to change the group of a folder [...

The correct word is "directory", please. A folder is an icon, which may
or may not represent a directory, a file, nor none of the
aforementioned.

> called 'foo' and it's files using chgrp to COMPANY\Domain+Admins

Do you have a group by the name "COMPANY\Domain+Admins" [*] in
"/etc/group" and in "/etc/passwd"? Or are we talking of something
outside of UNIX, such as users and groups in a Samba configuration?

[*] Or any group names of a similar construct, that is.

--
= Aragorn =
(registered GNU/Linux user #223157)
Message has been deleted

Roger

unread,
Mar 23, 2012, 9:38:00 AM3/23/12
to
No,
Actually this is using a Unix emulator on a win2008 server. So, I
guess in my mind, it is a folder. I guess I am a horrible person for
thinking so right?

Anyways, this is using a Unix emulator with Korn shell.

Thanks again,
Roger

Ben Bacarisse

unread,
Mar 23, 2012, 10:53:26 AM3/23/12
to
Roger <rfre...@gmail.com> writes:

> No,
> Actually this is using a Unix emulator on a win2008 server. So, I
> guess in my mind, it is a folder. I guess I am a horrible person for
> thinking so right?

No, but surely it helps to know the right terms?

> Anyways, this is using a Unix emulator with Korn shell.

The shell part of the question is simple. Writing

chgrp -R \"COMPANY\\Domain+Admins\" foo

passes this string to chgrp:

"COMPANY\Domain+Admins"

Note that this includes the quotes! That looks very odd indeed. I
dont't know how your emulator works, but group names with quotes in them
seem very unlikely. Do you have a file or directory with the right
ownership already? If so, what is the output of

ls -ld file_or_dir_that_is_ok

That will tell you what the group name looks like.

--
Ben.
0 new messages