INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

HANDLE


PASSWORD
Remember Me
Forgot Password?

Come Join Us!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

Password
Verify P'word
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...I wish I knew about this site years ago. It would have saved me a lot of heartaches..."

Geography

Where in the world do Tek-Tips members come from?
akb195 (TechnicalUser)
24 Mar 05 19:08
Hi,

I am setting up a home network that has the following machines:
1. Apple Powerbook running latest Panther (10.3.x)
2. Linux Fedora Core 3 with latest 2.6 kernel to be used as a print server and web server (m/c is called ANISA)
3. Windows XP Pro SP 2 laptop (wife's)
4. Windows XP Pro SP 2 PC (I use for Quicken and minimal activities)

I just created my Linux m/c and am trying to get it configured for hosting a couple of home directories and the HP printer that is connected to it via USB and has been successfulyl installed on it.

I have been following the directions at the Official HOWTO for configuring a standalone server: http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html#id2529194
My design is to have a single workgroup called WORKGROUP that all machines will be part of. I have had limited success in that using direct connection requests I can mount directories on the Mac or the Linux machine (not dared to check Windows yet). The problem is that the machines do not browse successfully and each thinks it is the Master Local Browser. The nmbd logs from neither machine is particularly useful as they have lines that simply state they are forcing election, becoming master etc.

I would appreciate any help and guidance.
Regards,
akb

Some output attached below.

Here is output from commands run on my Mac (I get the same from the Linux m/c):
[MyMac:~] me% smbclient -N -L anisa
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.10-1.fc3]        
Sharename       Type      Comment        
---------       ----      -------        
IPC$            IPC       IPC Service (anisaSamba Server)        
ADMIN$          IPC       IPC Service (anisaSamba Server)

Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.10-1.fc3]        
Server               Comment        
---------            -------        
ANISA                anisaSamba Server        

Workgroup            Master        
---------            -------        
WORKGROUP            ANISA

[MyMac:~] me% smbclient -N -L localhost
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.5]        
Sharename       Type      Comment        
---------       ----      -------        
IPC$            IPC       IPC Service (Mac OS X)        
ADMIN$          IPC       IPC Service (Mac OS X)

Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.5]        
Server               Comment        
---------            -------        
MYMAC                Mac OS X        

Workgroup            Master        
---------            -------        
WORKGROUP            MYMAC

Here is the smb.conf from Anisa (the Linux m/c):
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/03/24 19:02:56

# Global parameters
[global]
    server string = anisaSamba Server
    username map = /etc/samba/smbusers
    log file = /var/log/samba/%m.log
    max log size = 50
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    disable spoolss = Yes
    show add printer wizard = No
    dns proxy = No
    ldap ssl = no
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    cups options = raw

[homes]
    comment = Home Directories
    read only = No
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    printer admin = root, me
    guest ok = Yes
    printable = Yes
    use client driver = Yes
    browseable = No
 
Check Out Our Whitepaper Library. Click Here.
rzs0502 (IS/IT--Management)
14 Apr 05 4:40
Are you running the Samba as a Primary Domain Controller ?
You mention simple sharing for a workgroup so I assume not.
You don't need user mapping as your are not part of a Microsoft Domain.

Anyway, your smb.conf should look like this on the main Samba server (which is doing the sharing)

[global]
    server string = anisaSamba Server
    workgroup = Anisa
    security = share
    encrypt passwords = yes # not really required in this case)
    og file = /var/log/samba/%m.log
    max log size = 50
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    read raw = no
    write raw = no # You'll get better performance)
    oslevel = 40
    preferred master = yes
    local master = yes
    browse list = yes
    enhanced browsing = yes # no necessary on single subnet  LANS
    printing = cups # if you are using CUPS
       
# And the rest of your shares....

[homes]
    comment = Home Directories
    read only = No
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    printer admin = root, me
    guest ok = Yes
    printable = Yes
    use client driver = Yes
    browseable = No
       
Hope it helps.

Rakesh

"If you always do what you've always done, you will always be where you've always been."

Start A New Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Promoting, selling, recruiting and student posting
are not allowed in the forums.
Posting Policies

LINK TO THIS FORUM!
(Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
TITLE: Andrew Tridgell: Samba Forum at Tek-Tips
URL: http://www.tek-tips.com/threadminder.cfm?pid=865
DESCRIPTION: Andrew Tridgell: Samba technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.