Urgent: How to setup a samba share from DS Linux

Posted on 2005-05-17
Last Modified: 2013-12-06
Hello all,

I've got a Windows server with something corrupt, it can't finish the boot-up process.
I need to get some data on it if at all possible, and the only thing our office had handy was a copy of Damn Small Linux .6.

I'm a bit spoiled by the KDE and Gnome, don't know all the commands that would be needed to setup a Samba share from bash.

I booted to the DSL disk, and mounted the windows file system to the /mnt section, but don't know how to get samba running from bash here.

Anything you've got would be helpful!
Question by:Inward_Spiral
    LVL 12

    Accepted Solution

    edit /etc/samba/smb.conf

    cruise down to the end of the file, and you'll see some examples of samba shares. simply modify those examples to fit your needs and you are good to go.

    Author Comment

    And how do I start the samba service?
    I was previously using Red Hat, where I bounced xinet.d and related services through a gui.

    Like I said, spoiled by graphics.
    LVL 12

    Expert Comment

    there should be startup scripts in /etc/rc.d/init.d

    so simply do

    /etc/rc.d/init.d/smb start

    LVL 2

    Assisted Solution


    check whether your DSL has samba server support. check for program named smbd available (which smbd), if so then you can go ahead and configure samba otherwise you have to first install SAMBA server

    if you have samba, then edit /etc/samba/smb.conf and add following configurations at the end of the file
            comment = Windows file System share
            browseable = yes
            read only = no
            create mode = 0755
            directory = /mnt/windows

    if you dont want to give write access to the share then set read only = yes, give the directory name where you have mounted your windows partition in directory keyword.

    then start the samba service by
    /etc/init.d/smb start
    /etc/init.d/nmb start

    /etc/rc.d/init.d/smb start
    /etc/rc.d/init.d/nmb start

    nmb service may not be there in that case, by default it will automatically get started by smb service. so dont worry about that.

    then go to any other windows machine and access this machine by \\machine name and you should be able to see the Win-Share.


    Author Comment

    Thanks a lot, I backed up everything in time.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now