LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2011, 06:58 PM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
creating wineprefix external to $HOME


hey guys,

i've been trying to create a wine prefix that is able to be used by multiple users (i.e outside $HOME/* or /home/$USERNAME/*) so that i don't need to re-install programs for every user and use the extra disk space, however when i try to use winetricks in said prefix it complains that my user does not own the directory (even when i set it so that the user is the sole owner), please advise if this is possible and if not, why not?
 
Old 01-17-2011, 06:00 AM   #2
jhuizer
LQ Newbie
 
Registered: Apr 2009
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Person_1873 View Post
hey guys,

i've been trying to create a wine prefix that is able to be used by multiple users (i.e outside $HOME/* or /home/$USERNAME/*) so that i don't need to re-install programs for every user and use the extra disk space, however when i try to use winetricks in said prefix it complains that my user does not own the directory (even when i set it so that the user is the sole owner), please advise if this is possible and if not, why not?
I found, when directing the wine prefix to /tmp/wine, I need to mkdir /tmp/wine before being allowed to do WINEPREFIX=/tmp/wine wine whatever, even though /tmp is world-writable;

Hope that helps!
 
Old 01-17-2011, 04:10 PM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
@jhuizer the directory in fact already existed and i set the UNIX ownership and permissions to the user that needed access.
 
Old 01-18-2011, 09:36 AM   #4
jhuizer
LQ Newbie
 
Registered: Apr 2009
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Person_1873 View Post
@jhuizer the directory in fact already existed and i set the UNIX ownership and permissions to the user that needed access.
This must be something picky with ownerships... I don't really have much experience there;

I tried the following:
Code:
(as root)
addgroup wine
usermod -a -G wine (regular user)

cd /usr/local/
mkdir data
chown root:wine data
chmod 775 data

(as my regular user)
mkdir data/wine
chgrp wine data/wine
WINEPREFIX=/usr/local/data/wine winecfg
The end result still isn't very useful yet - the folder is still owned by me as the user, and 'wine' doesn't appear as group there currently; a recursive chown might help there, but am still not very sure whether this will really allow you to do what you want.

Couldn't get this to work without having a 'data' folder in between, I still got the error '/usr/local/wine is not owned by you'
 
Old 01-18-2011, 10:26 PM   #5
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
yea, i did this already too, it seems to be a problem with the winetricks script, might send this through to the devs as a bug report
 
Old 01-19-2011, 09:43 AM   #6
jhuizer
LQ Newbie
 
Registered: Apr 2009
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Person_1873 View Post
yea, i did this already too, it seems to be a problem with the winetricks script, might send this through to the devs as a bug report
I didn't use winetricks, just winecfg (a program that comes with wine) - so if you will ask or send a bug report, it might be better to post it for the wine program itself (winetricks is just a bash shell program that in turn calls wine)
 
  


Reply

Tags
wine wineprefix multiuser



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a group home directory powerpleb Linux - Newbie 7 09-07-2012 12:42 AM
Useradd not creating home directory when creating newuser meneedham Linux - Newbie 4 10-05-2007 12:11 PM
Creating my first home server... Help! cullen39 Linux - Server 2 03-13-2007 10:39 PM
creating home directory jitheshmurali Linux - Networking 2 04-24-2006 06:03 AM
Creating a home partition CGameProgrammer Linux - Hardware 12 10-13-2004 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration