Samba problem: Windows only shows guest login option

Posted on 2006-04-16
Last Modified: 2008-02-01
I have set up Samba on my small mixed Windows and Linux LAN.  All working normally on the Linux side but when I try to access a Linux PC from Windows XP the login dialog contains a grayed out username (myotherpc\guest) and waits for me to enter a password.  None of my root or smbpasswds work.  How do I get restore a dialog box which enables me to enter my Samba username and password instead of having a grayed out guest option?

I am running Suse Linux 10 and am a Linux newbie.  Thanks for reading this.
Question by:Bloodrule
    LVL 57

    Expert Comment

    Can you post the parms from your smb.conf file?

    Author Comment

    Here it is:

    # Samba config file created using SWAT
    # from (
    # Date: 2006/04/16 17:00:10

    workgroup = MSHOME
    netbios name = PENTIUMIII
    map to guest = Bad User
    server signing = Auto
    printcap name = cups
    add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
    logon path = \\%L\profiles\.msprofile
    logon drive = P:
    logon home = \\%L\%U\.9xprofile
    os level = 2
    preferred master = no
    domain master = no
    ldap ssl = No
    cups options = raw
    include = /etc/samba/dhcp.conf
    security = share
    restrict anonymous = no
    max protocol = NT

    comment = Home Directories
    valid users = %S
    read only = No
    inherit acls = Yes
    browseable = No

    comment = Network Profiles Service
    path = /home/peter/Documents/
    create mask = 0600
    directory mask = 0700
    case sensitive = no
    msdfs proxy = no
    guest ok = yes
    read only = no

    comment = All users
    path = /home/
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/

    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes

    comment = All Printers
    path = /var/tmp
    create mask = 0600
    printable = Yes
    browseable = No

    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin, root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775
    LVL 57

    Expert Comment

    Are you using XP Pro or XP Home?

    Are you logged on to the XP box with a userid that is defined in the smbpasswd file?

    Author Comment

    I'm using XP Pro.

    Your response has given me the hint I needed.  Can I tell you what I did?  My username on the XP side was different from on the Linux side.  Once I renamed my XP account to the same name as my Linux username it all worked without a hitch.  However before I did that I tried adding an account on the Linux PC with the same name as my XP account and logged into Linux as that user.  Strangely, on the XP side the dialog box continued to show LinuxPC\Guest grayed out, with only the password box waiting for input.  I still don't understand that last bit but at least I could get to the files in the end by ensuring that XP and Linux were both logged into with the same name.

    Have I got it right or somehow missed the point?
    LVL 57

    Accepted Solution

    It sounds almost like you mapped this once before and checked the reconnect at logon box.  I beleive that checking this box will not only attempt to reconnect at logon, but will continue to use the same userid as used the 1st time the map was done.  If you did do this, then you may want to try delete/disconnecting the map and then try re-mapping.

    Please note, that your Samba server on the Linux box will use a different password than your Windows box.  You can manually keep them in sync if you want.

    You also have "map to guest = Bad User" in your global section, which means if Samba on the Linux box see's a userid that it does not know about, it will automatically map that to the Guest account.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now