Samba Help!

Discussion in 'Server Operation' started by Mushrooshi, May 15, 2008.

  1. Mushrooshi

    Mushrooshi New Member

    How do I get samba to show up?

    I need a step-by-step tutorial, I have tried some but they haven't worked.

    The IP addresses: for the Linux, to for windows boxes.

    Also, I screwed up samba, how do I do a fresh samba reinstall?

    I am a total noob, and I don't know how to replace some parts of the configuation files. I need step by step.

    Fedora 8 also.
  2. thecaoticone

    thecaoticone New Member

    To remove Samba, cd to the directory where smb.conf resides. (for Debian it is /etc/samba)

    Make sure the file is there do:


    if smb.conf is listed do:

    rm -rf ./smb.conf

    Then uninstall Samba do:

    rpm -e samba

    Then follow this guide: ( You should be able to do this in a console if you have a GUI installed )

    While you are in the SWAT interface, there is a button for setting up a Printer.

    Printers Settings

    To affect a currently configured printer, simply click on the pull-down button between the Choose Printer and the Delete Printer buttons and select the printer you wish to operate on.

    To edit the settings, click on the Choose Printer button. To delete the share, simply press the Delete Printer button.

    To create a new printer, next to the button labeled Create Printer, enter into the text field the name of the share to be created, then click on the Create Printer button.

    If the windows machines can not access the server, you may need to set the "security = user" in smb.conf to "security = share".
  3. Mushrooshi

    Mushrooshi New Member

    I am in Active COnnects,a nd Active Shares.

    My IP (my laptop) shows up... but I cannot add printer or add network place.
  4. thecaoticone

    thecaoticone New Member

    At the bottom is a base smb.conf for sharing printers.

    All commands are done via console

    A few explanations of basic settings:

    The "workgroup = " is what the name of the workgroup the server will be in.

    The "interfaces = " and "bind interfaces only = yes" makes samba respond to your lan, not the Internet (this should be set for the ip's you specified)

    The "security = share" allows Windows to see and communicate with the samba server. Some people use "security = user", I have always had trouble with this, that is why I use the "share" setting. You may need to change this to "user"

    If you want to make a shared directory that anyone with access to the lan can use without having to login, then as root:

    cd /

    mkdir /shared

    chmod 777 /shared

    then add this to the smb.conf

    path = /shared
    available = yes
    browsable = yes
    public = yes
    create mask = 0777
    writable = yes

    then restart samba

    Warning........ this means ANYONE with access to the lan can read, write, delete and create files an folders in this directory.

    To control the users tha are allowed to use the shared directory, as root, add the user:

    useradd your_user

    then set the password:

    passwd your_user

    then create a samba password for the user:

    smbpasswd -a your_user

    then edit the smb.conf [shared] to look like this:


    path = /shared
    valid users = your_user
    create mask = 0660
    directory mask = 0771
    writable = yes


    Then restart samba

    To add another user to the share, follow the instructions for adding a user, password, and samba password, then add them to the valid users line

    valid users = your_user another_user

    This will require a user name and password to access the shared folder

    If you use "workgroup = home"

    double click Windows Network on the desktop

    double click on "Entire Network"

    then double click on "Microsoft Windows Network" and you should see "Home".

    double click on "Home" and your server should be listed.

    double click on server and your printer(s) and shared folder should be listed.


    workgroup = home
    server string = Fedora
    interfaces =
    bind interfaces only = yes
    security = share
    obey pam restrictions = Yes
    passdb backend = tdbsam
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* .
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    dns proxy = No
    panic action = /usr/share/samba/panic-action %d
    invalid users = root

    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    browseable = No


    Hope this helps!

Share This Page