Results 1 to 7 of 7

Thread: Samba sharing error -

  1. #1
    Join Date
    Mar 2010
    Beans
    12

    Exclamation Samba sharing error - [FIXED]

    I can't share my /var/www folder on this machine - it worked fine on my Desktop, it just asked me to install the samba windows something.
    What's going wrong with this.
    I have searched for fixes to this issue with no luck.

    Here is the error I get after right clicking and going to sharing and trying to share the folder...

    Code:
    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)
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    WARNING: state directory /var/lib/samba should have permissions 0755 for browsing to work
    WARNING: cache directory /var/cache/samba should have permissions 0755 for browsing to work
    have tried
    Code:
    sudo chmod 0755 /var/lib/samba
    sudo chmod 0755 /var/cache/samba
    But no luck... Please help
    Last edited by marsters256; September 4th, 2010 at 09:52 PM. Reason: fixed

  2. #2
    Join Date
    Mar 2010
    Beans
    12

    Thumbs down Re: Samba sharing error -

    Fixed it myself, thought I'd be nice and let you all know how I did it as per Ubuntu spirit.

    Code:
    sudo chmod 777 /etc/samba/smb.conf
    sudo chmod 0755 /var/cache/samba
    sudo chmod 0755 /var/lib/samba
    added line

    Code:
    usershare owner only = false ## added by ben
    to global settings in /etc/samba/smb.conf file...

    If anyone knows why it didn't work straight away I'd love to know 'cas it worked on my desktop and I've updated ubuntu and restarted before I tried all this...

  3. #3
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba sharing error -

    Impossible to know now. We would have needed to see what the permissions were before you changed them.

  4. #4
    Join Date
    Mar 2010
    Beans
    12

    Re: Samba sharing error -

    Would the best way to see that be doing a
    Code:
    ls -la
    on the directory/files?

  5. #5
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba sharing error -

    Quote Originally Posted by marsters256 View Post
    Would the best way to see that be doing a
    Code:
    ls -la
    on the directory/files?
    It will not matter because you have already changed them. You cannot see what they were before.

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Samba sharing error -

    I checked what the permissions were set to on my clean server install:

    Code:
    charles@atlantis:~$ ls -ld /var/lib/samba
    drwxr-xr-x 5 root root 4096 2010-09-04 22:43 /var/lib/samba
    charles@atlantis:~$ ls -ld /var/cache/samba/
    drwxr-xr-x 3 root root 4096 2010-09-04 22:43 /var/cache/samba/
    charles@atlantis:~$ ls -l /etc/samba/smb.conf
    -rw-r--r-- 1 root root 12416 2010-09-04 22:43 /etc/samba/smb.conf
    charles@atlantis:~$
    So unless you changed the permissions somehow, they should have been fine by default.

    EDIT: Also, don't forget to make the thread as solved under thread tools.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Nov 2009
    Location
    san francisco
    Beans
    69
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Samba sharing error -

    Dude, thank you. Super useful......

    A.
    without open source, computing would suck.

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
  •