Re: HOWTO: Setup Samba peer-to-peer with Windows
WOW, ok I hope your ready for this. Here it is
dare-devil@DARE-DEVIL:~$ ls -lisa /home
total 12
3244033 4 drwxr-xr-x 3 root root 4096 2006-05-16 04:41 .
2 4 drwxr-xr-x 21 root root 4096 2006-07-12 16:56 ..
3244035 4 drwxrwxrwx 67 dare-devil dare-devil 4096 2006-07-18 12:30 dare-devil
dare-devil@DARE-DEVIL:~$ ls -lisa /home/dare-devil
total 700
3244035 4 drwxrwxrwx 67 dare-devil dare-devil 4096 2006-07-18 12:30 .
3244033 4 drwxr-xr-x 3 root root 4096 2006-05-16 04:41 ..
3739484 4 drwxr-xr-x 13 dare-devil dare-devil 4096 2006-07-15 10:18 Applications
3768336 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-04 18:07 ARCADE
3248758 4 -rw-r--r-- 1 dare-devil dare-devil 1302 2006-07-13 03:28 .audacity
3310341 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-07-11 01:41 .avidemux
3244176 12 -rw------- 1 dare-devil dare-devil 10149 2006-07-18 13:19 .bash_history
3244037 4 -rw-r--r-- 1 dare-devil dare-devil 220 2006-05-16 04:41 .bash_logout
3244038 4 -rw-r--r-- 1 dare-devil dare-devil 414 2006-05-16 04:41 .bash_profile
3244039 4 -rw-r--r-- 1 dare-devil dare-devil 2227 2006-05-16 04:41 .bashrc3244154 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-05-16 19:56 .bmp
3768363 4 drwxr-xr-x 6 dare-devil dare-devil 4096 2006-07-11 03:21 Business
3768413 4 drwxr-xr-x 5 dare-devil dare-devil 4096 2006-05-04 18:07 Cartoons
3244286 4 drwx------ 5 dare-devil dare-devil 4096 2006-05-24 12:35 .config3244248 36 -rw-r--r-- 1 dare-devil dare-devil 35240 2006-06-20 04:19 config.log
3244183 4 -rw-r--r-- 1 dare-devil dare-devil 39 2006-06-28 14:20 .current-song
3244117 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-07-18 12:33 Desktop3244042 4 -rw------- 1 dare-devil dare-devil 26 2006-05-16 04:49 .dmrc
3653633 4 drwxr-xr-x 13 dare-devil dare-devil 4096 2006-05-17 14:58 DOC'S
3244668 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-07-10 23:10 .dvdcss3310330 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-07-10 23:10 .dvdrip3248756 24 -rw-r--r-- 1 dare-devil dare-devil 21716 2006-07-10 23:13 .dvdriprc
3653638 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-05-17 14:26 DWG'S
3244056 4 -rw------- 1 dare-devil dare-devil 16 2006-05-16 04:49 .esd_auth
868391 4 drwxr-xr-x 8 dare-devil dare-devil 4096 2006-07-17 12:16 .evolution
3277212 4 drwxr-xr-x 10 dare-devil dare-devil 4096 2006-06-02 13:49 exaile
3278005 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-06-02 14:04 .exaile3244036 0 lrwxrwxrwx 1 dare-devil dare-devil 26 2006-05-16 04:41 Examples -> /usr/share/example-content
3248847 4 -rw-r--r-- 1 dare-devil dare-devil 1043 2006-05-25 03:36 .face
3768626 4 drwxr-xr-x 6 dare-devil dare-devil 4096 2006-05-22 07:24 Flicks
3248859 16 -rw-r--r-- 1 dare-devil dare-devil 12569 2006-07-15 10:00 .fonts.cache-1
3277447 4 drwx------ 4 dare-devil dare-devil 4096 2006-07-09 21:55 .gaim
3244043 4 drwx------ 5 dare-devil dare-devil 4096 2006-07-18 12:30 .gconf
3244044 4 drwx------ 2 dare-devil dare-devil 4096 2006-07-18 13:21 .gconfd3279927 4 drwxr-xr-x 21 dare-devil dare-devil 4096 2006-07-17 04:02 .gimp-2.2
3244162 0 -rw-r----- 1 dare-devil dare-devil 0 2006-07-18 10:56 .gksu.lock
3244161 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-16 17:35 .gnome
3244046 4 drwx------ 16 dare-devil dare-devil 4096 2006-07-18 11:05 .gnome23244047 4 drwx------ 2 dare-devil dare-devil 4096 2006-05-16 04:49 .gnome2_private
3278255 4 drwx------ 4 dare-devil dare-devil 4096 2006-06-21 06:53 .gnomesword-2.0
3244057 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-23 18:47 .gstreamer-0.10
3739486 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-17 11:22 .gstreamer-0.8
3248905 4 -rw------- 1 dare-devil dare-devil 59 2006-06-11 18:35 .gtk-bookmarks
3244354 4 drwxr-x--- 2 dare-devil dare-devil 4096 2006-07-18 00:08 .gtk-gnutella
3244359 4 drwxr-xr-x 5 dare-devil dare-devil 4096 2006-05-16 20:20 gtk-gnutella-downloads
3244058 4 -rw-r--r-- 1 dare-devil dare-devil 92 2006-05-16 04:49 .gtkrc-1.2-gnome2
3424312 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-17 14:50 GUI's
3244462 4 -rw-r--r-- 1 dare-devil dare-devil 32 2006-05-24 17:23 .hwdb
3249087 4 -rw------- 1 dare-devil dare-devil 2323 2006-07-18 12:30 .ICEauthority
3277169 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-06-01 12:09 .icons
3277598 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-24 13:32 .java
3278350 4 drwx------ 3 dare-devil dare-devil 4096 2006-06-27 05:59 .kde
3248946 220 -rwxr-xr-x 1 dare-devil dare-devil 217311 2006-06-20 04:19 libtool3293951 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-06-28 14:21 .listen1900657 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-17 12:20 .local
3244463 4 drwx------ 3 dare-devil dare-devil 4096 2006-05-16 20:56 .macromedia
3244257 4 -rw-r--r-- 1 dare-devil dare-devil 2094 2006-05-24 17:14 .mailcap
3278385 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-06-27 06:10 .mcop
3248985 4 -rw------- 1 dare-devil dare-devil 31 2006-06-28 10:58 .mcoprc3244112 4 drwx------ 3 dare-devil dare-devil 4096 2006-05-16 04:49 .metacity
3244045 4 drwx------ 4 dare-devil dare-devil 4096 2006-05-17 12:56 .mozilla
3244204 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-16 17:48 .mplayer
3244200 4 drwxrwxrwx 181 dare-devil dare-devil 4096 2006-06-08 18:10 MUSIC
3244116 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-16 04:49 .nautilus
868388 4 drwxr-xr-x 20 dare-devil dare-devil 4096 2006-05-17 14:41 Old Engineering stuff
3277304 4 drwx------ 3 dare-devil dare-devil 4096 2006-07-15 10:48 .openoffice.org2
3244877 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-04 18:01 PDF'S
3294171 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-06-28 19:48 Photos
3244880 4 drwxr-xr-x 11 dare-devil dare-devil 4096 2006-06-20 02:27 PICS
3293955 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-06-28 14:14 Podcasts
3278348 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-06-27 06:11 .qt
3293357 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-07-17 05:51 .quodlibet
3245318 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-07-02 18:27 Random Stuff
3248889 36 -rw------- 1 dare-devil dare-devil 34653 2006-05-24 17:27 .realplayerrc
3244228 20 -rw------- 1 dare-devil dare-devil 17267 2006-07-18 05:00 .recently-used
3245325 4 drwxr-xr-x 5 dare-devil dare-devil 4096 2006-05-17 15:40 RioSSeries
3245330 4 drwxr-xr-x 5 dare-devil dare-devil 4096 2006-05-04 18:02 School
3739281 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-04 18:02 screen savers
3276888 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-05-23 18:27 .subversion
3244163 0 -rw-r--r-- 1 dare-devil dare-devil 0 2006-05-16 04:51 .sudo_as_admin_successful
3278312 4 drwx------ 4 dare-devil dare-devil 4096 2006-06-21 06:53 .sword
3277168 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-06-01 12:09 .themes3244134 4 drwx------ 4 dare-devil dare-devil 4096 2006-05-17 12:12 .thumbnails
3244115 4 drwx------ 4 dare-devil dare-devil 4096 2006-07-18 06:06 .Trash
3244111 4 drwx------ 2 dare-devil dare-devil 4096 2006-05-16 04:49 .update-notifier
3293584 4 drwxr-xr-x 3 dare-devil dare-devil 4096 2006-07-17 08:34 .vlc
3244443 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-06-27 05:11 .wapi
3248751 4 -rw-r--r-- 1 dare-devil dare-devil 4 2006-05-17 12:15 .windows-label
3739417 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-07-15 10:23 .wine
3244424 4 -rw------- 1 dare-devil dare-devil 121 2006-07-18 04:31 .Xauthority
3244203 4 drwxr-xr-x 2 dare-devil dare-devil 4096 2006-05-17 00:06 .xine
3739387 4 drwxr-xr-x 7 dare-devil dare-devil 4096 2006-05-04 18:03 XLS'S
3244120 4 drwxr-xr-x 4 dare-devil dare-devil 4096 2006-05-16 17:41 .xmms
3244040 4 -rw-r--r-- 1 dare-devil dare-devil 1322 2006-07-18 13:17 .xsession-errors
dare-devil@DARE-DEVIL:~$
Re: HOWTO: Setup Samba peer-to-peer with Windows
I set everything up step by step and I can;t get to my windows boxes from Xubuntu. I keep getting an error dialog box with: "smb:///" is not a valid location. This is when I'm trying to browse the network.
Here's my samaba config:
[global]
; General server settings
netbios name = laptop
server string =
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[MyFiles]
path = /home/Share/
browseable = yes
read only = no
guest ok = yes
create mask = 0644
directory mask = 0755
force user = michael
force group = michael
then there's this:
michael@laptop:~$ smbclient -L localhost -U%
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.22]
Sharename Type Comment
--------- ---- -------
print$ Disk
MyFiles Disk
IPC$ IPC IPC Service ()
ADMIN$ IPC IPC Service ()
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.22]
Server Comment
--------- -------
GATEWAY2000
LAPTOP
SARASUSAN Punkie's Mommie
Workgroup Master
--------- -------
WORKGROUP LAPTOP
As far as I can tell Samba is seeing everything like it should, but I can'te tell what's going on...
Re: HOWTO: Setup Samba peer-to-peer with Windows
Re: HOWTO: Setup Samba peer-to-peer with Windows
Ok, so far the permissions look good ... just switch the permissions of your home directory back to default:
chmod 0770 /home/dare-devil
As for the smb.conf ... if you followed all the other steps (creating samba user accounts) the following conf should do the trick for you:
Code:
[global]
; General server settings
netbios name = dare-devil
server string =
workgroup = WINBLOWS
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
;interfaces = lo, eth0
;bind interfaces only = true
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
[homes]
valid users = %S
create mode = 0600
directory mode = 0755
browseable = no
read only = no
veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = dare-devil
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
;Uncomment if you need to share your CD-/DVD-ROM Drive
[DVD-ROM Drive]
path = /media/dvd-rw
browseable = yes
read only = yes
guest ok = yes
In Gnome press ALT+F2 (Run Application), type
gksudo /etc/samba/smb.conf
and paste the lines from above into the file or do the modifications by hand. Save the file, open a terminal and restart samba to make changes happen (sudo /etc/init.d/samba restart). Maybe it's a good idea to reboot your Windows box as well.
To get access to the home directory from Windows:
\\dare-devil\dare-devil
If that doesn't work try to subsitute the name of your Linux box with its ip-address (type ifconfig inside a terminal)
\\192.168.0.11\dare-devil
THIS IS AN EXAMPLE - REPLACE WITH >>>YOUR<<< IP-ADDRESS !!!
(somehow a thought of a long time ago creeps through the dark edges of my memories that windows may dislike the fact that the system and username is identical)
If my fear is right, then try to change the name you configured in samba to i.e.:
netbios name = devilbox
Restart samba and try to make the connection again.
Try this and report back.
Oh, and thanks for the cheers ... your sister is right; Austria is a nice country to spend your holidays.
Re: HOWTO: Setup Samba peer-to-peer with Windows
Quote:
Originally Posted by
mmcclure79
I set everything up step by step and I can;t get to my windows boxes from Xubuntu. I keep getting an error dialog box with: "smb:///" is not a valid location. This is when I'm trying to browse the network.
This rather sounds like some package is missing in your installation of Ubuntu.
As I have no experience with XUbuntu (running a fully fleged install of Ubuntu 6.06 AMD64) I'm only able to guess ...
Try to install "smbfs"...
sudo apt-get install smbfs
...and see if things work out. Chances are that the network browser may need that package to be installed.
Re: HOWTO: Setup Samba peer-to-peer with Windows
STORM YOU ARE AMAZING!!!! Everything works just fine now! The user name and system name being the same was not a problem. I can't thank you enough! I was able to transfer files back and forth to both computers without any troubles at all. Now I guess I need to understand how all this worked. Cheers!!
Re: HOWTO: Setup Samba peer-to-peer with Windows
Quote:
Originally Posted by
PENGUIN-PC
STORM YOU ARE AMAZING!!!! Everything works just fine now! The user name and system name being the same was not a problem. I can't thank you enough! I was able to transfer files back and forth to both computers without any troubles at all.
As usual I'm honored I could be of help.
Quote:
Originally Posted by
PENGUIN-PC
Now I guess I need to understand how all this worked. Cheers!!
If you really like to dig yourself into the mysteries of samba start by reading the man-page (type "man smb.conf" inside a terminal) or take a look into Samba's website; lots of resources can be found there.
Re: HOWTO: Setup Samba peer-to-peer with Windows
Hi,
I know you already answered this kind of question ... but it's still not clear for me.
Let say I have a desktop running Ubuntu and a laptop running XP.
If I understand well I need to have the same login/passwd for my desktop and laptop to access the share folders through samba ???
That could be easy if the desktop and the laptop have the same real user ... but what if the user are different (and then want to create different user accounts, logins, passwd...) or if you have several laptops connected to the desktop...
Sorry if you think that my questions are irrelevant...I definitely need some sleep.
Re: HOWTO: Setup Samba peer-to-peer with Windows
I followed all the steps but samba still doesnt seem to be cooperating. In windows when I try to map the drive using \\roxxor\home\kateandalex\sharedsamba it just keeps on prompting me for user name and password, it doesnt say if its wrong or right, just keeps bringing up the same thing, both machines are able to ping each other as well. Any help would be greatly appreciated. Also as a side note in the force user and force group could you just add more people by seperating them with ; so they would all be able to access the same share? smbclient -L localhost -U% only gives me:
cpk1@roxxor:/etc/samba$ smbclient -L roxxor -U%
Domain=[TEAMAWESOME] OS=[Unix] Server=[Samba 3.0.22]
tree connect failed: NT_STATUS_LOGON_FAILURE
Also testparm gives me this
cpk1@roxxor:/etc/samba$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[print$]"
Processing section "[printers]"
Processing section "[roxxorshared]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = TEAMAWESOME
server string =
null passwords = Yes
passdb backend = tdbsam
username map = /etc/samba/smbusers
syslog only = Yes
announce version = 5.0
name resolve order = hosts wins bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = CUPS
wins support = Yes
valid users = %S
read only = No
create mask = 0600
printing = cups
print command =
lpq command = %p
lprm command =
veto files = /*.{*}/.*/mail/bin/
browseable = No
[print$]
path = /var/lib/samba/printers
write list = root
read only = Yes
create mask = 0664
directory mask = 0775
guest ok = Yes
browseable = Yes
[printers]
path = /tmp
guest ok = Yes
printable = Yes
[roxxorshared]
path = /home/alexandkate/sambashared
force user = alexandkate
force group = alexandkate
create mask = 0644
browseable = Yes
Re: HOWTO: Setup Samba peer-to-peer with Windows
Quote:
Originally Posted by
Turtle.net
Hi,
I know you already answered this kind of question ... but it's still not clear for me.
Let say I have a desktop running Ubuntu and a laptop running XP.
If I understand well I need to have the same login/passwd for my desktop and laptop to access the share folders through samba ???
No, you mustn't have the same login/password - it's just a recommendation to keep things simple.
Only IF you have the same useraccounts on, to follow your example, your desktop and laptop life would be a lot easier if both accounts would have the same passwords.
Quote:
Originally Posted by
Turtle.net
That could be easy if the desktop and the laptop have the same real user ... but what if the user are different (and then want to create different user accounts, logins, passwd...) or if you have several laptops connected to the desktop...
Samba is a _server_ daemon --- where's the problem?
Just add the required useraccounts with their respective passwords by using smbpasswd and you're all set (we're using TDBSAM as our backend for user accounting; not Linux's shadow). Additionally you may need to make sure that the access right(s) to the share(s) (located in smb.conf) will fit.
Any specific scenario you are thinking about?