LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2004, 01:19 AM   #1
pedrosan
LQ Newbie
 
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21

Rep: Reputation: 15
A problem with UNIX users groups


Hi

I am using UNIX shells on a Macintosh.
I would like to :
- Create a new user group
- Define myself as a member of this group
- Modify the group of some files and directories to this new group

I modified the /etc/group, adding this line:
cvs_group:*:600p,cvsuser

pp is my login and cvsuser is another account on the Macintosh.

Then I tried to change the group of a directory and its content.
I used the following command:
Bash$ chgrp -R 600 <directory_path>

But I was prompted the following message:
chgrp: you are not a member of group 600

And my directory and its included files and subdirectories were set to group "admin".

Does anybody know why this happened and how I could become a member of my new group.

Thanks for your help

PEDROSAN
 
Old 06-09-2004, 01:20 AM   #2
pedrosan
LQ Newbie
 
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry, an error occured i my previous message. The line I added in the /etc/group file is:

cvs_group:*:600p,cvsuser
 
Old 06-09-2004, 01:22 AM   #3
pedrosan
LQ Newbie
 
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, I use spaces but there should not be any. It is just to disable the smiley:

cvs_group:*:600 : pp,cvsuser
 
Old 06-09-2004, 01:54 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I'm going to take something of a wild guess here since I know next to zilch about Mac OS X. I do know, however, that for user and group management it does not use the standard Unix files (/etc/passwd and /etc/group), but uses something called the Netinfo Database. Therefore, modifying the /etc/group file may not actually do anything. Probably the easiest way to do this is just go through the Apple GUI or Google on Netinfo database. I know there are command line tools for manipulating it, but I have no idea how to use them.
 
Old 06-09-2004, 09:00 PM   #5
pedrosan
LQ Newbie
 
Registered: Apr 2004
Location: Osaka, JAPAN
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks a lot btmiller.

I finally found the solution. If anybody wanna know how to create or modify a group on Mac OS X just search for "Netinfo Manager" in the following page:
http://developer.apple.com/internet/...soverview.html
Everything is clearly explained.

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Windows NT Groups to UNIX Groups - why? kenji1903 Linux - Networking 4 10-16-2007 11:52 AM
groups and users twb2005 Linux - Newbie 7 10-10-2005 06:21 PM
users and groups twb2005 Red Hat 1 10-10-2005 01:47 PM
users and groups Red Squirrel Linux - Newbie 2 02-22-2004 07:37 PM
Why did you experienced users of Unix change to unix over Windows? Laptop2250 Linux - General 11 10-28-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration