Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: messed up samba

  1. #1
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    messed up samba

    Trying to get a share going with Vista and 7, I messed something up and decided that I would delete the samba.config file and once I started samba again the file would be remade. This did not work and after trying to pruge and reinstall samba which did not work, I deleted the etc/samba folder. This still did not work.


    So.... how do I recover from this?

    Samba's testparm returned error 1: Load smb config files from /etc/samba/smb.conf
    rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
    params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
    No such file or directory

    Error loading services.
    Last edited by ubunterooster; November 1st, 2010 at 05:53 PM.
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

  2. #2
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    916
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: messed up samba

    See if you have a default copy(comes with samba-common) of smb.conf at this location
    Code:
    /usr/share/samba/smb.conf
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

  3. #3
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: messed up samba

    Okay, I took that and copied it to the place where it should be.
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

  4. #4
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: messed up samba

    Okay, I can now tell Samba to share a folder but when I do it flickers, and when it comes back, the "share" option is deselected
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

  5. #5
    Join Date
    Dec 2009
    Beans
    6,772

    Re: messed up samba

    I hope you don't mind the interruption but what are you using to share - Nautilus or some specific samba GUI app?

  6. #6
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: messed up samba

    I am using nautilus-share
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

  7. #7
    Join Date
    Dec 2009
    Beans
    6,772

    Re: messed up samba

    Why not post the output of the following commands so folks on this thread can see how things are configured:
    Code:
    net usershare info --long
    Code:
    testparm -s
    Also run the following command and see if you are a member of the sambashare group:
    Code:
    id

  8. #8
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: messed up samba

    Code:
    ubunterooster@mountaindew:~$ net usershare info --long
    ubunterooster@mountaindew:~$
    Okay; nothing there
    Code:
    ubunterooster@mountaindew:~$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[Backup]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [global]
        server string = %h server (Samba, Ubuntu)
        encrypt passwords = No
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
    
    [printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No
    
    [Backup]
        comment = Shares
        path = /media/Backup
        read only = No
        guest ok = Yes
    ubunterooster@mountaindew:~$
    Code:
    ubunterooster@mountaindew:~$ id
    uid=1000(ubunterooster) gid=1000(ubunterooster) groups=1000(ubunterooster),4(adm),20(dialout),24(cdrom),46(plugdev),111(lpadmin),119(admin),122(sambashare),126(libvirtd),1004(smbshare)
    ubunterooster@mountaindew:~$
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

  9. #9
    Join Date
    Dec 2009
    Beans
    6,772

    Re: messed up samba

    Aside from one mistake in your copy of smb.conf:
    encrypt passwords = No
    That should be changed to Yes

    It's not apparent that anything is wrong with that.

    After you copied the smb.conf file did you restart samba:
    Code:
    sudo service smbd restart

  10. #10
    Join Date
    Jan 2010
    Location
    /usr/share/your_fridge
    Beans
    1,534
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: messed up samba

    After changing that to yes, I restarted smbd and then the computer.

    I can see the shared folders but am unable to connect:
    "Unable to mount location
    Failed to mount Windows share"
    "Meddle not with roos; thou art crunchy and grasshopper-like" ※The SABRFL※

    Last edited by ubunterooster; 1 Minute ago

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •