Question

not able to see Linux partition from Windows using Samba.

Asked by: MetroNY

hey everyone,

ok, I'm sort of new to Linux.  I was in the process of setting up a network using a Windows environment on a domain (Mydomain) and introducing a Linux workstation for testing purposes in this domain and to share it's files.  I read some documentation on setting up Samba and I got as far as settig up a partition and starting the samba service using "/etc/init.d/smb start" command.  The Linux computer hostname (say Myhost) is pingable from anywhere within the domain, therefore it leads me to believe it was able to pull down an IP addredd from the DHCP server and is being recognised my WINS.  However, when I try to map a drive from a windows desktop, I am not able to see the partition, I can't even see the Linux hostname when I browse.  Is there anything I am missing or have done wrong.  I need some help please.  Thank you.

-Metro.

ps: I am using Windows 2000, RedHat 9.0 installed with the SMB package.  I have done no upgrades so far to the Linux server.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-08-05 at 11:53:35ID20700582
Tags

network

,

samba

Topic

Linux Networking

Participating Experts
5
Points
50
Comments
17

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Samba Voes..
    Well, everything seems ok, but samba still doesnt run. Can someone give me a working skeleton smb.conf for a browsable Samba server?
  2. Installing Samba
    I am attempting to install Samba 2.0.7 on RedHat 6.2. I follow the instructions in the UNIX_INSTALL.txt. It all goes well but somehow Samba doesn't get installed. There is no smb in /etc/rc.d/init.d, SWAT doesn't work, etc... Nothing. Whats up?
  3. Samba
    Ok, now I downloaded the RPM file for Samba and when I try to install it, it says that it already is installed. Where can I find samba so I can start configuring it im using redhat 6.2 thanx!

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: MetroNYPosted on 2003-08-05 at 12:05:51ID: 9082915

sorry, I think this information may be relevant:
Server Settings:
Workgroup: Mydomain
Description: Mydomain
Security:
Authentication Mode: User
Encrypt Passwords: Yes
Guest Account: Nobody

Samba Users:
Unix Username: Metro
Windows Username: Winmetro

smb.conf:
[global]
netbios name = Myhost
workgroup = Mydomain
log file = /var/log/samba.log
encrypt passwords = yes
wins support = yes


I hope this helps.  Thanks experts.

-Metro

 

by: sherisalamiPosted on 2003-08-05 at 12:37:09ID: 9083130

this worked for me when I configured samba on freebsd

[global]
domain admin group = root upc9 sheri apc9      #list of users.

# domain admin group defines which windows account has administrative
# privilages. This parameter only takes a list of users.
# it will not understand group names(i.e names beginning with @ )
      
Good luck

 

by: MetroNYPosted on 2003-08-05 at 13:32:10ID: 9083550

I can't seem to find anything in those lines within the conf file.  I'm not sure, but I don't think RH has this type of switch.  Thank you though.

 

by: MetroNYPosted on 2003-08-05 at 14:20:51ID: 9083976


ok, I have made some advancements here. I am now able to connect internally (on the Linux server) to the new share I created and I can resolve it's own WINS name, and I can see the Linux hostname in the Windows enviroment, but I can not see or attach to any shares from Windows.  I am soooo close.  Any help ?!??  thank you.

-Metro

 

by: appadesaiPosted on 2003-08-06 at 06:17:23ID: 9090633

Have you made a entry for the share you want to access in the smb.conf file. If not, try doing it.

here is the syntax

[share]
        path = /share
        comment = Solaris share
        guest ok = Yes
        read only = No

 

by: MetroNYPosted on 2003-08-06 at 06:32:15ID: 9090775

I have the following entry:

[metro]
   comment = Metro's directory
   path = /home/metro/
  guest ok = yes

[documentation]
   path = /home/metro/documentation
   guest ok = yes


 

by: appadesaiPosted on 2003-08-06 at 07:35:16ID: 9091434

ok, Try putting browseable = Yes flag either in the individual share or in the global options.

example
[metro]
  comment = Metro's directory
  path = /home/metro/
 guest ok = yes
 browseable = yes

hope this works :)

 

by: MetroNYPosted on 2003-08-06 at 09:17:32ID: 9092450

sorry, still doesn't work.. I have been told that I have to install SWAT to help with the process? would this mean anything to you?

 

by: sherisalamiPosted on 2003-08-06 at 11:41:23ID: 9093609

MetroNY:

if the line domain admin group is not in your global section, u must edit the smb.conf file and put it in yourself otherwise it just wont work!

 

by: MetroNYPosted on 2003-08-07 at 08:00:59ID: 9100451

I tried this also and nothing happens.  , but everything works fine internally. I am able to connect to the shared locally.  Am I missing some services I should be running?

 

by: FuzZY_MOnStErPosted on 2003-08-07 at 12:52:46ID: 9102814

Add to [global]

interfaces=ipaddress/cidr ( egzample interfces=192.168.1.1/24 )

This directive tells your samba daemon where it lays ( that is on what interface )

Set:

security=share

Also for guest account u need to create this account on ur linux system( useradd username - substitute username with one u think its appropriate ) and then map it to samba useraccount (smbadduser linuser:sambauser - this way this user will be automaticalyl mapped to guest account when accessing shares).

Also :

workgroup=mydomain

Is mydomain the windows domain you are adding this samba machine to or arbitrarily choosen name,if latter change it to match that of your domain !
========================================================================================
SWAT is gui interface for samba u can access it like this :

http://127.0.0.1:901

But first u need to uncomment lines in /etc/sysconfig/swat if this linux is RED HAT !

 

by: MetroNYPosted on 2003-08-07 at 14:02:10ID: 9103331

still nothing :(
but here's a dump of the parameters when I run a "testparm"  
is there anything wrong with this outpout?

thank you everyone.

[root@c9910448 sysconfig]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[metro]"
Processing section "[documentation]"
Loaded services file OK.
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
Press enter to see a dump of your service definitions
 
# Global parameters
[global]
        coding system =
        client code page = 850
        code page directory = /usr/share/samba/codepages
        workgroup = mydomain
        netbios name = C9910448
        netbios aliases =
        netbios scope =
        server string = my house
        interfaces = 10.205.134.1/24
        bind interfaces only = No
        security = SHARE
        encrypt passwords = Yes
        update encrypted = No
        allow trusted domains = Yes
        hosts equiv =
        min passwd length = 5
        map to guest = Never
        null passwords = No
        obey pam restrictions = Yes
        password server =
        smb passwd file = /etc/samba/smbpasswd
        root directory =
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
        passwd chat debug = No
        username map = /etc/samba/smbusers
        password level = 0
        username level = 0
        unix password sync = Yes
        restrict anonymous = No
        lanman auth = Yes
        use rhosts = No
        admin log = No
        log level = 0
        syslog = 1
        syslog only = No
        log file = /var/log/samba.log
        max log size = 0
        timestamp logs = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        protocol = NT1
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts host wins bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max smbd processes = 0
        max disk size = 0
        max open files = 10000
        name cache timeout = 660
        read size = 16384
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        stat cache size = 50
        use mmap = Yes
        total print jobs = 0
        load printers = Yes
        printcap name = /etc/printcap
        disable spoolss = No
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        strip dot = No
        mangling method = hash
        character set =
        mangled stack = 50
        stat cache = Yes
        domain admin group = root metro
        domain guest group =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = Auto
        local master = Yes
        domain master = Auto
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = No
        wins proxy = No
        wins server =
        wins support = Yes
        wins hook =
        kernel oplocks = Yes
        lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        add share command =
        change share command =
        delete share command =
        config file =
        preload =
        lock dir = /var/cache/samba
        pid directory = /var/run/samba
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        dfree command =
        valid chars =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        time offset = 0
        NIS homedir = No
        source environment =
        panic action =
        hide local users = No
        host msdfs = No
        winbind uid =
        winbind gid =
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 15
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = No
        comment =
        path =
        alternate permissions = No
        username =
        guest account = nobody
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        printer admin =
        force user =
        force group =
        read only = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = 00
        inherit permissions = No
        inherit acls = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        status = Yes
        nt acl support = Yes
        profile acls = No
        block size = 1024
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        write cache size = 0
        max print jobs = 1000
        printable = No
        postscript = No
        printing = cups
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = No
        printer driver =
        printer driver file = /etc/samba/printers.def
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        hide unreadable = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = No
        share modes = Yes
        copy =
        include =
        exec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No
        vfs object =
        vfs options =
        msdfs root = No
 
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No
 
[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        browseable = No
 
[metro]
        comment = Metro's Directory
        path = /home/metro/
        guest ok = Yes
 
[documentation]
        path = /home/metro/documentation
        guest ok = Yes
[root@c9910448 sysconfig]#

 

by: pjedmondPosted on 2003-08-09 at 15:59:09ID: 9115393

If you want the shares to be visible on the network, then you need the server to broadcast them, so use the following in the smb.conf:

        remote announce = 10.205.134.255/mydomain

The shares may actually exist, even though you can't see them by just browsing. Try this from a DOS prompt:

net view \\10.205.134.??/

and see if any of the shares are displayed, otherwise, try:

net use z: \\10.205.134.??/metro

and check whether you can successfully connect to the shares or not?



Next gotcha for Windows 2000 is that encryption MUST be enabled (OK there is a workaround) AND you have to actually create a samba machine account as well as a samba user account for the windows 2000 machine to connect:

This is a special samba account, and if the Win 2000K machine is called mymachine, then you need to create a samba password accound with the name mymachine$, i.e, the name of the win 2K system with the $ sign at the end....After that, things should work. Work through the above, and post the point at which problems occur, then I can help further:)

hTH




 

by: pjedmondPosted on 2003-08-09 at 16:00:08ID: 9115395

Sorry - the special win2K account is if you are wanting the WIn2k to join a samba hosted domain - you can probably ignore it for this.

 

by: r4780yPosted on 2003-08-10 at 00:17:12ID: 9116362

The encryption part above is true, but without it you would be able to see the machine, you'd just get an "IPC$" error when attempting to access it.

I could be wrong, but I'm pretty sure that Samba does not check for a WINS address in DHCP.  You have to set it up manually in the config.  Look at the "wins server =" line above.  It should have your WINS server(s) listed there.

 

by: pjedmondPosted on 2003-08-10 at 02:13:20ID: 9116601

Here's a really simple smb.conf to get you working, after which you can modify for you own use.

As a really basic smb.conf replace the global element of your smb.conf..AFTER making a backup:
----------------------8X--------------------------------------------------
[global]
        smb passwd file = /etc/samba/smbpasswd
        remote announce = 10.205.134.255/WG
        printing = lprng
        dns proxy = no
        encrypt passwords = yes
        sync always = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        max log size = 1
        writable = yes
        server string = Samba Server
        workgroup = WG
        comment = File Transfers between PCs
        log file = /var/log/samba/%m.log
        netbios name = MYPC
        load printers = yes
        username map = /etc/samba/user.map
        follow symlinks = no


# Support WINS
        wins support = yes
        security = user
        os level = 34

#Share definitions for system follow on from here

----------------------8X--------------------------------------------------
Points to note:

1.  Replace WG, with your workgroup name in the remote announce, and workgroup entries.
2.  wins support is required in order to enable browsing of the shares, although if you know that they are there, you can still connect to them with net use.
3.  os level is a method of forcing the wins negotiation process to give priority to the samba server, and ensures that the samba server gets control, otherwise the wins element will be controlled by one of the XP systems on the network, and that probably isn't what you want.
4. /etc/init.d/smb restart, and then restart the windows system, and everything should be as you require. (Don't forget to add your share definitions to the above:)

wins server command provides a combination of the server name and wins support, and will probably work as well, although I don't use that particular setting.

The above config is from an exact duplicate of the setup that you are using and works fine for me

 

by: MetroNYPosted on 2003-08-11 at 06:28:58ID: 9122040

hi pjedmond

thank you sooo much  pjedmond  for your response.  ok, I created a new, vanilla, smb.conf file, based on what you wrote above and modified to work for my settings.  I was able to restart the deamon, connect internally, everything I was able to do before, except for windows to connect :( ... I don't know what else to try. :(  I really think it's probably some settings on my windows machine.   and I get the following when I try to connect to the samba partition from Windows.  Also, I wasn't sure if you ment the "/" slash or "\" so I ran both.  and now I really wanna get this going..after all this..


Y:\>NET USE f: \\10.205.134.87\metro
System error 53 has occurred.

The network path was not found.


Y:\>NET USE f: \\c9910448\metro
System error 1234 has occurred.

No service is operating at the destination network endpoint on the remote
system.


Y:\>NET USE f: \\10.205.134.87/metro
System error 67 has occurred.

The network name cannot be found.


Y:\>NET USE f: \\c9910448/metro
System error 67 has occurred.

The network name cannot be found.



Y:\>net view \\10.205.134.87/
System error 123 has occurred.

The filename, directory name, or volume label syntax is incorrect.


and here is my new conf file. really slimmed down:

----------------8X-----------------------------------------------

[global]
       smb passwd file = /etc/samba/smbpasswd
       remote announce = 10.205.134.255/ehyp
       printing = lprng
       dns proxy = no
       encrypt passwords = yes
       sync always = yes
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       printcap name = /etc/printcap
       max log size = 1
       writable = yes
       server string = Samba Server
       workgroup = ehyp
       comment = File Transfers between PCs
       log file = /var/log/samba/%m.log
       netbios name = c9910448
       load printers = yes
       username map = /etc/samba/user.map
       follow symlinks = no
       browseable = yes
       interfaces = 10.205.134.1/24

# Support WINS
       wins support = yes
       security = user
       os level = 34

[metro]
        comment = Metro's Directory
        path = /home/metro/
        guest ok = yes
                                                                               
[documentation]
        path = /home/metro/documentation
        guest ok = yes

--------------8X------------------------------------------------------


-Metro

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...