Updated December 24, 2012. This works on all versions of Ubuntu.
Authenticated network file access is very helpful on your home LAN.
sudo apt-get install samba
sudo nano /etc/samba/smb.conf
Enter details for the share at the end of the file. Leave the rest of the file default for now. Go back later and edit it.
# Name [shared_directory1] # Path path=/home/user_name/shared_directory # Restrict access. Useful with multiple shares/users. valid users=user_name,user_name2 # Enable write access. read only=no
For more options visit the smb.conf man page: http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
sudo restart smbd
Note: You must restart the samba daemon for any of the above changes to take effect.
sudo useradd user_name --shell /bin/false
sudo smbpasswd -a user_name
Hint: Use your Windows username and password. This will grant password-less access to the share.
For more options visit the smbpasswd man page: http://www.samba.org/samba/docs/man/manpages-3/smbpasswd.5.html
Accessing the share in Windows:
In the address bar of file explorer: