add_users won't?!
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Wed May 16 04:41:49 PDT 2012
> I'm trying to add a user (with a new group) and I can't get it to work. Below are the relevant bits from the portfile.
>
> set mythtvuser ${name}user
> set mythtvgroup myth
> set mythtvhomedir ${prefix}/var/${mythtvuser}
> add_users ${mythtvuser} group=${mythtvgroup} home=${mythtvhomedir} \
> passwd=mythtv realname=MythTV_User
>
> There doesn't seem to be an error message from the add_users line but when I use xinstall in the pre-activate phase, it complains there is no such group. Also, in System Preferences->Accounts, my user doesn't show up. (It should, right?)
>
> If you want to see the full Portfile (with these bits commented-out), go to:
> http://dl.dropbox.com/u/26787680/Portfile.MythTV.2012May16
Just checking: you purposefully commented-out the add_users lines after having run it and not had it commented the whole time, right? :-)
> I notice that other ports, like couchdb and dbus use separate addgroup and adduser functions. Are these deprecated?
Correct.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120516/6a901cc1/attachment-0001.bin>
More information about the macports-dev
mailing list