Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I would like to restrict Wine to run only some specified commands, for example: $wine "Z:\data\my_app\file.exe" but restrict to run all other commands with wine to prevent users from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2013
    Posts
    1

    Restricting Wine to run with specified arguments only


    Hello,
    I would like to restrict Wine to run only some specified commands, for example: $wine "Z:\data\my_app\file.exe" but restrict to run all other commands with wine to prevent users from installing their apps.
    I know, they may change Z:\ mounting in Wine configuration and do it, but it is not a problem at this time.
    I tried it with /etc/sudoers, but it did not work: %users ALL=(ALL) /usr/bin/wine Z:\data\my_app\file.exe, !/usr/bin/wine
    Any idea how can I achieve this restriction?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,989
    Good question. I don't know if SELinux ACL's will do this or not - I don't have enough experience to say for sure, but it should let you do that. Of course, it may cause other problems that you won't know about until you try it!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •