Hello guys, I need to run an application that requires the user to be in a specific group (let's say "SomeApp Admin"). I couldn't find any documentation about this, either here or on the wiki (although I sometimes suck at searching - slap me if I did), so I took a look at the server/token.c code. At first glance it seems like the groups are hardcoded in there, but I might have missed something. So, back to my initial question, is there any way to create groups? I don't mind writing a bit of C if that is what's needed. Thanks! T.
Martin Gregorie
2009-Sep-15 10:01 UTC
[Wine] Running an app that require specific NT groups
> So, back to my initial question, is there any way to create groups? I > don't mind writing a bit of C if that is what's needed. >Use the 'Users and Groups' applet. Under Fedora that's in the System|Administration menu. Create the group you need and then add it to your user. Martin
Thank for your reply - however I wasn't asking about Unix groups.
Martin Gregorie wrote:> On Tue, 2009-09-15 at 05:17 -0500, TSeeker wrote: > > > Thank for your reply - however I wasn't asking about Unix groups. > > > > > Have you tried setting them? Its more likely than not that WINE will > make the translation. > > > MartinI have, but it didn't seem to affect Wine's groups, as returned by get_token_groups. In addition, running a "grep -r getgroups" on Wine 1.0.1's sources returned no matches. I'll check out the latest dev version.
Austin English
2009-Sep-15 15:54 UTC
[Wine] Running an app that require specific NT groups
On Tue, Sep 15, 2009 at 2:36 AM, TSeeker <wineforum-user at winehq.org> wrote:> Hello guys, > > I need to run an application that requires the user to be in a specific group (let's say "SomeApp Admin"). > > I couldn't find any documentation about this, either here or on the wiki (although I sometimes suck at searching - slap me if I did), so I took a look at the server/token.c code. At first glance it seems like the groups are hardcoded in there, but I might have missed something.I don't believe this is implemented. IIRC, the user is listed as an administrator, with your unix username as your windows username, in the group 'administrators'.> So, back to my initial question, is there any way to create groups? I don't mind writing a bit of C if that is what's needed.Patches are definitely welcome. Either mapping it to the Unix groups, and/or allowing an override in winecfg/registry would be helpful. If interested, I'd e-mail wine-devel for advice. -- -Austin
> I don't believe this is implemented. IIRC, the user is listed as an > administrator, with your unix username as your windows username, in > the group 'administrators'.Yeah, that's what I figured.> Patches are definitely welcome. Either mapping it to the Unix groups, > and/or allowing an override in winecfg/registry would be helpful. If > interested, I'd e-mail wine-devel for advice.I'll give that a shot tomorrow. I'd rather go for the second solution as I'm not too sure Unix groups would have any meaning in this context, but I'll have to ask the devel list - I also need to read a bit about NT's privileges/users/groups if I am to try. Thanks![/quote]
TSeeker wrote:> So, back to my initial question, is there any way to create groups? I don't mind writing a bit of C if that is what's needed.Wine doesn't have support for any additional groups. You'll have to hack things. All depends on how this program checks for things. You might have to patch number of places... And what you want to do - fix it "right" or hack something enough for your program to run.