Samba notes
Assumptions
- Trying to access filesystem on Ubuntu Hardy Linux server from Windows Vista PC over the internet. Want to have read and write access.
- Ubuntu Linux server IP address is: 99.99.99.99
- Windows PC IP address is: 44.44.44.44
- Username is "johnny"
On Ubuntu Hardy host
- Install Samba
apt-get install samba
Edit
/etc/samba/smb.confIn the
[globals]section:hosts allow = 127.0.0.1 44.44.44.44 hosts deny = 0.0.0.0/0
Create a new share:
[myshare] comment = this is my share path = /var/www read only = no guest ok = no delete readonly = yes create mask = 0644 force create mode = 0600 security mask = 0555 force security mode = 0600
- Create a user
adduser johnny smbpasswd -a johnny
Enter a password.
- Open ports in EC2 Security Group using ElasticFox
Port 135/TCP - used by smbd Port 137/UDP - used by nmbd Port 138/UDP - used by nmbd Port 139/TCP - used by smbd Port 445/TCP - used by smbd
On Windows host
- In Windows Explorer, enter
\\99.99.99.99\myshareinto the location bar. - Enter the "johnny" for the username and the password for the password.
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(5)
-
aws
(9)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(13)
-
conkeror
(2)
-
core
(2)
-
cygwin
(17)
-
datastructures
(14)
-
datetime
(4)
-
decorators
(4)
-
django
(40)
-
emacs
(22)
-
files_directories
(11)
-
git
(5)
-
hardware
(5)
-
install_setup
(8)
-
javascript
(3)
-
keyboard
(9)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
persistence
(5)
-
preferences
(7)
-
processes
(4)
-
pyqt
(18)
-
python
(144)
-
ratpoison
(3)
-
regexes
(6)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(14)
-
ssh
(10)
-
subversion
(6)
-
twisted
(7)
-
ubuntu
(65)
-
urxvt
(5)
-
vxworks
(25)
-
webdev
(5)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Marty Alchin
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan