Re: [expert] Word97 in Linux -- Mission Impossible?

2001-05-21 Thread Dave Sherman

Benjamin,

Regarding the umask you mentioned, this is a simple command to run. As 
root, enter the following in an xterm:
chmod -u /usr/11R6/bin/wine
or whatever the correct path is to wine on your system.

The umask is a way of forcing a program to run as a specific user, no 
matter who is actually running it. By using the above command as root, you 
have now caused wine to run as user root, no matter if you actually call 
it as user benjamin or anyone else.

This is, of course, a security risk, since anyone who runs this program 
now has some sort of root access to the system, even if limited. And if 
there is a buffer overflow or other security bug in wine, setting umask to 
root may allow a user to even crack the system and get a root terminal! 
Bad news. But if your system is primarily for just yourself, or your 
family, then the security hazard is much less.

Hope this helps,
Dave

On Monday 21 May 2001 04:01, thus spake Benjamin Sher:
> Dear friends:
[snip]
> Checking again the documentation on Codeweavers' page, I learned that
> you need to run wine as "root" for Windows applications to work in
> Linux. Actually, the User's Guide lists three workaround, including one
> tactic involving a "root-file" in the user directory (which I tried but
> in vain) and another having to do with "umask" (which I did not
> understand) and something else that has to do with "shadowing".

-- 
"...[W]e preach Christ crucified: a stumbling block to Jews and
foolishness to Gentiles, but to those whom God has called, both Jews
and Greeks, Christ the power of God and the wisdom of God."
(1 Cor 1:23-24)




[expert] Word97 in Linux -- Mission Impossible?

2001-05-21 Thread Benjamin Sher

Dear friends:

I have spent the entire evening trying to install Word97 in LM 8.0.

Well, I started my installation of MSWord97 after hearing from a man by the 
name of Hoyt, who very kindly shared the basic facts with me. Following his 
instructions, I downloaded the itcl rpm, the X11R6-contrib-lib rpm, then 
uninstalled my current wine (rpm -e) , downloaded the codeweavers-wine file, 
installed it. No problems. No errors. I then read the User's Guide on the  
Codeweaver's web site, especially the section pertaining to dual-boot 
installation of wine and then proceeded to configure the codeweavers-wine 
using its graphical configuration tool. You can get the codeweaver-wine file 
and plain English documentation at:

http://www.codeweavers.com/technology/wine/help.php

For the record, I have included the .wine.conf file at the bottom of this 
message:

I then tried:

$wine regedit

And the Windows registry appeared.

Then,  I tried:

$wine notepad

And it appeared. I was able to write a few lines but could not save the file. 
The hourglass kept spinning interminably and I had to shut it down with 
Cnt+Alt+Esc.

I then tried to install Word97.

wine m:\setup.exe

(m is the default cd-rom drive in my codeweavers program).


1) When I chose the default /mnt/windows approach, I could not even get setup 
to appear on the screen. 

2) When I chose the /home/sher/fake_windows route, I succeeded in seeing 
setup on the screen and even typed my name and registration number but setup 
refused to go any further.

3) When I tried to access my Word97 program directly (it is, after all, 
already installed on my Windows partition) with:

wine "c:\Program Files\Microsoft Office\Office\WINWORD.EXE"

I did indeed succeed in launching MS Word! But, I could not do anything with 
it. It appeared as a window within Linux, but my mouse and keyboard had no 
effect on it. 

Checking again the documentation on Codeweavers' page, I learned that you 
need to run wine as "root" for Windows applications to work in Linux. 
Actually, the User's Guide lists three workaround, including one tactic 
involving a "root-file" in the user directory (which I tried but in vain) and 
another having to do with "umask" (which I did not understand) and something 
else that has to do with "shadowing". 

So, I have apparently reached a dead-end.

May I ask if I am close to success and, if so,  if it's rather simple, could 
I ask you for help with this last stage. It would be very useful to have 
Word97 in Linux. And, of course, I will publish my instructions on the 
Mandrake lists so that others can benefit from your expertise and my 
experience.

Thanks so very much.

Below is my wine.conf

Benjamin

[sher@localhost sher]$ cd .wine
[sher@localhost .wine]$ ls
cachedmetrics.:0.0  system.reg  userdef.reg
config  user.regwineserver-localhost.localdomain/
[sher@localhost .wine]$ cat config
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;;
;; MS-DOS drives configuration
;;
;; Each section has the following format:
;; [Drive X]
;; Path=xxx   (Unix path for drive root)
;; Type=xxx   (supported types are 'floppy', 'hd', 'cdrom' and 'network')
;; Label=xxx  (drive label, at most 11 characters)
;; Serial=xxx (serial number, 8 characters hexadecimal number)
;; Filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 
'unix')
;;   This is the FS Wine is supposed to emulate on a certain
;;   directory structure.
;;   Recommended:
;;   - "win95" for ext2fs, VFAT and FAT32
;;   - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
;;   DON'T use "unix" unless you intend to port programs using Winelib !
;; Device=/dev/xx (only if you want to allow raw device access)
;;

[Drive A]
"Type" = "floppy"
"Path" = "/mnt/floppy"
"Label" = "/mnt/floppy"
"Device" = "/dev/fd0"

[Drive C]
"Type" = "hd"
"Path" = "/mnt/windows"
"Label" = "/mnt/windows"
"FS" = "win95"

[Drive M]
"Type" = "cdrom"
"Path" = "/mnt/cdrom"
"Label" = "/mnt/cdrom"
"FS" = "win95"
"Device" = "/dev/hdd"

[Drive X]
"Type" = "hd"
"Path" = "/tmp"
"Label" = "Tmp Drive"
"FS" = "win95"

[Drive Y]
"Type" = "network"
"Path" = "${HOME}"
"Label" = "Home"
"FS" = "win95"

[Drive Z]
"Type" = "network"
"Path" = "/"
"Label" = "Root"
"FS" = "win95"

[wine]
"Windows" = "C:\\windows"
"System" = "C:\\windows\\system"
"Path" = "C:\\windows;C:\\windows\\system;X:\\;Y:\\"
"Temp" = "X:\\"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;ShowDirSymlinks=1
"ShellLinker" = "wineshelllink"

[DllDefaults]
"DefaultLoadOrder" = "native, builtin, so"

[DllOverrides]
"commdlg" = "native, builtin"
"comdlg32" = "native, builtin"
"ver" = "native, builtin"
"version" = "native, builtin"
"shell" = "native, builtin"
"shell32" = "native, builtin"
"lzexpand"