LEFEVRE Damien .net

1 2 >

Wednesday 14 May 2008, 10:27

Create IIS FTP server with isolated user account (Windows Server 2003 R2)

  • Have IIS and FTP service installed from Add/Remove Windows components on Add/Remove programs
  • The default FTP site isn't isolated
  • Stop the default site
  • Right click On FTP sites > New site
  • The wizard opens > Next
  • Type you description (ex:"My FTP server")
  • Choose the IP address and port for this server (IIS FTP server does not rely on headers, IPs only)
  • Choose "Isolate Users"
  • Enter the FTP root for the home directory
  • Choose Read or Read+Write
  • Now you are with the wizard

If you stop here you will get a "Err Msg: 530 User <Username> Cannot Log In, Home Directory Inaccessible. Login Failed." Solution:

  • under the FTP site root directory, create a folder named "LocalUser"
  • Under the LocalUser directory create a directory for each of the users matching the username

Saturday 12 January 2008, 14:39

Remote a linux machine with Windows Remote Desktop Connection

I had to find a solution for my company to remote a Linux machine from Windows. The less extra software the better.

The computer to remote has Debian 4.0 installed.

xrdp is a magic solution. It allows to tunnel X into the Windows Remote Desktop Connection application. There is no need for extra software to install on Windows.

You need to install xrdp on the Linux.

apt-get update
apt-get install xrdp

It did not work right away, but after rebooting the Linux machine, everything went smoothly.

Tuesday 27 November 2007, 09:31

Release Microsoft Office Outlook 2003 blocked attachments

  • Close Outlook
  • Check that HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security registry key exists. If not follow these steps:
    • Go to: HKEY_CURRENT_USER\Software\Microsoft
    • Click the Edit menu, click New, and then click Key. Type Office, and then press ENTER.
    • Click the Edit menu, click New, and then click Key. Type 11.0, and then press ENTER. Note This is the correct name if you are using Outlook 2003. If you are using Outlook 2000 or Outlook 2002, you will have to type "9.0" or "10.0", respectively.
    • Click the Edit menu, click New, and then click Key. Type Outlook, and then press ENTER.
    • Click the Edit menu, click New, and then click Key. Type Security, and then press ENTER.
  • Click the Edit menu, click New, and then click String Value. Name it Level1Remove and press ENTER.
  • Right-click the new string value name, and then click Modify.
  • Type the file name extension of the file type that you want to open in Outlook. For example: .exe and then click OK
  • To specify multiple file types, use the following format: .exe;.com
  • Quit Registry Editor
  • No restart needed, just restart Outlook

Tuesday 29 May 2007, 15:52

Unix Utilities on Windows

Who has never dreamed of having cat, ls, wget... on Windows shell??? The fu**ing dir command which is so bad and piss you off every time you need to use it...

Well today I found something new (Thanks PyS60 again).

  • Go to UnxUtils project page: http://sourceforge.net/projects/unxutils then download and unzip UnxUtils.zip
  • I copied the UnxUtils directory under C: like C:\UnxUtils>
  • Now we need to give the path to the environment variables for it to be seen
  • Windows_Key + Pause take you to System properties > Advanced > Environment Variables
  • New System variable
    • name: UNXUILS_HOME
    • value: C:\UnxUtils\usr\local\wbin
  • Now we add UNXUILS_HOME to PATH (add at the end %UNXUILS_HOME%;)
  • Ok

That's it! A quick test:

  • Open a new command prompt Windows_Key + R > cmd
  • C:\>ls -la

Thursday 4 January 2007, 18:46

Customize Live messenger

If like me you are forced to use Live messenger on a machine and you are pissed with the crapy GUI advertisement that gives headache... There's a patch that can make thing just a little bit better even if it's still no that...

Here is the link http://apatch.ikhost.com/downloads.php

Friday 3 November 2006, 10:26

Remove Windows informer

To get rid of the informer, go to Start > Run > cmd. Then write: "regsvr32.exe -u c:\windows\system32\regwizc.dll". Validate.
If everything went well, a message box says: "DllUnregisterServer in c:\windows\system32\regwizc.dll succeed". Finally, click OK.

Friday 3 November 2006, 10:17

Uninstall Windows Messenger

If you don't have use of Messenger, better remove it, this will free small amount of memory. However, this is not possible via Add or Remove Windows Components. Here we go:

  • Start > Run...
  • Type: RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

Voila!

1 2 >