About Linux FAQ

Browse More FAQs:

How to use Linux as file server

Posted by Vivek Gite [Last updated: December 27, 2007]

Q. How do I use Linux as file server? I have 50 Windows XP workstations and 30 Linux/UNIX workstations? I am using Fedora Core Linux 6.

A. For Windows XP workstations use samba server and for Linux/UNIX workstation use NFS server.

How do I use samba as file server?

Samba is a free software re-implementation of SMB/CIFS networking. Windows XP/2000 use samba as file server. It runs on both Linux and UNIX oses.

First install samba on Linux using yum command:
# yum install samba samba-client samba-common
# chkconfig smb --level 345 on
# chkconfig smb on
# /etc/init.d/smb start

Please refer samba configuration how to collection for configuration options.

How do I use NFS as file server?

Network File System (NFS), a protocol originally developed by Sun Microsystems in 1984. NFS server use to share files and directories from Linux system to rest of UNIX/Linux and Windows (using MS- UNIX services or third party tools) workstation.
First install NFS on Linux using yum command:
# yum install nfslock portmap nfs

NFS configuration steps

1. the server implements NFS daemon processes (running by default as nfsd) in order to make its data generically available to clients
2. the server configuration determines what to make available, exporting the names and parameters of directories (typically using the /etc/exports configuration file and the exportfs command)
3. the server security-administration ensures that it can recognize and approve validated clients
4. the server network configuration ensures that appropriate clients can negotiate with it through any firewall system
. the client machine requests access to exported data, typically by issuing a mount command
6. if all goes well, users on the client machine can then view and interact with mounted filesystems on the server within the parameters permitted

Please refer NFS configuration howto for more information.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. inam Says:

    how can i install an rpm through ssh from server to client

  2. nixcraft Says:

    inam,

    Sorry but I don’t get your question. Can you explain it in more details.

  3. Michael Reincke Says:

    New to Linux. Have Fedora7 Graphical. Rest of home network are XP PCs. I want to use Linux as a data depository/server for my PCs. I have Samba. I see the Linux PC but when I try to get into a “shared folder” on the Linux machine, It tells me that the folder is not accessible or I might not have permission to access it. Network access denied. I have Linux set up as SHARE vs USER so anyone should be able to log on with no passwords. Still not working! Help?

  4. raj Says:

    Hi i m working as a system Admin in respued Computer Center. I have Finished MCA also and now i would like do IBM Mainframe server Maintenance is it possible or not.
    other wise how we can get the job also.

    Pls tell me as soon as possible.

    Rajbabu
    9942919720

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.