Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange Samba directory problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Mar 04, 2005 10:21 am    Post subject: Strange Samba directory problem Reply with quote

I have several computers in my home network. I am trying to connect using samba. My problem is that my main server is sharing a few directories which I can pick up from any other system. My problem is that the shared driectories for my other computers show up as the same directories that are on my server. Here is the smbtree output to see what I mean.

Code:
MDKGROUP
        \\JEBUS                         Samba Server 3.0.10
                \\JEBUS\ADMIN$          IPC Service (Samba Server 3.0.10)
                \\JEBUS\IPC$            IPC Service (Samba Server 3.0.10)
                \\JEBUS\HPLaserJet
                \\JEBUS\wmartino        My home dir
                \\JEBUS\pictures        pictures
                \\JEBUS\videos          videos
                \\JEBUS\music           music
                \\JEBUS\print$
                \\JEBUS\homes           Home Directories
        \\JAMES
                \\JAMES\ADMIN$          IPC Service (Samba Server 3.0.10)
                \\JAMES\IPC$            IPC Service (Samba Server 3.0.10)
                \\JAMES\HPLaserJet
                \\JAMES\wmartino        My home dir
                \\JAMES\pictures        pictures
                \\JAMES\videos          videos
                \\JAMES\music           music
                \\JAMES\print$
                \\JAMES\homes           Home Directories
        \\HAL9000                       Moms
                \\HAL9000\ADMIN$                IPC Service (Samba Server 3.0.10)
                \\HAL9000\IPC$                  IPC Service (Samba Server 3.0.10)
                \\HAL9000\HPLaserJet
                \\HAL9000\wmartino              My home dir
                \\HAL9000\pictures              pictures
                \\HAL9000\videos                videos
                \\HAL9000\music                 music
                \\HAL9000\print$
                \\HAL9000\homes                 Home Directories
        \\DEATH
                \\DEATH\ADMIN$          IPC Service (Samba Server 3.0.10)
                \\DEATH\IPC$            IPC Service (Samba Server 3.0.10)
                \\DEATH\HPLaserJet
                \\DEATH\wmartino        My home dir
                \\DEATH\pictures        pictures
                \\DEATH\videos          videos
                \\DEATH\music           music
                \\DEATH\print$
                \\DEATH\homes           Home Directories
        \\AMD64                         Samba Server 3.0.10
                \\AMD64\ADMIN$          IPC Service (Samba Server 3.0.10)
                \\AMD64\IPC$            IPC Service (Samba Server 3.0.10)
                \\AMD64\print$
                \\AMD64\homes           Network Logon Service


Jebus is my main samba server. I have looked for a solution but have not yet found one. Anyone have any ideas as to the cause of the problem. Here is my smb.conf.

Code:
[global]
   log file = /var/log/samba3/log.%m
   load printers = yes
   smb passwd file = /etc/samba/private/smbpasswd
   socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
   deny hosts = 0.0.0.0/0,192.168.0.1/32,192.168.0.2/32
   deadtime = 10
   map to guest = bad user
   encrypt passwords = yes
   public = yes
   printer admin = @adm
   wins support = false
   allow hosts = 127.0.0.1,192.168.0.0/24
   dns proxy = no
   netbios name = JEBUS
   server string = Samba Server %v
   printing = cups
   workgroup = MDKGROUP
   os level = 20
   printcap name = cups
   security = share
   max log size = 50

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

 [print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = no



[music]
   comment = music
   public = yes
   path = /pictures/musicfiles

[videos]
   comment = videos
   path = /videos
   write list = jebus,wmartino,@musicvideo

[pictures]
   comment = pictures
   public = yes
   path = /pictures/bill sue


[wmartino]
   comment = My home dir
   writeable = yes
   path = /home/wmartino
   write list = wmartino

[HPLaserJet]
   printer = HPLaserjet
   printable = yes
   path = /var/spool/samba


Any help would be great. Thanks in advanced

Bill
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 04, 2005 2:29 pm    Post subject: Reply with quote

Toggle wins support and raise the os level to 99 - this ensures that JEBUS is the master share machine on the network, and all others will get their info from that instead of trying to interfere.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Mar 04, 2005 2:33 pm    Post subject: Reply with quote

Thanks I will give that a try.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 04, 2005 2:34 pm    Post subject: Reply with quote

You might also consider adding
Code:
local master = yes
preferred master = yes

if they haven't been set by default already.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Mar 04, 2005 2:51 pm    Post subject: Reply with quote

Well it did not work. I did run smbclient for a couple of my machines and it shows the correct directories but also has an error.

Code:
wmartino@server wmartino $ smbclient -L 192.168.0.105
Password:
Domain=[DEATH] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        MyDocuments     Disk
        IPC$            IPC       Remote IPC
        D$              Disk      Default share
        movies-H        Disk
        My Disc (E)     Disk
        ADMIN$          Disk      Remote Admin
        H$              Disk      Default share
        storage-d       Disk
        C$              Disk      Default share
session request to 192.168.0.105 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[DEATH] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


But it does not error out on my other linux machine.

Code:
wmartino@server wmartino $ smbclient -L 192.168.0.103
Password:
Domain=[AMD64] OS=[Unix] Server=[Samba 3.0.10]

        Sharename       Type      Comment
        ---------       ----      -------
        homes           Disk      Network Logon Service
        print$          Disk
        IPC$            IPC       IPC Service (Samba Server 3.0.10)
        ADMIN$          IPC       IPC Service (Samba Server 3.0.10)
        HP7960          Printer   HP PhotoSmart 7960
        HPLaserJet      Printer   HP LaserJet 4 Plus
Domain=[AMD64] OS=[Unix] Server=[Samba 3.0.10]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        MDKGROUP             JEBUS


Once again it shows the correct shares. I am at a real loss as to why this is happening.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 04, 2005 3:37 pm    Post subject: Reply with quote

Erm.. because they are not in the same domain ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Mar 04, 2005 3:56 pm    Post subject: Reply with quote

I thought the domain name was just the name of the machine? All of the machines belong to MDKGROUP.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 04, 2005 3:59 pm    Post subject: Reply with quote

Not to my knowledge: on a Windows network, the domain is the uber-workgroup that all machines must belong to in order to work together.
Better go over these samba configs again.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
iubmadiwtu
n00b
n00b


Joined: 20 Feb 2003
Posts: 4
Location: denver, co

PostPosted: Sun May 01, 2005 5:07 pm    Post subject: Reply with quote

adaptr wrote:
Erm.. because they are not in the same domain ?


domain is only if you have a Domain ie when you logon you authenciate Domain is only if you have a Domain i.e. when you logon you authenticate against another computer usually a windows Domain controller which does not look to be the case
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum