Accessing shared files over network

I am having some problems with a couple of database files that I access with a Java program over network. Different computers running this program all need access to these files, and my question is if anyone know of a good way to make sure that only one user have access to these files at the time. There is no server software running were the files are stored, they are simply reached through file sharing. Currently I am creating a lock file indicating that someone is editing the files, however if I am unlucky 2 users create that lockfile at the same time and then both get access to the file corrupting it. Anyone experienced this and know of a nice solution to avoid it?

I am having some problems with a couple of database
files that I access with a Java program over network.
Different computers running this program all need
access to these files, and my question is if anyone
know of a good way to make sure that only one user
have access to these files at the time.Use a database server instead.

Similar Messages

  • Unable to access shared files over network after period of time.

    First off, I don't think that this issue is related to our router, but I have been searching for a fix and can not find one. We have a WRT54GS. Now, on to our issue:
    At my work, we have a small network with computers sharing files between the others. I have attached a network diagram to help explain this better.
    Our Win7 machine is our main computer that shares an external hard drive with much information that the other computers need to access. What we have noticed is either after a sleep, or even a period of time of say, 2 hours, those files are no longer able to be accessed. The Win7 machine is still sharing them, but the WinXP machines are unable to access them anymore and my Mac can see the computer is unable to connect to the folders. I have gone and attempted to get some help over at Microsofts site but that was a fail. Here is the link to the forum post there. http://social.answers.microsoft.com/Forums/en-US/w7network/thread/f0a2e8d6-f75a-41d7-a280-c6f3adbffa...
    A member there gave me this:
    The Network connection is probably not resuming after sleep. 
    First try this, http://www.ezlan.net/Win7/power_save_win7.jpg
    It is in the Network Connection Properties under the Network card configuration.
    If it already checked this way, or does not work after checking, the Network card has to be taken out of the computer's Power Saving loop, and stay on all the time.
    Otherwise, Updating the Card with the latest OEM drivers (downloaded from the computer's support site) might help too.
    On a rare occasions, some cards might be "Quirky" in this regards and need to be replaced.
    --I would like to add that this DOESN'T ONLY happen after sleep, it also happens after a time of being used.
    I attempted those and no luck. This problem is still occurring and the only way we can fix it is by restarting the Win7 machine. But even if it is being used, we have no idea when those files are unable to be accessed.
    *I will add that the Win7 machine is still able to access the other computers when this problem occurs if that helps.
    **The Win7 machine is a Dell T3500 running Windows 7 64bit. I can provide specific hardware if needed. The drivers are all up to date as of yesterday.
    ***So upon looking in the Windows XP machine, both of the folders from the Win7 machine disappear once this problem occurs in the My Network Places folder. And one folder is on the internal drive, one is on external. The computers are in this situation now where I am unable to access them. The Win7 machine can read and write from the other computers, but the other computers can even see the Win7 Machine.
    ****All the connections are wired and are not using the wireless.
    Thanks for any help that anyone may have for me!
    Steve
    Network Map > http://scubasblog.com/network.jpg
    Dell Support Forum with same issue I posted >> http://en.community.dell.com/support-forums/network-internet-wireless/f/3324/p/19337620/19716797.asp...

    It sounds like there is incompatibility issue with XP and Win7. To isolate this, do you have another Win7 machine? Try to add it to the network and check if the shared drives are accessible after sleep. If you don't have another computer, try virtual machine and create a Win7 system.
    Update your LAN card driver from the manufacturer's site. Don't use the driver from windows update.
    Lastly, does this happen to your XP machines? Like, one of the XP machine sharing a folder and falls asleep. When it wakes up, does Win7 machine can still access the shared folder?

  • Remote Desktop/Access shared files over PPTP VPN

    Hello,
    I just bought the RV180W so I can connect to my office computer from anywhere as a VPN client. The two things I need to do while I am connected as a VPN client is to be able to access my files on my office desktop and be able to remote desktop to it as well. I have Win7 on all of my computers. Ideally, I would like to do that over PPTP VPN connection but if that is not possible I can try Cisco QuickVPN software.
    I enabled PPTP on my router and created a user account. I was also able to successfully establish the connection remotely. While I was connected as a PPTP VPN client, I was able to access the Internet and my router setup page which is telling me that the connection is good. However, I was not able to either discover my office PC under my network tab in Win7 nor I was able to remote desktop. I keep my office PC on all the time and it never go to sleep. I did not create any connection policy but maybe this is the problem. Please let me know if you know of a solution.
    Thanks!

    Hi David,
    Thank you for the response.
    I was able to access the router configuration using the local IP address (in my case 192.168.1.1). I don't think I would have been able to access it using the public IP address since I have the router remote management feature disabled.
    Now after reading your email, I was finally able to remote desktop and access shared files through a PPTP VPN connection. Here is what I did:
    1- I separted the PPTP VPN IP address range from my DHCP range (in my case, PPTP VPN range is 192.168.1.200 to 210 and my DHCP range is from 192.168.1.100 to 199)
    2- I assigned my office desktop PC that I am trying to remote desktop to a fixed IP address (192.168.1.20)
    3- For remote desktop, I had to type the IP address (192.168.1.20). Typing the PC name (officepc) or searching for was not working.
    4- For shared files, I had to map a network drive as //192.168.1.20/My Pictures for example. I couldn't find my PC when searched for it under Network.
    After doing all that, I was able to do kinda what I wanted. Ideally, I would have liked to avoid using fixed IP addresses and be able to access computers by their name and see them under the Network tab. Is their a way to do this? I noticed that RV220W offers SSL VPN, would that help me?
    I would appreciate it if you could answer my last two questions.
    Thanks!
    Mustafa

  • Sharing Files Over Network and computers not showing up in sidebar

    I am trying to figure out how to share files over the network. Now when I click onto the computer in my shared items, I do not get access to the home folder that I used to see. Instead, I am getting a folder image with the user name below it, but it says Sharepoint. However, when I click on the folder I get another folder that says dropbox with a down arrow. However, when I click on that it says it cannot be opened because I do not have privileges.
    What happened to being able to being able to get access to the home folder from the users on the computer that you are trying to retrieve files from.
    Are there settings I need to adjust to allow me to get access to the files on the other computer.
    The other computer is an iMac G5.
    My next issue is that my wife's iBook G4 doesn't even show up in the shared items in the sidebar.
    Again, are there settings on this computer that have to be adjusted.
    Thanks in advance.
    Russell
    Message was edited by: Russell Massey

    Hi Henry, and a warm welcome to the forums!
    While you may get help or a solution here, It's quite acceptable to start a new topic of your own, certainly feel free to start a new topic to attract more helpers to your particular situation, here's a link if as is often the case, it's hard to find out where to do it...
    http://discussions.apple.com/post!default.jspa?forumID=752
    It asks me to loggin I dont remember ever setting a login and password for it.
    You need to add a User to the PC, or try with the PC's username & PC's Password.
    My Main Problem is that my PC can see my Macbook...
    On the Mac, did you enable Windows Sharing in System Preferences>Sharing>Services ?
    I want to be able to use my printer that is hooked up to my Windows 7 PC with my Macbook
    That has to be set first on the PC.

  • Any ideas why I can no longer access shared files on networked PC's in my office? I keep getting a "server not exist or unavailable" error.

    I have been able to access the files in the past. Actually when I've had this problem before a restart has solved it. Not this time. And it keeps happening. Even more strange, Filemaker is able to access shared databases stored on the same PC's. Why can Filemaker see these computers? Both also show up in the finder but when I try to connect I get the error. I also tried "connect as" with no success. Any ideas?

    Thanks Barney, I am now using pages to open exisiting Word documents. and then saving in the new format. I then trash the old incompatable (.doc) file.
    This works OK, but it will be a time consuming operation to be repearted on each file that I use.
    Is there any shortcut to enable sync all of the .doc files to Page?
    I have not managed to recover Entourage email files . But now use Mail application, which is fine.
    Encountered problems are ongoing.
    I have an Epson Epson Stylus Photo Rx430 printer.
    Since upgrading to OSX10.7 print files do not load to the printer. The Epson job box shows data is being sent to printer but it the task is never completed.
    I take this to be a Printer  Driver issue.
    Today, I have been in contact  with Epson Printer support, enquiring if they have any driver updates for RX430 that would be compatable with OSX10.7 Lion.
    I was notified by Epson that they do not have any drivers for any of their printers for the new OSX 10.7.
    How may I  continue using my now unsupported Epson printer? 

  • Windows 7 computers asking for network password to access shared files and printers on Windows XP PRO computer.

    I have a network of 10 computers configured as peer-to-peer work group. I have upgraded one of the ten from Windows XP PRO to Windows 7 PRO. The other nine computers are all running XP PRO. AS near as I can tell they are all configured the same. I have the
    same user and same passwords on all computers. One of XP computers is used as a print server. The Windows 7 computer initially was able to access shared files and printers on all XP machines with out requesting a network password.
    Suddenly, the Win 7 computer began requesting a network password to access the shared files and printers on the XP print server. It will not accept any of the user names or passwords (all administrators on both machines with identical names and passwords.)
    The Win 7 computer has no problem accessing the shared files on the other XP machines. It can even access shared printers in a different work group. Apparently something has changed but I'm at my wits end trying to figure what changed on either the Windows
    7 machine or the print server XP machine.
    I would appreciate any help. Thank you

    Hi,
    Based on my research, I would like to suggest the following:
    1.   
    Disable simple file sharing on the Windows XP computer:
    How to disable simple file sharing and how to set
    permissions on a shared folder in Windows XP
    2.   
    On the Windows 7 computer, go to “Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings” and ensure that the
    following items are turned ON:
    Network Discovery
    File and printer sharing
    And this one is OFF:
    Password protected sharing
    3.   
    Temporarily disable or remove all the security software (firewall, anti-virus, anti-spyware, etc.) on the computers and check if it works.
    In addition,
    I would like to share the following with you for your reference:
    Troubleshoot file and printer
    sharing
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • Transferring file over network? what can I use besides ssh?

    What can I use to transfer file over network besides using ssh?
    This is only for experimental purposes. I have used ssh before, by using command like this:
    (time cat /run/shm/test/input/totalInput.tar | ssh username@ip-server "cat > /dev/null") 2>>/run/shm/test/p3_UC_ctime_tar.txt
    or this, if I tried to compress a file and then transfer:
    (time bzip2 -kfc1 /run/shm/test/input/totalInput.tar | ssh username@ip-server "cat > /dev/null") 2>>/run/shm/test/p3_ctime_tar.txt
    However, I think ssh is killing my transfer speed. I am getting only 10-20Mbps.. Router should support over 200-300Mbps.
    What can I use besides ssh? I was thinking about netcat, but what I don't like is that I have to open port on the other side for each new file transfer.

    Well, what I am conserned with things like scp and ssh (I tried scp too) is encryption.
    I just moved one file over to a server with scp, and I got about 2.1MB/s... which is about 16.8 Mbps..
    I am using Linksys E900, which is wireless-N router. Connection exist between two computers only, nothing else is using that router. However, there is another wireless point outside of our room, which is used for public University network. I don't know how much of effect it would have on our set up.
    Both computers have plenty of disk space. One computer (actually development board) uses sd-card for its OS and other disk space.
    About 200-300Mbps.. is just something I saw on router's specs.
    Last edited by kdar (2012-08-19 03:22:28)

  • No longer able to access shared files on my pc over my network from my mac

    For months I have been able to access my shared files folder located on my pc, sharing a network with my PowerBook G4 (OS X 10.3 +). Suddenly, when I try to access the pc now, I get the spinning beachball and nothing. I can see my pc in the network, but it doesn't open. I haven't made any changes on the pc side, except perhaps the windows security updates that come along once in a while. (I did try to access it with the firewall turned off just in case, but no dice).
    Does anyone have any ideas or things I could try to shake this out?

    Adobe Story stores its local files on the following location:
    On Windows,
    1. Open Windows Explorer and type '%appdata%' in the address bar
    2. Make a copy of 'com.adobe.AdobeStory.<some-number>' folder. This folder contains Story's local data.
    On Mac,
    1. Open Finder.
    2. From 'Go' Menu, open 'Go to folder'
    3. Type '~/Library/Preferences' and hit enter
    4. Make a copy of 'com.adobe.AdobeStory.<some-number>' folder. This folder contains Story's local data.

  • Sharing and Accessing Folders & Files over a Network

    Structure:  2 iMac desktops linked together over an ethernet connection.  NO SERVER.
    I'm having trouble getting folders shared on my new iMac.  I'm an ex-windows guy, and in Windows you only have to share a main folder or sub folder to get access to the files.  I have two folders shared between 2 different iMacs, but I can't access the files there, as I get a "you don't have permission" warning.
    I get conflicting information when I share folders then "add" people to the permissions list.  It shows me as kevsahl, but when i go to add myself to my office managers machine, it shows me as my contact in the address book.  Why is it so difficult?
    Everything about the MAC is easier, to me any way, so can someone please tell me the secret shortcut to making this an easy task!
    Thanks!
    Kevin
    (2) iMac
    (1) Macbook Pro 13"
    (1) iPad2
    (4) iPhones

    I apologize, it appears I'm in the wrong forum.  you are correct, i don't have a PPC, just the basic new iMac with Snow Leopard.
    Sorry!  I'll post this in the appropriate area.
    Kevin

  • Sharing Files Over a Network from an External Drive

    I have a Macbook Pro that is running 10.5.6, and I have, recently, acquired another Mac that is running 10.5.6, as well. I decided that I wanted to share some files from my Macbook Pro. The setup for file sharing is a breeze, but I am having some issues. I choose folders from my Macbook Pro's internal drive, and I create two users, "alpha" and "beta." I give alpha privileges to share a folder called "A" and I give beta privileges to share a folder called "B." From my other Mac, I connect to my MBP, and I enter the correct credentials for each user, and "alpha" and "beta" have access to what was assigned to them earlier, respectively, folder "A" and "B."
    Everything seems to be great! However, the issue begins when my external drive comes into play. (It is formatted as Mac OS Extended Journaled.) I select a folder called "C," from my external drive, and give only privileges to user "gamma." I also select a folder called "D," also from my external drive, and only give privileges to user "delta."
    Whenever I login from my other Mac, I find a problem. If I login with "Gamma," I should only be able to view folder "C," but I can also view folder "D!" Whenever I login with "Delta," I should only be able to see folder "D," but I see folder "C," as well. I have fiddled around with many settings, and I have had no success. A few members on my network will be sharing files from my Macbook Pro, and I only want certain members to see certain folders. I've tried this with two different external drives, and they both exhibit the same issue. Is this something that can be fixed?
    Thanks for the help!

    I'm sure that someone has dealt with this. Any input would be greatly appreciated!

  • Sharing Files over a network!

    I'm on a network with many other users, some of which are PC's and was wondering how I could share some of my files over the network. How would I go about making a folder or group of folders which are able to be accessed (either with or without a password) on the network. Making sure that only the files within the specified folders is placed on the network?
    Any help would be much appreciated!
    Thanks!

    Checkout SharePoints.

  • Accessing a file over the network

    Hi ,
    I need to access a file for read/write operations. The file may exist or may not on another computer in my network. I use the File class for accessing the file. (File f = new File("\\192.23.23.23\file.txt");
    My problem is how can I know if I cannot access the file because I have network issues (e.g. The file exists but the network is down so its not accessible) or because the file really dont exist on the given address.
    Since File operations does not throw a specific exception Its hard to know the exact reason for access failure.
    Any suggestions ?
    Thanks.

    Javaist wrote:
    Hi ,
    I need to access a file for read/write operations. The file may exist or may not on another computer in my network. I use the File class for accessing the file. (File f = new File("\\192.23.23.23\file.txt");
    My problem is how can I know if I cannot access the file because I have network issues (e.g. The file exists but the network is down so its not accessible) or because the file really dont exist on the given address.
    Since File operations does not throw a specific exception Its hard to know the exact reason for access failure.
    Any suggestions ?Here's a complete hack that only uses File that is completely coupled to Windows and the "\\hostname\dir\file..." syntax. This is not a universal solution and strongly urge you not to use it:
    public class NetworkFileTest {
       public static void main(String[] args) {
          File file = new File("\\\\myhostname\\tmp\\filethatexists");
          if ( file.exists() ) {
             System.out.println("File exists");
          } else {
             if ( hasPathToHost(file) ) {
                System.out.println("File doesn't exist");
             } else {
                System.out.println("No path to host");
       private static boolean hasPathToHost(File file) {
          if ( file.exists() ) {
             return true;
          } else {
             file = file.getParentFile();
             if ( file != null ) {
                return hasPathToHost(file);
             } else {
                return false;
    }This just recursively checks the parent to see if it exists. Once it gets up to the host "directory," it will return false if the network is down, or true otherwise.
    Remember that there's absolutely no way to check if a remote file exists if the network is down, short of carrier pigeons. This will just tell you if the file might exist.
    Edited by: endasil on 9-Oct-2009 10:43 AM

  • Copy files over Network - sometimes message "insufficent access priv"

    Hi have a MacBook Pro & a MacPro.
    I copied big files wirelessly all the time.
    I software updated to QuickTime 7.1.6 and now I have two issues.
    1) When I try to pull files over the network, I often get the message "insufficent priveleges". The file is in the middle of copying, so it starts the process just fine. I am logged in as a registered user. I can copy the files from the Mac Pro to the laptop.
    2) I used to be able to stream video over my wireless without a hitch (even on my old Powerbook g4). Now streaming video plays for a few a few minutes and locks up.
    It seems the update did something bad. However QT video plays fine locally from my laptop harddrive.
    Anybody with similar problems or know any solutions?

    Thanks for the tip. I tried repairing permissions and lots of things were fixed on the laptop but the problems remain.

  • Searching for shared files over a server network using a client computer

    I think spotlight can only be used to search for files on a local computer. Is there a way to search for shared files on a server from a logged in client computer?

    It should work on shared HFS volumes. You would have to start the search from the Finder, not from the Spotlight menu.

  • Problem seeing shared files on networked windows computer

    Using wireless Linksys network with windows XP desktop for printer and some shared file access. Printer working well. In finder, cannot connect to see shared files.

    Hi RichardDalli,
    From the lof I see that you are getting Error 1935.
    You can try solutions from DOC: http://kb2.adobe.com/cps/403/kb403969.html
    If you still face the same issue you might have to contact Microsoft.
    Regards
    SameeR

Maybe you are looking for