Let's do manually:
For testing only:
Edit /etc/samba.smb.conf (sudo gedit /etc/samba/smb.conf)
CODE
[global]
workgroup = MSHOME #This workgroup must be the same as what you set in windows pc ans all other samba pc
server string = Scorps Samba Server # put whatever you like
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
security = user
log level = 2
log file = /var/log/samba.log
[My_Home_Folder]
path = /home/scorps # change this to the path/folder you want to share
comment = home files
read only = No
guest ok = Yes # to allow anonymous access, in Debian/Ubuntu, user nobody will be used as guest.
Testing:
1. local
List share folder:
Just enter when asked for password because we allow anonymous access.
CODE
$ smbclient -L localhost
Password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]
Sharename Type Comment
--------- ---- -------
My_Home_Folder Disk home files
IPC$ IPC IPC Service (Scorps Samba Server)
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]
Server Comment
--------- -------
OSHIRIX Scorps Samba Server
Workgroup Master
--------- -------
MSHOME
Login to shared folder:
CODE
$ smbclient //localhost/My_Home_Folder
Password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]
smb: \> pwd
Current directory is \\localhost\My_Home_Folder\
smb: \> quit
2. Test remote
Do the same but change localhost to ip of remote pc.
If failed, try access windows shared using user/password of the windows login.
smbclient -L "ip" -U "username windows"
smbclient "ip"/"shared folder" -U "username"
and enter the password.
Other test can be done using Nautilus (gnome) or Koqueror (kde).
Just put on the url bar:
smb://"ip"
or
smb://username:password@"ip"
* On XP Pro, you need a login account. Some user use XP Pro without login account. This will not work with Samba.