Find the answer to your Linux question:
Results 1 to 8 of 8
Here's the situation for a client. They have a NAS and some Red Hat boxes. What they want is for a users home directory to be stored on the NAS ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Location
    Tokyo, Japan
    Posts
    4

    Creating network login directories from a NAS


    Here's the situation for a client. They have a NAS and some Red Hat boxes. What they want is for a users home directory to be stored on the NAS and mounted on any given machine when they log on it.

    What i have tried is setting up an NFS server to act as a middle man. I mount the NAS shares on the NFS server and then try exporting them to the Red Hat boxes. Another thing i tried was pam_mount. Each to no avail.

    Am i overlooking a simple solution to this? From what i understand NFS can only export resources that are physically on the machine. Of course these are not on the NFS server, but on the NAS.

    Any help here would be greatly appreciated.
    Last edited by fskylemcauliffe; 03-12-2009 at 03:46 AM. Reason: more discriptive title

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,754
    Create shares on the NAS. That is the purpose of a NAS. I have seen some *really* cheap NAS's that don't support NFS and only allow CIFS shares (even though the NAS OS is *Linux*...*cough* Buffalo *cough*...

    If that is the case (the NAS only support CIFS shares), use the Samba client package to mount them on the RH machines.

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Location
    Tokyo, Japan
    Posts
    4
    the NAS does support NFS. So i make an NFS share. how do i make sure that it is mounted as /home/user when they log on from any box?
    Last edited by fskylemcauliffe; 03-12-2009 at 04:54 AM. Reason: misread previous reply

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,754
    Any number of ways...two that come to mind...

    Write a logon script that mounts the NFS share.

    Or use the NFS automounter.

    Google will return many hits - like this Novell AppNote that talks about a login script for a SLED desktop.

  5. #5
    Just Joined!
    Join Date
    Mar 2009
    Location
    Tokyo, Japan
    Posts
    4
    I was under the impression that exporting NFS shares could only be done for shares that were local on the NFS server.

    If i mount a share on the NFS server and then export it to the clients home directory i run into errors.

  6. #6
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,754
    Quote Originally Posted by fskylemcauliffe View Post
    I was under the impression that exporting NFS shares could only be done for shares that were local on the NFS server.

    If i mount a share on the NFS server and then export it to the clients home directory i run into errors.
    The *server* exporting NFS shares is the NAS. The RH machines are the clients mounting these shares.

  7. #7
    Just Joined!
    Join Date
    Mar 2009
    Location
    Tokyo, Japan
    Posts
    4
    Quote Originally Posted by HROAdmin26 View Post
    The *server* exporting NFS shares is the NAS. The RH machines are the clients mounting these shares.
    The NAS isn't a server though, it's an appliance. To export the shares created on the NAS i have set up an NFS server, i mount the NAS shares on the NFS server, then export them to the client.

  8. #8
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,754
    Quote Originally Posted by fskylemcauliffe View Post
    The NAS isn't a server though, it's an appliance. To export the shares created on the NAS i have set up an NFS server, i mount the NAS shares on the NFS server, then export them to the client.
    You are confused. If I modify the /etc/exports file on my SuSE desktop machine and start the nfsserver service, it is now an NFS server with shares available for other machines to connect to. The application defines the server-client role - nothing else does.

    You can find more info on the client-server model.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •