Simple Mapping network drive for windows XP - Samba server

Note: If you want to maping network drive to windows network server you can jump to "Configuring Windows XP" section.

Configuring Samba Server

Login to your linux box and create one full shared folder. Write below lines to smb.conf and edit "path" and "valid users" to suit your need.
[mapped_folder]
path = /home/this/folder/must_be/exist
public = no
writable = yes
printable = no
valid users = login_name
create mask = 0765

login_name (change it to your login name) have to be exist in Linux system before adding the user to samba, for example my login name is "mapped".
[root@host samba]# useradd mapped
[root@host samba]# passwd mapped
Changing password for user mapped.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@host samba]#

Adding user "mapped" to samba.
[root@host samba]# smbpasswd -a mapped
New SMB password:
Retype new SMB password:
[root@host samba]# smbpasswd -e mapped
Enabled user mapped.
[root@host samba]#

Change owner of path directory to "mapped". If the directory doesn't exist then you need to create it.
[root@host samba]# mkdir /home/var/mapped
[root@host samba]# chown mapped.mapped /home/var/mapped
[root@host samba]#

Next restart your samba server.
[root@fkip samba]# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@fkip samba]#

Configuring Windows XP

Open windows explorer and type double backslash with followed by IP address of your samba server.


Right click on your shared folder and click "Map Network Drive".


Select driver letter to be assigned as network drive letter, and ensure "Reconnect At Logon" is checked.


Click finish, and you should see an new drive in your windows explorer.

This mapped folder will integrated to your system as a new drive, and you can even access your new drive with MS-DOS.