On Sep 18, 2009, at 1:06 PM, Daniel J. Luke wrote:

On Sep 18, 2009, at 3:57 PM, Scott Haneda wrote:
On Sep 17, 2009, at 9:44 PM, Scott Haneda wrote:
Hello, I am working on trying to make a change to a port that does not have user and group adding abilities, but it probably should. At this point, I need to confirm this by adding a user and group by hand, using dscl in Mac OS X 10.5

The port should use the adduser/addgroup commands (see 'man portfile')

Yes, thanks, eventually I will use those commands, though for the time being, I need to test that it works in this way, to be sure I am even on the right track.

I don't see how that's the case. Either you need a user/group added (in which case you should use adduser/addgroup) or you don't.

Because there is some strange interaction with the ftpd and users and groups that I am trying to pin down. How the user and group is displayed on the file system, versus how it is shown in an ftp client.

If I alter the portfile, I have to to rebuild the source every time to test my work, and as far as I know, MacPorts also does not remove users and groups. It seems simpler and faster to me to just test this one issue this way, then close up with the port file changes.

If you're just checking to see if you need a user/group added, then it seems like it would be easier to just use adduser/addgroup and then test.

I think what I would really like to do is also create a user and group more like www and mysql, where they have both the _foo and foo version, but I can not figure this out.

why? I don't think you want/need to have the user be 'special' in this way.

Any idea what the significance of the _user and _group is?

I would guess that it's just to mark that they're system-provided non-login users.

Also, you don't want to use low number uid/gids (which adduser/ addgroup will not use) since they're reserved by Apple.

Ok, understood. Though I thought anything over 499 would show up in the login window, which is what I was trying to avoid. This user and group I am creating is indeed a non login user. How does MacPorts determine which uid/guid to use? Is there a higher range that it starts with that also does not show up in the login window?

Thanks
--
Scott * If you contact me off list replace talklists@ with scott@ *

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to