dscl
Daniel J. Luke
dluke at geeklair.net
Fri Sep 18 13:06:13 PDT 2009
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.
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.
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-dev
mailing list