Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Samba file server for OS X 10.9 or 10.10

  1. #11
    Join Date
    Dec 2009
    Beans
    5,707

    Re: Samba file server for OS X 10.9 or 10.10

    That all looks right.

    Does "WD" stand for "Western Digital" by any chance? I occasionally see posts here about problems sharing WD drives but not having one I never much paid attention.

    Choosing another non-external folder to share would answer if it's a WD issue.

  2. #12
    Join Date
    Jul 2014
    Beans
    7

    Re: Samba file server for OS X 10.9 or 10.10

    It does indeed (and was all working fine before upgrading) but I'll try that as the next thing.

  3. #13
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,635
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba file server for OS X 10.9 or 10.10

    If it's any help, I do have SAMBA4 running with OSX mavericks clients connecting.

    I'm using Debian Wheezy and SAMBA4 version 4.1.0pre1-GIT-01f188a

    I am able to connect using both ip address and DNS name. I'm using it as a DC so this may be a
    difference for you. Perhaps you can try provisioning as a domain controller.

    Are you able to connect using smbclient on the server itself?

    Ill try a 14.04 in a VM if I have time.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  4. #14
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,635
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba file server for OS X 10.9 or 10.10

    Quote Originally Posted by neufena2 View Post
    I run a small home server and have never had a problem setting up a Samba server for my Mac clients. Since upgrading to 14.04 (with Samba4) I have been unable to connect from either OS X 10.9 (Mavericks) or the new 10.10 (Yosemite) beta.

    I've search all over the net for a guide to setting up a simple file server with Samba4 or a way to downgrade to Samba3. Has anyone out there managed to set up a a samba server accessible from the OS X versions I mentioned?

    For now I have switched to Netatalk/AFP but would prefer to get Samba sorted out.
    Does the server show in finder's "Shared" section"
    Are you using "Connect as" in finder?

    FYI: I have a test VM. It was 12.04 with out samba installed. I upgraded to 14.04.1 then installed SAMBA using apt-get.
    The server showed immediately in finder (OSX 10.9). I was able to navigate directly using finder.

    I then added a simple share (using your model, but it's not on a separate disk). Then added user using "smbpasswd -a".

    I can write to share without issue. I do use "connect as" in Finder since my mac user is different than SAMBA user.

    I suggest try eliminating the Western Digital mount as an issue. Create a simple share by making a new directory inside /mnt
    and/or try connecting to the server without specifying a share name. When I browse directly to the server, I can see the "Shares" folder.
    I can't connect directly/as guest (The operation can’t be completed because the original item for “shares” can’t be found.) This error occurs because
    my usernames don't match and guest access is not granted in samba.

    If I add the following to share definition, I can connect as guest.
    Code:
    guest ok = yes
    If I try using a non-existent samba user, password gets rejected immediately... "shaky window response from Finder".



    I'm happy to run additional tests.

    Here is some info on my setup:
    Code:
    printadmin@printsrv:~$ ls -al /mnt/WD/Shares/
    drwxrwxrwx 3 root       root       4096 Aug  2 09:14 .
    drwxrwxrwx 3 root       root       4096 Aug  2 09:13 ..
    drwxr-xr-x 2 printadmin printadmin 4096 Aug  2 09:15 Test
    
    printadmin@printsrv:~$ ls -al /mnt/WD/Shares/Test/
    drwxr-xr-x 2 printadmin printadmin    4096 Aug  2 09:15 .
    drwxrwxrwx 3 root       root          4096 Aug  2 09:14 ..
    -rwxr--r-- 1 printadmin printadmin    4096 Aug  2 09:15 ._Windows_Server_2012_VDI_Deployment_Guide.pdf
    -rwxr--r-- 1 printadmin printadmin 1511487 Jul 14 13:22 Windows_Server_2012_VDI_Deployment_Guide.pdf
    Code:
    printadmin@printsrv:~$ testparm
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[shares]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    	server string = %h server (Samba, Ubuntu)
    	server role = standalone server
    	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
    	idmap config * : backend = tdb
    
    [shares]
    	comment = Shares
    	path = /mnt/WD/Shares
    	read only = No
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	create mask = 0700
    	printable = Yes
    	print ok = Yes
    	browseable = No
    
    [print$]
    	comment = Printer Drivers
    	path = /var/lib/samba/printers
    Code:
    printadmin@printsrv:~$ sudo pdbedit -L
    printadmin:1000:printer admin
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  5. #15
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,635
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba file server for OS X 10.9 or 10.10

    My previous post was to confirm 14.04.1 and SAMBA should work. Perhaps something went wrong with upgrade' if it's not related to the WD drive.

  6. #16
    Join Date
    Jun 2005
    Location
    de.muc
    Beans
    192
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba file server for OS X 10.9 or 10.10

    You know that Apple did implement their own SMB client due to licence changes in Samba starting with OS X Lion? As far as I do remember one of the steps I had to do was to disable in smb.conf in [global] unix extensions = no
    Last edited by lptr; August 24th, 2014 at 06:57 PM.

Page 2 of 2 FirstFirst 12

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
  •