Setting up a file server - Problem defined

This is a file transfer server where I want to send
1) A file CV.docx from Client to server
2)The Server recieves this file as plaintext.docx
3) Server now sends back the plaintext.docx back to the client
I am able to successfully send the file from client to server (i.e send CV.docx from client to server), but there is problem while sending
back file from server back to client (i.e plaintext.docx from server to back to client).
Can anyone tell me how to slove this problem?
Best Regards,
Amar
------------------------------------------------Client Side----------------------------------------------------------------------------------------------------
import java.net.*;
import java.io.*;
public class FileClient{
  public static void main (String [] args ) throws IOException {
int filesize=4034296; // filesize temporary hardcoded
long start = System.currentTimeMillis();
    // localhost for testing
    Socket sock = new Socket("155.245.20.34",13267);
    System.out.println("Connecting...");
      // sendfile
      File myFile = new File ("CV.docx");
      byte [] mybytearray1  = new byte [(int)myFile.length()];
      FileInputStream fis = new FileInputStream(myFile);
      BufferedInputStream bis = new BufferedInputStream(fis);
      bis.read(mybytearray1,0,mybytearray1.length);
      OutputStream os = sock.getOutputStream();
      System.out.println("Sending...");
      os.write(mybytearray1,0,mybytearray1.length);
      os.flush();
//Receive file here
    int bytesRead;
    int current = 0;
     // receive file
    byte [] mybytearray  = new byte [filesize]; //PROBLEM HERE!
   // Stops at this point indefinately
    InputStream is = sock.getInputStream();
    FileOutputStream fos = new FileOutputStream("plaintext.docx");
    BufferedOutputStream bos = new BufferedOutputStream(fos);
    //PROBLEM HERE!
   // Stops at this point indefinately
    bytesRead = is.read(mybytearray,0,mybytearray.length);
    System.out.println("trace");
    current = bytesRead;
    System.out.println("Check123");
   do {
       bytesRead =
          is.read(mybytearray, current, (mybytearray.length-current));
       if(bytesRead >= 0) current += bytesRead;
    } while(bytesRead > -1);
    bos.write(mybytearray, 0 , current);
    bos.flush();
    bos.close();
    sock.close();
     os.close();
      sock.close();
long end = System.currentTimeMillis();
    System.out.println(end-start);
} ----------------------------------------------Server Side-----------------------------------------------------------------------------------------------
//server module
import java.net.*;
import java.io.*;
public class FileServer {
  public static void main (String [] args ) throws IOException {
int filesize=4034296; // filesize temporary hardcoded
    long start = System.currentTimeMillis();
    int bytesRead;
    int current = 0;
    // create socket
    ServerSocket servsock = new ServerSocket(13267);
    while (true) {
      System.out.println("Waiting...");
      Socket sock = servsock.accept();
      System.out.println("Accepted connection : " + sock);
     // receive file
    byte [] mybytearray  = new byte [filesize];
    InputStream is = sock.getInputStream();
    FileOutputStream fos = new FileOutputStream("plaintext.docx");
    BufferedOutputStream bos = new BufferedOutputStream(fos);
    bytesRead = is.read(mybytearray,0,mybytearray.length);
    current = bytesRead;
    do {
       bytesRead =
          is.read(mybytearray, current, (mybytearray.length-current));
       if(bytesRead >= 0) current += bytesRead;
    } while(bytesRead > -1);
    bos.write(mybytearray, 0 , current);
    bos.flush();
System.out.println("Sending file to client");
// sendfile
      File myFile = new File ("plaintext.docx");
      byte [] mybytearray1  = new byte [(int)myFile.length()];
      FileInputStream fis = new FileInputStream(myFile);
      BufferedInputStream bis = new BufferedInputStream(fis);
      bis.read(mybytearray1,0,mybytearray1.length);
      OutputStream os = sock.getOutputStream();
      System.out.println("Sending...");
      // ******PROBLEM here!
     //******* Waits here indefinately
    //******** No exceptions till this point
os.write(mybytearray1,0,mybytearray1.length);
      System.out.println("Check\n");
      os.flush();
      long end = System.currentTimeMillis();
      System.out.println(end-start);
      System.out.println("End\n");
  bos.close();
    os.close();
    sock.close();
}

Thank u all for ur replies.http://www.catb.org/~esr/faqs/smart-questions.html#writewell
How To Ask Questions The Smart Way
Eric Steven Raymond
Rick Moen
Write in clear, grammatical, correctly-spelled language
We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal — in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

Similar Messages

  • Help setting up a File Server

    Hello,
    I have a few questions about setting up a file server with Mac OS X 10.5 Server.
    I have set up a sub domain name for the server to use... I just don't know how to get the dynamic IP address to contact the domain name so can ftp to the server... Mac Server is very new to me and I have know Idea on how to set it up...
    FYI we plan to run the file server on a G5 Mac Pro, With a dynamic IP.
    -Ron

    You will not find this an easy setup to achieve.. the TC is not accessible remotely with BTMM unless it is the main router in the network.. and this is not possible when the Uverse is installed as the main router.
    The other method is to open AFP to outside access.. read the Tesserax methods here.
    AirPort Disk - Remote Access (3 Methods)
    The last method can be adjusted for using any brand router.. you do not need to port translate.. simply open port 548 to TC bridged behind the Uverse. It must be static IP so set that on the Uverse. And you will likely need to use ddns which is also built into the uverse.
    Good luck with the treatment.. I had a bone marrow transplant for Lymphoma 20years ago.. still alive.

  • SMB connection to Windows 2008R2 File Server Problem

    Hello, I recently migrated a file server from Windows 2003 to Windows 2008R2.  Since the migration, I can no longer use our Canon multi-function printer to scan documents to a network share on the new file server.  The share has Everyone, System
    and Authenticated Users set to Full control and the NTFS Security is setup for Everyone to modify.  The connection from the Canon uses SMB using a domain account called jdoe.  
    I wondering if the problem is related the the LAN Manger authentication level settings.  On the new file server and domain controllers it's set to Network security: LAN Manager authentication level is set to Send NTLMv2 response only\refuse LM &
    NTLM.  I have setup a network capture and hope somebody can help me out with determinging the problem. 
    Here is the detals of the Error

    It does seem possible that the NTLMv2 authentication level might be affecting things.  So I would give it a try.  It's difficult to troubleshoot from the image, but I beleive there is a flag in the negotiate response that might give you a clue. 
    In either case, I think your question would be better served by our networking group, rather than the group that makes the tool.  While we have some general protocol knowledge, we don't have the depth that the experts for each component would have.
    If changing that setting doesn't work we can move this thread over to the right place.
    Thanks,
    Paul

  • Setting Up the File Server Dynamically

    I have a scenario wherin i have to set up the FTP server name  and directory where i have to put the final file dymically.
    I was able to set the directory path dynamically using Adapter Specific Message properties.
    Can somebody suggest me if i can set the server name also by module processor (have not written one till now)or some other way. The steps to follow etc
    Waiting for your useful answers.

    Hi Siva,
    Setting up a Server name Dynamically -I don't think so it is possible with this point of time.
    So try to do in Java Proxy if required.
    Receiver File Adapter - Dynamic FTP Server Address
    Hope this helps,
    Regards,
    Moorthy

  • Setting up a file server

    You can try a login script...Or GPO as mentioned above.

    If you are running  EsXi host on a domain with static ip and accessing and creating the new server via vsphere. How do you make it so that all domain users can see the share drive when they click "computer"?
    This topic first appeared in the Spiceworks Community

  • Setting up permissions on the file server

    I am attempting to set up a file server with the OS X Server that came with my mac mini.
    I need to be able to set up permissions for 4 different users to be able to read and write, however with no permission to delete.
    I went to the MacMini section (on the left hand corner of the server app), then storage, and from there set up custom permissions
    I added the four users as a group.
    When I added the group to have access to the needed file, I clicked on the drop downs.
    I allowed all permissions for inheritance and reading. I selected all permissions for writting except for "delete" and "Delete subfolders and files"
    This give me a "-" sign next to write versus the check symbol (like it was shown for Read and Inheritance)
    After I set this up... I went to one of the users to test it out, it would not allow me to drop a file on the server or delete anything.
    How do I get this to work the way I want it!?!

    You can not do this with a single ACE.  Or at least I've never been able to.  This shoud resolve.
    Please make sure you test this however.  Remember that trying to overwrite is a delete and then a write.  So if you deny delete, then you can not replace a file or folder with one of the same name.  Also, renaming a file is also a delete.  You will not be able to rename.  Make sure you test this before putting into production to ensure you are getting the behavior you want.
    You have a share point named Archive.  You have a group called Archive_Users.  The Archive_Users are allowed to read and write but NOT delete data in the Archive.  Do do this, follow these steps:
    1:  Create a group called Archive_Users and place your users into the group.
    2:  Define your share point in File Sharing.
    3:  Edit to share point to add the group.  Press the + button and start typing the group name.  When it appears, set the permission to Read Write.  You permission window should have 4 entries at this point.  The everyone, the group (likely staff), and the owner (likely the server admin).  Then the one you added.  The bottom three are POSIX, the final one is an ACE.
    4:  Now, you need to get your hands dirty and create a custom ACE.  Server.app does not allow you to use the Deny rules so break out Terminal.
    5:  I will assume the Archive folder is in this path /Shares/Archive.  First get a list of the folder's ACL using:
    ls -le /Shares/Archive
    It should like like the following:
    drwxr-xr-x+ 2 carbon  wheel   68 Feb 18 22:27 Archive
    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
    1: group:archive_users allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit
    6:  Now you must add your deny rule.  Use the following command:
    chmod +a# 2 "group:archive_users deny delete,file_inherit,directory_inherit" /Shares/Archive
    The syntax here is to add (+a) an ACE at index 2 (# 2), an ACE for the group archive_users that states the group can no delete any file or folder and this is inherited all the way down.
    7:  If you have content in the folder already, be sure to propagate the permissions.
    8:  Test, test, test.
    Remember, the deny rules can have some odd effects.  As mentioned, I can think of the renaming and the overwrite as possible deterrents.
    A possible alternative is to not give everyone read write access to the Archive. It might be more sane to define two groups.  The first groups, Archive_admins, is a subset of users who are entrusted with moving data to archived status.  The second group, Archive_users, is the rest of the team and they have read only access, allowing them to pull data but not edit the archive.  This allows you to use two simple ACEs in Server.app:  Archive_admin = read/write and Archive_users = read.
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • How set FTP file server set in my Data carriar   in DMS

    hi
    please say me how i set my FTP file server in in my Data carriar   Of  DMS
    please say me
    Nainesh

    Hi Andreas,
    It depends on your needs. If you want to provide redundancy to your FTP services, it is recommended to group two VMs in an Availability Set to ensures that during either a planned or unplanned maintenance event, at least one VM will be
    available and meet the 99.95% Azure SLA.
    http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-manage-availability/#configure-each-application-tier-into-separate-availability-sets
    If you want to set up two files servers in Azure VMs to an availability set, you can follow the steps below:
    1. Create a virtual network:
    http://azure.microsoft.com/en-us/documentation/articles/create-virtual-network/
    2. Create a VM in a new cloud service and choose teh virtual network you have created:
    http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-tutorial/
    3. After the VM is running, you can create an availability set on the VM in the Configure page of the VM in the managemeng portal.
    4. Create a new VM into the same cloud service and add it to the availability set.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Which Linux file-server software is best for sharing with Mountain Lion?

    Hi,
    I'm hoping someone here will have set up a file-server on a Linux box for their LAN, and will be able to advise me on which software they used.  I can't find a working tutorial for Netatalk and NFSv4 is buggy and slow.  I'd rather avoid Samba given it's the only one not native to either OS.
    Primary concern is ease of setup, followed by reliability, followed by speed.
    I've posted for help on Linux forums but I suspect very few of the perusers there are Mac users…
    Replies preferred from people who've actually implemented such a thing
    Thanks.

    FreeBSD based "FreeNAS" hands down @ http://www.freenas.org/
    Have fun!

  • Setting up permissions on a central file server...

    I am setting up a central file server in a small network enviornment where the users will share a drive and jobs on the drive. Problem I am having is if I set up seperate users and one group that they all belong to, when someone creates a job in there home directory and then copies it to the server, the rest of the users access it as read only. I need them to be able to read and write to each others folders. Any solution other than creating one user that they all share (since that kind of defeates the perpose).
    Thanks in advance,
    Larry

    The solution to your problem depends on whether you want to use ACLs or not.
    If you are managing a server, you should crack open the manuals- the answer to your question lies within those pages. To point you in the right direction.....
    If ACLs are NOT enabled for the volume. When you click the Share Point in WorkGroup Manager, then click the Protocols tab, you will see a check box for "Inherit Permissions from Parent". This is what you want.
    If this option is greyed, then you DO have ACLs enabled for the volume.
    The explanations for this are not short and managing a server requires reading, research and frustration.
    ACLs work more reliably than the Posix 'inherit' permissions option does.
    That said....
    A user of this forum put together an excellent guide to ACLs. Here's the link:
    http://discussions.apple.com/thread.jspa?messageID=648307&#648307
    Jeff

  • OS X Server 3.01 Install and File Sharing Problem(s)...

    Greetings...Apologies in advance for the lenght of this post...but I wanted to provide as much info as possible to the community to see if someone can see what I may be doing wrong.
    My goal:  Replace an existing iMac running Mavericks Server v3.01 that I use for Open Directory & file sharing with a new Mac Mini Server (late 2012) running Mavericks Server v3.01.  Once new server is working and users defined...I will copy the users data from the iMac to the mac Mini server...then re-purpose the iMac as a simple client (bound to the new Mac Mini server).
    Before we get to what I have been trying...I guess I should ask a few basic questions:
    Can you have 2 Mavericks servers on the same Local network? 
    Can you have 2 servers as OD Masters on the same local network? 
    Are there any "Best Practices" I can follow to set up the new server on a local network that already has a server on it? 
    Here is what I have tried:
    First off...I assign a static IP address to the Mac Mini on the router and disable the WiFi on the mac mini.  I am using a direct ethernet cable connection from the mac mini to the router.
    Next, I intall Mavericks client and configure that.  I download Sever from the App store and install it.  After it is installed...I run the "ChangeIp -CheckHostName" command in a terminal window and it reports that the "Names are the same" or something to that effect.
    Next up...I turn on Open Directory and set up a OD Master...using essentially all the defaults.  I then turn on file sharing and set up a share for the "Users" folder and set that share to use AFP & SMB and to also use it for Home folders.
    I then set up a test user as a "Local Network user" and specify that the users home folder is on the "Users" sharepoint.
    Once that is done.  I logoff the admin account on the server.  I then go to my macbook pro and bind it to the server (Users/Login options).  I see the server identified as "Mac-Mini.home", select that and it shows a green dot next to the server...which I interpret as it was bound successfully.
    I then log in to the newly created network user from newly bound macbook pro.  No errors are reported and I seem to be functioning fine.  I can use Safari.
    As a functional test (lame ... probably)  I try to log in from a bound client, save a text text file to the documents folder. Log out as the user on the bound client...Then I log in as that user on the server to see if I can edit/update that same file from thedocuments folder. 
    However, when I launch the TextEdit app on the bound client, it appears briefly on the Dock...then crashes with a system error.   I tried to read the error...but it looks greek to me.  I did see something to the effect "operation not permitted...".
    I logoff the bound macbook pro.  go to the server and log in as that newly created local network user.  I get logged in.  I am able to launch Text edit when logged in as the user.  I can add text...save the test file to the document folder.  Everything looks good.  I just cannot seem to log in as the user from both the bound client and the server and have it work normally.
    So...I am obviously not doing something either in the correct order, or not configuring a service correctly...something I am doing wrong. 
    Any suggestions are appreciated.

    A NAS should work. A proper file server will cache active files in memory. So it's not obvious use of SSD storage will speed your service. In any case figure out how to back it up and most important how you will recover after a disaster requiring full recovery.

  • What documentation do I need to set up a second file server?

    I have a 10.4 server that used to be my OD master...  but I'm setting up a new Mac Pro to be the master (running 10.6) but would like the old 10.4 server to handle some of the network software.  I don't mind doing a bit of reading to set this up, but I couldn't find any documentation to help me.  The File Server Administration PDF doesn't talk about a second server for AFP or how to get the second server to look up user information on a different server running as the OD Master...
    Thanks in advance for any help or direction!  (either would be great!)
    Kevin

    Hi
    Launch Directory Access (/Applications/Utilities) on your 10.4 Server, click on the LDAPv3 Plug-in and create a New Entry. Add the fully qualified domain name of your 10.6 OD Master. There's no need to provide authentication unless you're disallowing anonymous binding on your 10.6 OD Master?
    Assuming everything is as it should be regarding internal DNS Services and that the 10.4 Server is referencing the correct DNS Server, the 10.4 Server should now be reading from the OD Master's LDAP Database - essentially your Users and Groups. Launch WorkGroup Manager on the 10.4 Server and you should see those Users and Groups.
    All of the above absolutely depends on properly working and configured DNS Services. You may want to add an A Record for the 10.4 Server in whatever you've designated as your DNS Server for your private network. Presumably this will be the 10.6 Server? For SSO (Kerberos) Authentication to work properly - assuming this is what you want? All Servers and Clients must be referencing the same NTP Server.
    Assuming all has gone well with the 'join', launch Server Admin and click on the Open Directory Service. This should report its role as "Connected to a Directory Service". Now start the AFP Service. Use WorkGroup Manager to define shares and access. I would enable Access Control Lists for volumes you wish to designate shares on. Once enabled restart the 10.4 Server. Use the ACL Permissions Model rather than the POSIX one. Make sure you propagate permissions afterwards. Don't share Volumes. Share folders instead.
    You can have as many Servers as you like presenting AFP Shares to as many clients as you like. There is no restriction. Basically it's just another server offering shares. The documentation you've read does not mention multiple servers probably because - no offence intended - it's kind of obvious and fairly straightforward.
    HTH?
    Tony

  • Export DV Steam (.dv file) for Video Server Problem

    From Final Cut, I need to export a DV Stream file for our Video Server. It accepts .dv files. Problem is: the exported clip "inherits" just over 5 minutes of black or the last frame of video on the tail. This creates obvious timing problems for our on-air playback.
    I've seen other posts on this forum with identical problems, but none of them were solved. It was however suggest to NOT use DV Stream file. Unfortunately this is not an option for my station, as our server requires those files.
    So in summary, exporting a 30 sec spot to a DV Stream becomes a 5 minute 37 sec spot. No good.
    Thanks in advance,
    TOR
    Mac Pro   Mac OS X (10.4.8)   8 GB RAM

    Sounds weird enough! What servers are you using, and will they not accept a MPEG-2 transport stream as well? Most I've seen do and that can save a tremendous amount of space.
    But back to your problem of the added 5 minutes of black; as I understand your description, you're saying that the extra 5 minutes is added at the tail end ... correct? If so, won't the programming aspect of your set up switch to another stream at the programmed time regardless if the first program is still playing? ie; you enter the start and end time of each event for playback. Say event 105 starts at 8:00:00 PM and ends at 8:00:30 PM. Event 106 starts at 8:00:30 and ends at 8:01:00. Each spot is programmed to air for 30 seconds so at 30 seconds into event 105, event 106 SHOULD start playback and be switched to air - even though event 105 still has 5 minutes of black to go.
    -DH

  • Setting up g4 as internal file server

    I work for a small company who happens to have a nearly full file server. I have been assigned the task to set up a Dual 867 PowerPC G4 as our main internal file server. The server would serve only internally, providing a place to store our files where anyone in the building can access the file server.
    One slight problem: I haven't really got a clue how to do this.
    We want the server to contain two (2) 750 GB drives... one mirroring the other automatically.
    I contacted Seagate to find out what the biggest hard drive they have for this particular machine and they said 120 GB. They said the bios on a G4 will not allow a 750GB drive. They told me to go to a company called www.attotech.com and get a controller card/host adapter that will provide 48-bit addressing... they said this would bypass the system bios and allow the machine to house larger drives (possibly up to 750 GB).
    Anyway... if anyone could give me some direction on this project, it would help out immensely. I just need some instruction on how to set this machine up... what i need to do... what hardware i need, etc. From the ground up, basically.
    Please help!!!
    Thanks a million!
    Machine specs:
    -OSx 10.4.8
    -Dual 1.2 GHz PowerPC G4
    -1 MB L3 cache per processor
    -768 MB DDR SDRAM

    Maooley,
    I am surprised you did not get a response from this post.
    I am not sure of the 120GB limit on that G4. I know an earlier version was limited to 80GB, so your info might be accurate. In any event going with a SATA card will definitely improve performance. While you are shopping I would also suggest replacing the internal HD. Drives fail. If this is the original drive then replace it before deploying your new server.
    Once you get all the hardware in place you can mirror the internal drives with Disk Utility (check out the RAID tab).
    You might also consider OS X Server. It's the same core OS but adds a set of services and the tools to managed the server. The 10 client version is $499. The 10 client limits concurrent AFP connections, but all other services are unlimited (SMB, FTP, web, etc)
    Often new admins set up a server and give one login to everyone, sometimes with no password. I strongly recommend each user have their own login name and password. This way you can keep track of who is connected, who is creating file, and you can give dedicated server space to each user.
    Have you considered backup? I sure hope so. Now that you have the company goods in one place you have the opportunity loose it all in one quick trash session. You also have the opportunity to pack it up and take it offsite site so you can recover from operator error, sabotage, flood, fire etc.

  • Problem in Archiving File From FTP Server to XI File Server Using FCC

    Hi,
    The scenario is file to IDOc. XI has to read the input file from client FTP server and archive it to XI local file server. Archiving on XI server is working fine without FCC (for xml files). But with FCC, the sender FTP adapter is archiving empty files (0 kb files).
    I've checked SXMB_MONI, even there I can see the file data and the IDoc is getting posted with proper data. But, the archived file is empty. Not sure about the problem.
    Please suggest. Thanks in advance.
    Regards,
    Joe.

    Hi,
    File adapter has the functionality which support the empty file handling.
    Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    ○ Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected Processing Mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    ○ Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected Processing Mode.
    ○ Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.
    refer the belwo link:
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    reward points if helpful*
    thanks
    SAPXI

  • Problems setting up an NFS server

    Hi everybody,
    I just completed my first arch install. :-)
    I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
    I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
    I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
    Now, I have these problems:
    - when I start the daemons, I get:
    [root@myhost ~]# /etc/rc.d/rpcbind start
    :: Starting rpcbind [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-common start
    :: Starting rpc.statd daemon [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-server start
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
    Assuming default behaviour ('no_subtree_check').
    NOTE: this default has changed since nfs-utils version 1.0.x
    [DONE]
    :: Starting rpc.nfsd daemon [FAIL]
    - If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
    my /etc/exports looks like this:
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    /home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
    /etc/conf.d/nfs-common.conf:
    # Parameters to be passed to nfs-common (nfs clients & server) init script.
    # If you do not set values for the NEED_ options, they will be attempted
    # autodetected; this should be sufficient for most people. Valid alternatives
    # for the NEED_ options are "yes" and "no".
    # Do you want to start the statd daemon? It is not needed for NFSv4.
    NEED_STATD=
    # Options to pass to rpc.statd.
    # See rpc.statd(8) for more details.
    # N.B. statd normally runs on both client and server, and run-time
    # options should be specified accordingly. Specifically, the Arch
    # NFS init scripts require the --no-notify flag on the server,
    # but not on the client e.g.
    # STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
    # STATD_OPTS="-p 32765 -o 32766" -> client
    STATD_OPTS="--no-notify"
    # Options to pass to sm-notify
    # e.g. SMNOTIFY_OPTS="-p 32764"
    SMNOTIFY_OPTS=""
    # Do you want to start the idmapd daemon? It is only needed for NFSv4.
    NEED_IDMAPD=
    # Options to pass to rpc.idmapd.
    # See rpc.idmapd(8) for more details.
    IDMAPD_OPTS=
    # Do you want to start the gssd daemon? It is required for Kerberos mounts.
    NEED_GSSD=
    # Options to pass to rpc.gssd.
    # See rpc.gssd(8) for more details.
    GSSD_OPTS=
    # Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
    PIPEFS_MOUNTPOINT=
    # Options used to mount rpc_pipefs filesystem; the default is "defaults".
    PIPEFS_MOUNTOPTS=
    /etc/hosts.allow:
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    Any help would be very appreciated!

    Thanks, I finally got it working.
    I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
    I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
    Anyway, thanks again for your inputs.

Maybe you are looking for

  • F4 functionality for search help

    Hi all, Am  having two select options for cost center groups and for cost centers (s_ksgru and s_kostl ). If i give value in cost center group and after that if i press F4 for cost center it has to display  the cost centers that comes under the given

  • JDeveloper 3.2 Problems - Access violation errors

    Hi, I suddenly got the following error message on a dialog box when I was editing code in the visual designer: QUOTE Access violation at address 00402FC8 'jdeveloper.exe'. Read of address FFFFFFF UNQUOTE When I tried to save my work, I was not able t

  • Sales By Qty Query Change

    Hello All -- Also for this Query would like to have option of selecting month at start of Query.  Then Query only shows the month selected when run. Thanks!! Mike SELECT T0.ITEMCODE, (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.

  • I have a desktop Mac OS 10.2.8, which is the latest Firefox to download?

    I have a desktop Mac OS 10.2.8, which is the latest Firefox to download? It's Jaguar, the latest I can load on my Mac. I only use it to get/send Yahoo mail. What is the latest version I can use, and where can I get it. Right now am running Mozilla Fi

  • I plugged someone elses phone into my itunes - now

    i plugged someone elses phone into my itunes - now they have my info - after i tried to reset their phone it is still asking them for my apple id and password to update their stuff....- how do i reset it back to their info to login.....