How to run Samba without logging on ??

Discussion in 'macOS' started by sporticia, Sep 24, 2008.

  1. sporticia macrumors newbie

    Joined:
    Sep 24, 2008
    #1
    hi

    I am having trouble determining a method for running the smbd/nmbd daemons automatically *without* having to logon to the system locally

    I am using Tiger on a Mac mini and am trying to setup it up as an unattended server of sorts. But the Samba service does not seem to start up unless the system is logged on with an account locally

    I have tried booting the system and then connecting in via SSH and starting the daemons up. While the processes do seem to be listed, Samba itself refuses to authenticate drive map requests correctly. As soon as I click on an account on the local console and login, it all just works without any other intervention

    If I then logout of the system locally, the Samba stops functioning also :mad:

    This seems to be unique to OS X as my FreeBSD and OpenBSD systems running Samba are mappable without being logged on with user accounts

    Can anyone point me in the right direction at all please ? Am guessing something to do with the Launcher on OS X, but not sure how to modify/work around it to make the smbd/nmbd daemons just fire at bootup and sit there listening

    I did try having a look at the apache daemon as this seems to work in the manner I would like Samba to, but I can't quite get Samba to work in the same way

    Thanks
     
  2. itistoday macrumors newbie

    Joined:
    Sep 24, 2008
    #2
    That sucks. I haven't tried to do this, and I don't know much about this particular situation, but as a temporary solution could you just have the machine set to auto-login the user? If you're worried about someone messing with the machine you could setup a screensaver to come up (with a really short delay) after the user logs in, and have a password set on the screen saver.
     
  3. sporticia thread starter macrumors newbie

    Joined:
    Sep 24, 2008
    #3
    that is what I have done for the meantime until I figure this out

    the machine is only a home system, so security is not a big issue as such, but one day I may have to do this in the real world, and I really would like to know what the correct Apple approved industry method for this is. I don't imagine anyone using a Mac in a datacenter environment is leaving it logged in with a user account just to make bulk standard daemons run correctly

    I have been using samba on various BSD and Linux distros for some time and have never come across this issue before, very Mac'ish :eek:p

    there is probably a really easy solution detail in a doc burried in the mac developer area, it just finding the right keywords to hit it........
     

Share This Page