Results 1 to 6 of 6

Thread: I broke samba. Help me get it back

  1. #1
    Join Date
    Jul 2006
    Beans
    172

    I broke samba. Help me get it back

    I noticed that my shares were not shared anymore, for some reason.
    So i decided to install samba again. I did this:

    sudo apt-get remove samba
    sudo rm -rf /etc/samba
    sudo apt-get install samba

    On step 3 however I get an error message that says more or less (translated):

    Code:
    Decompressing samba (από .../samba_3.0.28a-1ubuntu4.4_i386.deb) ...
    Installing samba-common (3.0.28a-1ubuntu4.4) ...
    Not replacing deleted config file /etc/samba/smb.conf
    chmod: cannot access `/etc/samba/smb.conf': No such file or directory
    dpkg: error editing samba-common (--configure):
     sub-proccess post-installation script returned error state 1
    dpkg: dependency problems dont allow adjusting libpam-smbpass:
     libpam-smbpass depends on samba-common (= 3.0.28a-1ubuntu4.4). However:
      Package samba-common is not configured yet.
    dpkg: error in proccessing libpam-smbpass (--configure):
     dependency problems - left unconfigured
    dpkg: dependency problems dont allow adjusting samba:
     samba depends on samba-common (= 3.0.28a-1ubuntu4.4). However:
      Package samba-common is not configured yet.
    dpkg: error proccessing samba (--configure):
     dependency problems - left unconfigured
    Errors while processing:
     samba-common
     libpam-smbpass
     samba
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I also tried dpkg --remove --purge samba but no luck

    PLease, help......
    If someone helped you here don't forget that YOU can help others.

  2. #2
    Join Date
    Jul 2006
    Beans
    172

    Re: I broke samba. Help me get it back

    Sorry to ask again but u really want to avoid formatting...
    Anyone?
    If someone helped you here don't forget that YOU can help others.

  3. #3
    Join Date
    Jul 2006
    Location
    /usr/share/beer
    Beans
    1,316
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I broke samba. Help me get it back

    Rename your /etc/samba/smb.conf as something else for now

    issue /etc/init.d/samba stop
    command at CLI to make sure service is stopped prior to removal.

    Registered Linux User #419773, Ubuntu User #8473 ("It Is What It Is")

    If you type rm -Rf / as root at command line you will get herpes... then die... (okay, it'll erase ALL your data)

  4. #4
    Join Date
    Jul 2006
    Location
    /usr/share/beer
    Beans
    1,316
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I broke samba. Help me get it back

    Is this similar to your issue?

    http://ubuntuforums.org/showthread.php?p=5387695

    Registered Linux User #419773, Ubuntu User #8473 ("It Is What It Is")

    If you type rm -Rf / as root at command line you will get herpes... then die... (okay, it'll erase ALL your data)

  5. #5
    Join Date
    Jul 2006
    Beans
    172

    Re: I broke samba. Help me get it back

    Awesome! Thanks. The link u provided did just the thing!!

    However smb.conf is completely blank!!!I thought than when I shared a folder using nautilus
    sharing options it would add that share there. But nothing appears on the smb.conf file....hmmm
    Last edited by geokok1981; August 1st, 2008 at 09:09 PM.
    If someone helped you here don't forget that YOU can help others.

  6. #6
    Join Date
    Jul 2006
    Location
    /usr/share/beer
    Beans
    1,316
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: I broke samba. Help me get it back

    The only thing I can tell you is when using Samba I only used it on Ubuntu's server version where all the shares were added manually to the smb.conf file using [sharename] and then its context below. If you need a spare smb.conf file you should be able to google and find a generic one you can add the shares to.

    Just remember the smbpasswd -a username
    then smbpasswd -e username

    for adding different user access to your shares -a = add, -e = enable

    For most changes share adds, users, you have to restart the samba service for those changes to take affect so that way Samba has to re-read the smb.conf file again...

    Registered Linux User #419773, Ubuntu User #8473 ("It Is What It Is")

    If you type rm -Rf / as root at command line you will get herpes... then die... (okay, it'll erase ALL your data)

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
  •