I don't know how to check the user Wine runs under (maybe it's your own, maybe it's a specific "wine" user, I don't know), but to check file ownership you can use
Code:
ls -l
Feel free to add a directory path after that (ls -l /usr/games/ or whatever) to see that directory. The list look something along these lines (your details will vary):
Code:
avwolf@miranda:~/web/phite$ ls -l
total 52
-rw-rw-r-- 1 avwolf users 547 2007-09-27 12:25 config.inc.php
-rw-rw-r-- 1 avwolf users 3777 2007-10-04 18:13 dbconnection.class.php
-rw-rw-r-- 1 avwolf users 864 2007-10-02 16:57 index.php
-rw-rw-r-- 1 avwolf users 522 2007-09-26 17:03 initrooms.inc.php
-rw-rw-r-- 1 avwolf users 202 2007-09-26 12:16 invalidcommand.txt
-rw-rw-r-- 1 avwolf users 1932 2007-09-27 16:46 parser.php
-rw-rw-r-- 1 avwolf users 34 2007-09-26 11:35 readme.txt
-rw-rw-r-- 1 avwolf users 4267 2007-10-04 18:13 room.class.php
-rw-rw-r-- 1 avwolf users 320 2007-09-26 11:58 rooms.xml
-rw-rw-r-- 1 avwolf users 2088 2007-10-04 18:14 script.class.php
-rw-rw-r-- 1 avwolf users 1363 2007-10-04 18:05 scripting_guide.txt
-rw-rw-r-- 1 avwolf users 181 2007-10-03 16:48 scripttest.php
drwxrwxr-x 2 avwolf users 48 2008-05-03 18:50 temp
The things you care about are the permission string (the first 10 characters) and then the user name ("avwolf" here) and the group name ("users" here). The permissions are setup as a flag as to if this is a directory (see the "d" on the entry for "temp" at the bottom) and then three sets of three characters. Those characters are the actual permissions -- read (r), write (w), and execute (x). The first set of three is for the owner, the second is for the group, and the third is for everybody else.
The directory you're installing in needs write permissions for the user Wine is running as. If you don't know who that user is, or you're really lazy, you can just set the permission for "everybody." (This is less secure, but security is probably not a top priority for you.)
Change ownership with chown:
Code:
sudo chown <user> <space separated list of files or directories, wildcards permitted>
Permissions are set with chmod. I use octal to set the file permissions, so I can never remember the way to do it with characters, but if you want to give everyone permissions to do whatever they want:
Code:
sudo chmod 777 <space separated list of files or directories, wildcards permitted>
Note that directories
must have execute permissions, or you won't be able to change to that directory.
(For the record, most files default to 644, or read-write owner, read group, read everybody; the ones in the example are 664. Directories default to 755 for read-write-execute owner, read-execute group, read-execute everybody; the one in the example is 775.)