LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-13-2011, 08:31 PM   #1
Sonolin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Cannot run Wine as a different user


Here is the problem:

I want to set up a "global" wine directory, so both me and my girlfriend can play games on each others' accounts. Right now, I have wine set up so it can run in my account, but she has to log out and log into my account each time she wants to play a game which is far from ideal.

So, what I did was set up a "global" homeuser group for all user accounts on the system. Then, I moved my ~/.wine folder to /home/wine, and did chown :homeuser /home -R

Then I made a symlink to the /home/wine directory at ~/.wine and did the same for my GF's home directory. It works fine in my account, BUT if I change to my GF's account, I try to run wine and it says

"/home/xxxx/.wine not owned by you"

The directory permissions are 755 so I SHOULD be able to run wine to my knowledge.

... any solutions?
 
Old 03-13-2011, 08:45 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
I have no idea whether this will work and no way easily to test it, but I was reading about permissions and the book mentioned the setuid bit. Perhaps setting that would work.
 
Old 03-13-2011, 09:38 PM   #3
Sonolin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Interesting, I'll test that and let you know how it goes.
 
Old 03-14-2011, 11:44 AM   #4
Sonolin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
I don't think this will work as I want it to - I want the permissions to the shared folder at 755 so other users on my system don't mess up the shared wine directory. Using setuid, this would allow other users full write access to the directory when executing "wine *.exe". This isn't too big of a deal ATM - the most important thing is to get the solution to work (which after looking at the docs for setuid it should work).

Thank you for the help. What I will probably end up doing, is just re-compiling wine from source - I'm sure there are configure flags for this. If not, source diving is always fun.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when trying to run wine: "/usr/bin/wine: No such file or directory" Lolwhut Linux - Software 9 08-20-2016 04:10 AM
How to run daemon process being a normal user [not root user]. narendra1310 Linux - Software 1 10-26-2009 09:48 AM
Gconf-editor settings not sticking for root, sudo user, or user when run sandaili Fedora 1 07-19-2008 08:31 AM
wine software can it run all applications which can run in windows linusunis Linux - Software 4 06-14-2008 03:34 PM
Trying to run photoshop in wine. Install, but wont run. bruno buys Linux - Software 14 07-15-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:55 PM.

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