Automatically reset file sharing in Server

Hi everyone.
I have a Mac mini with Server (Mountain Lion) and file sharing enables. When I turn tehe unit on, computers on the same network can't find the shared folders until I turn file sharing off and on again.
Does anyone knows what's happening?
Is there a way to automatically do this (turn off and on)?
Thanks

Everything you can do in the Server.app you can do via the command line.  For example, you can setup a launchd script to execute the following commands:
     serveradmin stop afp
     serveradmin start afp
You can find out more about serveradmin via terminal, with the command
     man serveradmin
The problem you describe sounds unfamiliar to me.  You should look at the server logs to see why afp is not working.

Similar Messages

  • Time Capsule and File Sharing on Server

    I am in the process of setting up Server at home. I've run into a snag with using a Time Capsule as my router and backup drive and also enabling file sharing through Server. When adding File Sharing as a service in the Server application, a warning comes up to disable disk sharing at the router before forwarding the ports. The problem is that if I disable disk sharing on the Time Capsule, I can no longer access my Time Capsule drive (for obvious reasons). I was reading another post that discussed enabling disk share from the router and then adding a port for file sharing manually, but that did not seem to work as I cannot remotely access my files.
    I am running Server on an iMac which is running Mavericks. The Time Capsule says it's "version 7.6.4". It's a 2TB drive. The iMac is a 2012 system with 1TB drive. I also have a Drobo and a few external drives connected.
    I appreciate any advice! Thanks!

    If I turn on disk sharing (even without the LAN option) I can select the disk to back up, but then I cannot share files using my server due to the port conflict.
    I find this hard to follow.. there is no port conflict on a local lan with sharing.. that is not even possible.
    If you have several Macs for instance and set each to share.. they are all able to share.. there is no port conflicts.. You do not need all the devices on different ports because they have different names.
    You only get into port conflicts when you have external access turned on.. and are having to port forward. Because the network is identified by a single public IP.. in that case you can port translate but you don't do that in a LAN.
    There has to be something screwy in the server version of Mavericks for this to happen.
    I am trying to think of way around it.. but I will do a bit of google work first on if others are having issues with latest server version.
    What about giving me a few screenshots of the setup...
    Network on the server.. and network on the TC ..
    And run netstat scan on the server to see the local IP addresses of everything.

  • How can I reset File Sharing?

    After spending many hours on the phone with Enterprise Support this weekend I have a lot of the glitches out of Lion Server 10.7.3. However I have a real important feature not working right now. I can't get my Share Points to work. I have created a Group Share and a Network Share with Workgroup Manager that automatically authenticate when a client logs in. These are working perfectly. However Share Points that I created with File Share in Server are not working. When I browse to the directories in Finder on the sever they show they are shared directories, and their permissions are correct but I can't access them on a client machine. I have them shared as part of a workgroup but even when I enable a individual user to share them it doesn't work.
    These shares used to work before I reinstalled Lion Sever so I'm thinking I just need to reset File Sever. Is there a a command I can use in Terminal to rest it?
    Thanks,
    Tony

    Ok I found the problem. This is a Mac Mini Server with 2 internal hard drives. Apparently the second Hard Drive did not have any share permissions on it. This is where I located the directories that I was trying to share. Once I changed the permissions of the Drive in Finder then all shares I created in Server began to work correctly.
    Maybe this will help somebody else out.
    Tony

  • Reset File Sharing Preferences?

    Is there a way to reset the file sharing preferences in Leopard?
    On a fresh install of Leopard you get an automatically made folder entry under Shared Folders in File Sharing in System Preferences. The folder is called, for example, "Reuben's Public Folder". I deleted this folder entry by mistake and now I want to get it back. Sure, I can just add my Public folder to this Shared Folders list, but I want it to be called "Reubens's Public Folder". Can anyone please tell me how to do that?

    Thanks for the link biovizier, that was enough information for me to figure it out :)!!!
    HERE ARE THE INSTRUCTIONS:
    (1) click on Finder and then "go to folder", type in /var/db/dslocal/nodes
    (2) then do a get info on the "Default" folder and allow EVERYONE read+write access
    (3) do the same for the the following two folders, CONFIG and SHAREPOINTS
    (4) do a get info on the Public.plist file, and allow EVERYONE read+write access
    (5) rename the Public.plist to "username's Public Folder.plist"
    (6) open this file in a text editor (I used SubEthaEdit), and change every instance where it just says "Public" to "username's Public Folder"
    (7) save the file, and change the permissions of that file and all of the folders above back to "no access" for the EVERYONE group
    Close and Restart File Sharing in System Preferences .... and you're done!
    It'll still say the folder being shared is "Public" inside of System Preferences, but when users connect, it'll say "username's Public Folder"

  • Reset File Sharing authentication entries

    On a OSX.6 client I have connected to a OSX.6 server.
    The client remembers name and password I have used to mount the volume.
    I want to delete these entries in order to begin the connection with another user/password.
    I have deleted the entry in Key Chain Access, but still a new connection does not ask me a new authorization.
    What files/prefs else do I need to delete?

    Thanks for the link biovizier, that was enough information for me to figure it out :)!!!
    HERE ARE THE INSTRUCTIONS:
    (1) click on Finder and then "go to folder", type in /var/db/dslocal/nodes
    (2) then do a get info on the "Default" folder and allow EVERYONE read+write access
    (3) do the same for the the following two folders, CONFIG and SHAREPOINTS
    (4) do a get info on the Public.plist file, and allow EVERYONE read+write access
    (5) rename the Public.plist to "username's Public Folder.plist"
    (6) open this file in a text editor (I used SubEthaEdit), and change every instance where it just says "Public" to "username's Public Folder"
    (7) save the file, and change the permissions of that file and all of the folders above back to "no access" for the EVERYONE group
    Close and Restart File Sharing in System Preferences .... and you're done!
    It'll still say the folder being shared is "Public" inside of System Preferences, but when users connect, it'll say "username's Public Folder"

  • Automate itunes file sharing?

    I am an iOS developer.  I'm developing a Mac-based app to generate data files useful on an iOS app.  These will get uploaded using the iTunes file sharing.  Currently the only way to do that is by dragging and dropping them into iTunes from the finder.  What I'd like to be able to do, is to put them there programmatically, so then when my app 'exports' the file winds up on the iPhone/iPad directly.
    I know this is do-able because there is an app called PadSync (which looks awesome by the way), that creates a locally mapped directory, that it keeps in sync with your iDevice, even without iTunes.  To date I haven't been able to find any API that would allow my app this kind of direct access, or even an Applescript, or Automator action to drive iTunes to do this. 
    Does anyone know of a way to automate the upload of files (through the iTunes mechanism if possible, but any ideas are appreciated)? 
    Thanks,
    Dave

    Hi Chetan,
    No, unfortunately I didn't.  I've resign myself to the manual drag and drop, and cross my fingers the filesystem access might get streamlined in a future update.  PadSync looks awesome, but I haven't tried it.
    Cheers,
    D

  • Remote File Sharing Options - Server 2012 Standard

    Looking for an option for file sharing outside of the office, other than having to use VPN. I know there is directaccess in 2012 standard, however, our machines are Windows 7 pro and machines are only bound to a workgroup, no domain. Trying to
    find alternatives as we want to utilize a cloud server for company file sharing.  Let me know if there are any options out there.
    Thanks, Bob

    Yeah, this is for business.  So we need a shared solution, ftp is not an option and I we do have office 365 which I believe includes onedrive.  The problem is, we need something simple with granular permissions.  I don't think any cloud service
    offers anything simple as mounting a drive with granular permissions.  Dropbox doesn't have it and I don't think any Microsoft services has it either.

  • Reseting File Sharing Preferences for admin account

    Hello:
    Was recently trying to network my macbook with my brothers Vista laptop.
    Followed a few websites, could get his pc to access my mac but couldn't access the PC.
    At any rate -- now I have been getting a lot of permission errors on my macbook.
    I repaired permissions via disk utility. Still -- some folders are randomly loading up as read-only and I have to change them to read/write in getinfo.
    Is there anyway to reset my sharing preference pane? Or at the very least stop the random permission errors.
    Haven't had an OS issue prior to this.
    thanks.

    Chr,
    why not use a Group Policy?
    Shaun Pond
    newly reminted as a Knowledge Partner

  • How do I set up file sharing in Lion Server to work like file sharing in Lion Client?

    I've just installed Lion Server on my home iMac to enable remote access via VPN to my home network.
    When the iMac was running Lion Client (before the upgrade to server), and when File Sharing was enabled on the iMac; when other Macs on the LAN connected to the iMac via AFP, they were always able to connect to (share) any mounted external volumes (external USB or FireWire drives connected to the iMac). e.g.
    Now that I've upgraded to Lion Server, when other Macs on the LAN connected to the iMac via AFP they are only able to connect to (share) the sharepoints listed in the File Sharing pane of Server.app. e.g.
    Is there any way to set up File Sharing in Lion Server so that it works the same way as it does in Lion Client with respect to mounted external volumes? i.e. they are automatically shared? I know I can add each volume manually to File Sharing in Server.app but this gets tedious.
    Many thanks!

    I normally have a Firewall enabled. I recently had to do an erase and install of Lion, followed by a one-by-one re-install of all of my software. One of the first things I did was to set up all of my System Preferences the way I like them; Turning the Firewall on was one of them. Later I noticed it was off and turned it on again. I had already set up sharing and was surprised to see the problem when I turned it back on.
    As to why do I think it needs to be on. It is another part of my security layer.

  • Is FTP server better than common file sharing

    what is better : ftp server or common file sharing on server
    i need to convince the management that ftp server is better than file sharing on server but i need some strong security points.

    I agree on DropBox.
    In DropBox, Favorite (Star) the files (documents, MP3...) when you are on-line.  They will be available when you are off-line. Test access to your files in Airplane mode before you leave home.
    To bring the document into an app (e.g., Pages), use 'Open In..'..  the MP3, you can just tap in DropBox. 
    There are solutions to get files back from different apps to DropBox, but honestly it is probably just easiest to email it to yourself (and then use your Mac to copy the final file back to DropBox for reference purposes).
    Have a good vacation.

  • Clearing entries in File Sharing

    Setup:
    - Mini, C2D (last gen)
    - Using the most basic server setup
    Using File Sharing in Server Preferences, there are several entries in there that don't exist on the file system anymore -- how do I get rid of them? I've tried to remove them from this pane, stopping sharing and removing, etc -- it's simply not accurate because I can't remove shares that don't exist anymore (folders moved, etc.

    You have to recreate the shared folder then unshare it ...

  • How can I allow network users to use File Sharing on 10.8 Server?

    I am in the process of setting up a new OS X 10.8 Server. I have exported/imported the network users from my previous OS X 10.6.8 Server using Workspace Manager. I have re-entered the passwords of the users. I have existing clients running (stil logged in).
    I have set up the File Sharing service in Server.app. I have several mount points. I have made the Users mount point available for home directories over AFP.
    Now, the system administrator can connect to the server and get access to the file shares. So the basic file sharing system works.
    Also: the users on a client can get there password verified (e.g. when unlocking screen protection) by the server. It is just AFP they can't get access to, while the system administrator account (OD /Local on the server) can be used. So, the password in the server is OK too. It seems to be a matter of privileges.
    But no network user (OD user in directory /LDAPv3/127.0.0.1 on the server) can get access. Where can I give network users privileges for File Sharing on the server?
    I did try to add either the "Open Directory Users" group or a specific user that was imported into com.apple.access_afp. If I do that, there is partial success. I can connect to the server from the client with a user account other than system administrator from the server (but connecting is slow). But Mobile Home Sync does not work:
    1:: [13/04/05 16:11:10.379] Scheduling next sync of "HomeSync_Mirror" at 2013-04-05 14:11:20 +0000
    1:: [13/04/05 16:11:20.782] ==========================================================
    0:: [13/04/05 16:11:20.782] Starting automatic sync of "HomeSync_Mirror".
    1:: [13/04/05 16:11:20.786] Peer "network" reports changes since last sync.
    1:: [13/04/05 16:11:20.786] [0x7fd5a9224760/<SStore_FS:0x105db3420>] +[SStore_FS newStore_FSForPeer:alias:]: isRemote = NO
    1:: [13/04/05 16:11:20.786] [0x7fd5a9224760/<SStore_FS:0x105db3420>] +[SStore_FS newStore_FSForPeer:rootPath:rootAlias:rootRef:storePath:optionalStoreID:]: peer = <SPeer_FS:0x7fd5a5009520> = local, optionalStoreID = (null), peer.storeIDString = *
    1:: [13/04/05 16:11:20.786] [0x7fd5a9224760/<SStore_FS:0x105db3420>] +[SStore_FS newStore_FSForPeer:rootPath:rootAlias:rootRef:storePath:optionalStoreID:]: rootPath        = /Users/gerben
    1:: [13/04/05 16:11:20.786] [0x7fd5a9224760/<SStore_FS:0x105db3420>] +[SStore_FS newStore_FSForPeer:rootPath:rootAlias:rootRef:storePath:optionalStoreID:]: storePath       = /Users/gerben/.FileSync/store.filesyncstatetree
    1:: [13/04/05 16:11:20.787] [0x7fd5a9224760/<SStore_FS:0x105db3420>] +[SStore_FS newStore_FSForPeer:rootPath:rootAlias:rootRef:storePath:optionalStoreID:]: rootAlias       = {path='/Users/gerben', targetName='gerben', volumeName='Macintosh HD', type=DIR, volumeCreateDate=2010-08-10-12:58:16, targetCreateDate=2011-08-28-18:39:13, parentDirID=37638, nodeID=3003598, filesystemID=0000 ('0000'), signature=0x482b ('H+'), isBootVolume=YES, isAutomounted=NO, isEjectable=NO, hasPersistentFileIDs=YES, mounted=YES, url='file://localhost/'}
    0:: [13/04/05 16:11:20.789] -[SPeer_FS _mountServerCallbackShares:status:]: received error 64
    0:: [13/04/05 16:11:20.790] EXCEPTION: _mountServerCallbackShares:status: (Host is down) <-[SPeer_FS mountPeerVolumeWithURLString:] (Peer-FS.m:446): "'(-1)' error 64">
    0:: [13/04/05 16:11:20.790] USERINFO: {
    0:: [13/04/05 16:11:20.790]     NSLocalizedDescription = "Host is down";
    0:: [13/04/05 16:11:20.790] }
    0:: [13/04/05 16:11:20.790] BACKTRACE: {
    0:: [13/04/05 16:11:20.790] ? | 0x105cb79b7  
    0:: [13/04/05 16:11:20.790] ? | 0x105cbf0e5  
    0:: [13/04/05 16:11:20.790] ? | 0x105c2c866  
    0:: [13/04/05 16:11:20.790] ? | 0x105c2babd  
    0:: [13/04/05 16:11:20.790] ? | 0x105c2acb4  
    0:: [13/04/05 16:11:20.790] ? | 0x7fff858bb72a
    0:: [13/04/05 16:11:20.790] ? | 0x7fff858bb6a2
    0:: [13/04/05 16:11:20.790] ? | 0x7fff874cf8bf
    0:: [13/04/05 16:11:20.790] ? | 0x7fff874d2b75
    0:: [13/04/05 16:11:20.790] }
    1:: [13/04/05 16:11:20.790] Peer "network" is unable to sync. (-[SPeer_FS mountPeerVolumeWithURLString:] (Peer-FS.m:446): "'(-1)' error 64")
    0:: [13/04/05 16:11:20.790] Peer "network" is unable to sync. Not enough peers will be available to continue syncing.
    0:: [13/04/05 16:11:20.790] Aborting sync of "HomeSync_Mirror".
    1:: [13/04/05 16:11:20.790] -[SPeer abortSync] "local"
    1:: [13/04/05 16:11:20.797] -[SStore_FS setupWithAlias:andRef:] (Store-FS.m:447): unlink('/Users/gerben/.FileSync/.fstemp.QW1Gh-bhvgEhVwmG3.noindex')
    0:: [13/04/05 16:11:20.798] EXCEPTION: !IF <-[SPeer(protected) doPrepareForSyncWithResolvedConflicts:] (Peer.m:1149): "'(([self checkAbort]))'">
    0:: [13/04/05 16:11:20.798] BACKTRACE: {
    0:: [13/04/05 16:11:20.798] ? | 0x105c2bb66  
    0:: [13/04/05 16:11:20.798] ? | 0x105c2acb4  
    0:: [13/04/05 16:11:20.798] ? | 0x7fff858bb72a
    0:: [13/04/05 16:11:20.798] ? | 0x7fff858bb6a2
    0:: [13/04/05 16:11:20.798] ? | 0x7fff874cf8bf
    0:: [13/04/05 16:11:20.798] ? | 0x7fff874d2b75
    0:: [13/04/05 16:11:20.798] }
    1:: [13/04/05 16:11:20.798] -[SStore_FS deleteStateTreeTurdFile] (Store-FS.m:476): unlink('/Users/gerben/.FileSync/store.filesyncstatetree.statetree_dirty')
    1:: [13/04/05 16:11:20.798] Peer "local" is unable to sync. (-[SPeer(protected) doPrepareForSyncWithResolvedConflicts:] (Peer.m:1149): "'(([self checkAbort]))'")
    0:: [13/04/05 16:11:20.798] Peer "local" is unable to sync. Not enough peers will be available to continue syncing.
    1:: [13/04/05 16:11:20.798] EXCEPTION: SFAbortedException <-[SSyncEngine _waitForPeers:] (SyncEngine.m:1922): "'(_abort)'">
    1:: [13/04/05 16:11:20.798] -[SSyncEngine threadMain_SyncEngine_sync:]: sync failed with exception "-[SSyncEngine _waitForPeers:] (SyncEngine.m:1922): "'(_abort)'"".
    0:: [13/04/05 16:11:21.066] Sync of "HomeSync_Mirror" encountered errors. (_mountServerCallbackShares:status: (Host is down))
    0:: [13/04/05 16:11:21.067] Last successful sync completed at 2013-04-04 20:17:15 +0000.
    0:: [13/04/05 16:11:21.067] Finished sync of "HomeSync_Mirror".
    1:: [13/04/05 16:11:21.067] Scheduling next sync of "HomeSync_Mirror" at 2013-04-05 14:31:21 +0000
    1:: [13/04/05 16:11:21.284] 1-pass sync of "HomeSync_Mirror" took 0.02 seconds

    Hi Gerben,
    Try creating a brand new user, that's not imported and see if that works. Every user/group has a little gear in the Server.app/Users or Groups which allows specific access to specific services, perhaps filesharing is off in that section?
    Is your DNS setup properly? Can you verify that clients can see the FQDN of your server?
    After setting up the Users folder for mobilehomes, did you check whether the group and the separate users have access to filesharing? I am able to select the correct homefolder /Users and restrict the homefolder size.
    Goodluck!
    Jeffrey

  • Mac OS X Server, File Sharing, Permission

    Hi All,
              I’m trying to use Mac os X server Maverick in a small team within my
              organization. I was able to successfully install and setup the server, which
              resides in a local network. I did the following setup:
         1 )  Open Directory Setup
          2 )  File Sharing ,  /Users , available for home directory over AFP
          3 )  Created Network users with home folder pointing to /Users
          4 )  Bound Clients to the server
          5 )  XCode Server Setup with git repository
          Users now can login using their own account and their home folder 
          is loaded from the server. Unfortunately there  are issues. Clients are having permission issues,
          which we have never encountered on local machines before we switched to using XCode Server. 
          Here is a list of some of the issues so far 
          Xcode issues on client computer:
               a)   When creating a XCode project, it reports the error “Couldn’t not find build module Drawin” when clicking create
                 button.I found online a workaround fix that supposedly works, which is to set "Enable Modules (C and Objective C)"
                  to No. But we didn’t have to do this before using XCode server.
               b )  When committing to git repo , the following error happens “fatal: Repository has been updated ,
                    but unable to write to new_index. Check the disk is not full or quota is not exceeded ,
                    and then "git reset HEAD"   to recover”  Another work around we found online is to do on the client, 
                   cp index backup ; mv backup index
           We don’t want to have to do this every time we create a project, what could be wrong with the setup?

    You need to run Server Admin and click on the File Sharing icon at the top. Then click on Share Points, and Browse. You then browse to the folder you want to set the permissions on.
    You will see in the bottom half of the window the current permissions. While in theory you can use just POSIX permissions, Snow Leopard prefers using ACL permissions. So as an example to set a folder to be only accessible by members of a specific group and to deny access to everyone else you would do the following.
    Click on the + symbol at the bottom
    A window will open listing all your users and groups, click on groups at the top
    Find the special 'Everyone' group and drag it to the ACL section
    Find the group you want to give access to and also drag that to the ACL section but make sure it is above the Everyone group as higher setting override lower settings
    Set the Everyone group to Deny Read permission, this will prevent them being able to access this folder
    Set the group you do want to have access to Allow Read or Allow Read/Write, the first would let them only be able to read, the second also allows them to create files or modify files.
    Now click on the Save button in the bottom right.
    You might also want to click on the gear wheel symbol and choose 'Propagate permissions' if you want to apply these permissions to all the files and folders within this folder.

  • Best Practises for File Sharing and Print Server on Windows Server 2012

    Is it better to have File Sharing and Print Server installed on the same Windows 2012 Server ?
    Or, they should be installed on 2 different Windows Servers ?
    Hussien Sherief

    It will work just fine to combine them.
    But most people would recommend keeping functionality separate... if the budget allows.  That whole "single point of failure" concept.  If that server dies, you've lost both of those functions.

  • How to delete the Calander Server account under the options tab in file sharing in your system preferences?

    When I go under System Preferences-Sharing-File Sharing-Options there is an account listed called "Calender Server" that is checked. When I try to uncheck it, it asks for a password to turn it off and I don't know the password. How do I either turn this off or get rid of it?

    Better still, try Apple - Support - Discussions - Mac OS X Server v10.5 Leopard.

Maybe you are looking for

  • How to make On Account Payment

    Hi all, How to make On Account Payment. What is the difference between On Account Payment and Down Payment Thanks

  • Error "Item is not defined as an Inventory Item" using oInventoryGenEntry

    I am trying to create a Receipt from Production with this code:                 receive = (Documents)_Company.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);                 receiveLine = receive.Lines;                         receiveLine.BaseTy

  • J2SDK 1.4.2_10 on SLES9 : JAVA error

    I have installed J2SDK 1.4.2_10 on SLES9, After compiling any java program, when i am trying to run that program using java it says it can not find the class javac test.java java test The java class is not found: test but when i am trying to compile

  • Airport connection drops about once a day..

    is the problem in my macbook or in my airport?? when i go to look at the airport, the green light is still on. help would be appreciated. MacBook   Mac OS X (10.4.8)  

  • Android Beam?

    I have 2 LG spectrum 2s that I am trying to get the contact list transfered from one to another using the beam feature but Its not working. On each phone I have NFC and Android beam on, open contact list on the phone i want to transfer from, place th