Wine configuration directory in root found unexpectedly

Asked by A. Denton

Hello everyone!

I'm running a large wine installation with dozens of office applications and some games. I also installed winetricks and a lots of codecs, partially modified the way it loads DLL's, etc. Since I use Xubuntu and XFCE I also had to write some startup scripts for games (location is: ~/.scripts/*) to provide these games with additional parameters, etc. So far everything works fine...

Nevertheless I recently discovered a direcory named "/root/.wine". I NEVER ran wine as root or put something like "sudo wine <foo>" into any of my scripts.

The directory ("/root/.wine") can be read and writtten to also by OTHERS not only user or group (drwxr-xr-x). The directory is about 3.6 Mb in size and contains also system executables. It lacks of configuration settings in the typical Windoze directories ([..]/drive_c/Windows/profiles) and thus indicates it hasn't been ever actively used. Files in "/root/.wine/drive_c/Windows" are explorer.exe, regedit.exe, among few others, and about 70 libraries and executables within the included windows32 directory.

The following is a directory tree for further diagnosis:

denton@TRON:/root/.wine$ tree -aNugshxCA
.
├── [root root 11] .update-timestamp
├── [root root 4.0K] dosdevices
│ ├── [root root 10] c: -> ../drive_c
│ └── [root root 1] z: -> /
├── [root root 4.0K] drive_c
│ ├── [root root 4.0K] Programme
│ │ ├── [root root 4.0K] Gemeinsame Dateien
│ │ └── [root root 4.0K] Internet Explorer
│ │ └── [root root 2.5K] iexplore.exe
│ └── [root root 4.0K] Windows
│ ├── [root root 4.0K] Fonts
│ ├── [root root 4.0K] command
│ │ └── [root root 54K] start.exe
│ ├── [root root 1.0K] explorer.exe
│ ├── [root root 1.0K] hh.exe
│ ├── [root root 4.0K] inf
│ ├── [root root 84K] notepad.exe
│ ├── [root root 4.0K] profiles
│ │ ├── [root root 4.0K] All Users
│ │ │ ├── [root root 4.0K] Anwendungsdaten
│ │ │ ├── [root root 4.0K] Desktop
│ │ │ ├── [root root 4.0K] Dokumente
│ │ │ ├── [root root 4.0K] Favoriten
│ │ │ ├── [root root 4.0K] Startmenü
│ │ │ │ └── [root root 4.0K] Programme
│ │ │ │ └── [root root 4.0K] Autostart
│ │ │ └── [root root 4.0K] Vorlagen
│ │ └── [root root 4.0K] root
│ │ ├── [root root 4.0K] Anwendungsdaten
│ │ ├── [root root 4.0K] Cookies
│ │ ├── [root root 4.0K] Desktop
│ │ ├── [root root 4.0K] Druckumgebung
│ │ ├── [root root 5] Eigene Bilder -> /root
│ │ ├── [root root 5] Eigene Dateien -> /root
│ │ ├── [root root 4.0K] Favoriten
│ │ ├── [root root 4.0K] Lokale Einstellungen
│ │ │ ├── [root root 4.0K] Anwendungsdaten
│ │ │ ├── [root root 4.0K] Temporary Internet Files
│ │ │ └── [root root 4.0K] Verlauf
│ │ ├── [root root 5] Meine Musik -> /root
│ │ ├── [root root 5] Meine Videos -> /root
│ │ ├── [root root 4.0K] Netzwerkumgebung
│ │ ├── [root root 4.0K] Recent
│ │ ├── [root root 4.0K] SendTo
│ │ ├── [root root 4.0K] Startmenü
│ │ │ └── [root root 4.0K] Programme
│ │ │ └── [root root 4.0K] Autostart
│ │ └── [root root 4.0K] Vorlagen
│ ├── [root root 160K] regedit.exe
│ ├── [root root 4.0K] system
│ ├── [root root 453] system.ini
│ ├── [root root 4.0K] system32
│ │ ├── [root root 1.0K] actxprxy.dll
│ │ ├── [root root 2.4K] advapi32.dll
│ │ ├── [root root 1.0K] advpack.dll
│ │ ├── [root root 2.4K] cabinet.dll
│ │ ├── [root root 252K] cmd.exe
│ │ ├── [root root 59K] comctl32.dll
│ │ ├── [root root 410K] comdlg32.dll
│ │ ├── [root root 1.0K] control.exe
│ │ ├── [root root 44K] crypt32.dll
│ │ ├── [root root 2.4K] d3d8.dll
│ │ ├── [root root 2.4K] d3d9.dll
│ │ ├── [root root 1.0K] dbghelp.dll
│ │ ├── [root root 1.0K] ddhelp.exe
│ │ ├── [root root 2.4K] ddraw.dll
│ │ ├── [root root 1.0K] dosx.exe
│ │ ├── [root root 4.0K] drivers
│ │ │ └── [root root 1.0K] mountmgr.sys
│ │ ├── [root root 2.5K] dsound.dll
│ │ ├── [root root 1.0K] dsound.vxd
│ │ ├── [root root 2.4K] gdi32.dll
│ │ ├── [root root 1.0K] glu32.dll
│ │ ├── [root root 14K] hhctrl.ocx
│ │ ├── [root root 1.0K] imaadp32.acm
│ │ ├── [root root 1.0K] imagehlp.dll
│ │ ├── [root root 1.0K] itircl.dll
│ │ ├── [root root 4.5K] itss.dll
│ │ ├── [root root 421K] kernel32.dll
│ │ ├── [root root 1.0K] msadp32.acm
│ │ ├── [root root 1.0K] msg711.acm
│ │ ├── [root root 41K] mshtml.dll
│ │ ├── [root root 32K] msi.dll
│ │ ├── [root root 17K] msiexec.exe
│ │ ├── [root root 2.4K] msvcrt.dll
│ │ ├── [root root 44K] msxml3.dll
│ │ ├── [root root 84K] notepad.exe
│ │ ├── [root root 2.4K] ntdll.dll
│ │ ├── [root root 4.1K] ole32.dll
│ │ ├── [root root 4.8K] oleaut32.dll
│ │ ├── [root root 55K] oledlg.dll
│ │ ├── [root root 2.4K] olepro32.dll
│ │ ├── [root root 2.4K] opengl32.dll
│ │ ├── [root root 110K] progman.exe
│ │ ├── [root root 1.0K] psapi.dll
│ │ ├── [root root 2.4K] quartz.dll
│ │ ├── [root root 2.4K] regsvr32.exe
│ │ ├── [root root 2.9K] riched20.dll
│ │ ├── [root root 2.4K] riched32.dll
│ │ ├── [root root 2.4K] rpcrt4.dll
│ │ ├── [root root 2.4K] rsabase.dll
│ │ ├── [root root 2.4K] rsaenh.dll
│ │ ├── [root root 1.0K] rundll32.exe
│ │ ├── [root root 2.4K] schannel.dll
│ │ ├── [root root 1.0K] sensapi.dll
│ │ ├── [root root 8.8K] setupapi.dll
│ │ ├── [root root 44K] shdocvw.dll
│ │ ├── [root root 479K] shell32.dll
│ │ ├── [root root 2.5K] shfolder.dll
│ │ ├── [root root 12K] shlwapi.dll
│ │ ├── [root root 4.0K] spool
│ │ │ ├── [root root 4.0K] drivers
│ │ │ │ ├── [root root 4.0K] color
│ │ │ │ ├── [root root 4.0K] w32x86
│ │ │ │ │ └── [root root 4.0K] 3
│ │ │ │ └── [root root 4.0K] win40
│ │ │ │ └── [root root 4.0K] 0
│ │ │ └── [root root 4.0K] printers
│ │ ├── [root root 23K] urlmon.dll
│ │ ├── [root root 73K] user32.dll
│ │ ├── [root root 2.4K] version.dll
│ │ ├── [root root 1.0K] winebrowser.exe
│ │ ├── [root root 47K] winhlp32.exe
│ │ ├── [root root 19K] wininet.dll
│ │ ├── [root root 294K] winmm.dll
│ │ ├── [root root 11K] winspool.drv
│ │ ├── [root root 1.0K] winver.exe
│ │ ├── [root root 2.4K] ws2_32.dll
│ │ └── [root root 2.4K] wsock32.dll
│ ├── [root root 4.0K] temp
│ ├── [root root 1.0K] twain_32.dll
│ ├── [root root 854] win.ini
│ ├── [root root 1.0K] winhelp.exe
│ ├── [root root 47K] winhlp32.exe
│ └── [root root 4.0K] winsxs
│ └── [root root 4.0K] manifests
│ └── [root root 1.5K] x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest
├── [root root 444K] system.reg
├── [root root 26K] user.reg
└── [root root 2.4K] userdef.reg

56 directories, 84 files

2.) Any ideas what created the .wine directory for root and whether deleting it might break things at all?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

i suggest renaming the folder:

sudo mv /root/.wine /root/.wine_old

if life is still good then you can delete it (test for a few days). If stuff goes a bit wonky, you can always rename back.

The only way you will get a /root/.wine folder is if you infact run sudo wine foo (as you so rightly said) or maybe you accidentally ran it whilst in a sudo su session. This is why sudo su is NOT advised as the home directory becomes /root instead of ~/

Revision history for this message
A. Denton (aquina) said :
#2

Thanks actionparship,

I already did what you suggested. Hopefully it won't break stuff. By the way "sudo su" and "su" is aliased in my .basshrc (""COMMAND EXECUTION DENIED FOR SECURITY REASONS! [..]") so I would never do that on Ubuntu. ;-)

I will marked this thing as solved in a few days if noone else provides me with more information.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Like it!! Can you please propose this as a future functionality in Ubuntu. Why can't more people understand users and what sudo and root actually are :(

I applaud you greatly!

Revision history for this message
A. Denton (aquina) said :
#4

Thanks actionparsnip, that solved my question.