LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2006, 06:53 AM   #1
websoftexpert
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Question sharing folder in linux


hi

I am new to linux. We have recently installed linux server. we want to share a folder (/var/www/project). how to do so? Remember I am 1 day old in linux. I need step by step instruction for this.

I hope someone will help me out.

thanks

akash sinha
 
Old 07-20-2006, 07:43 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Read this http://nfs.sourceforge.net/nfs-howto/
 
Old 07-20-2006, 07:53 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You should provide more information on what you want to do. For example, do you want to share a folder with other linux computers, or a mix of linux and windows computers. If so, then you probably want to install and use Samba. The folder that you want to share indicates that it is for a web page. Do you want to share it on the LAN, or will users on the internet post changes to your web site project? If it is for a web site, perhaps you want to run an FTP server so that users can use the publish feature of their web design software.

Also, please put the distribution you are using in your profile. Different distro's have different package systems, and different ways of starting services. Knowing your distribution can help the other users here provide better answers, that may be the easier for you to implement.
 
Old 07-20-2006, 08:06 AM   #4
websoftexpert
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
hi

We have using linux as server and use window as client. So we are runing both linux and window on our LAN only. we wish to build php application to be run on linux server.

we are using latest version of Red Hat Enterprise Linux ES. The folder I want to share is in web root so that we can update from our window pc. we have Samba in our server but donot know how to use.

thanks for your helping hand.

akash sinha



Quote:
Originally Posted by jschiwal
You should provide more information on what you want to do. For example, do you want to share a folder with other linux computers, or a mix of linux and windows computers. If so, then you probably want to install and use Samba. The folder that you want to share indicates that it is for a web page. Do you want to share it on the LAN, or will users on the internet post changes to your web site project? If it is for a web site, perhaps you want to run an FTP server so that users can use the publish feature of their web design software.

Also, please put the distribution you are using in your profile. Different distro's have different package systems, and different ways of starting services. Knowing your distribution can help the other users here provide better answers, that may be the easier for you to implement.
 
Old 07-20-2006, 09:54 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
There is a package called "samba-docs" that installs the book "Samba-3 By Example: Practical Exercises to Succesful Deployment". It will be either in PDF or Postscript form. I don't have Red Hat Enterprise, so I don't know what Samba Server configuration program Red Hat has. You could also use Samba Swat to set up your server.
See the "man swat" manpage for instructions on how to set it up. The RH documentation may also have instructions on both setting up swat and configuring your Samba network.
This is what my xinet.d configuration looks like:
Code:
 cat /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/swat
        only_from       =  127.0.0.1
        log_on_failure  += USERID
}
Then you will need to reload the xinetd configuration:
Code:
sudo killall -HUP  xinetd
You can access the web based Swat configuration by pointing a web browser at http://localhost:901. If you want to do this from the windows host, then you will need to change the only_from IP address to your windows IP address. You will also need to open port 901 in your Linux firewall.

You indicated that you only have the RH server and one windows client. If this server isn't connected to the internet, then you could probably use SHARE level security, and your configuration could be similar to Example 2.2 on page 29 of the Samba3-ByExample book that I mentioned. Since RH SEL uses SELinux for security, you may need to configure SELinux as well. I'm afraid you will need to read the Red Hat documentation on how to do this. I don't use SELinux, so I'm not familiar with the procedure.

The Samba Docs also includes the book "Using Samba". It is based on Samba 2.2, but still should be instructive in understanding Samba and Windows networking.

Last edited by jschiwal; 07-20-2006 at 10:09 AM.
 
Old 07-21-2006, 01:11 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
I would use Webdav, its made for this.
 
Old 07-21-2006, 03:29 AM   #7
websoftexpert
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for valuable input. we get some solution. here is another problem which u may be able to help us. the problem is related to session in php which i post the following url today.

http://www.linuxquestions.org/questi...d.php?t=466134

thanks

akash sinha





Quote:
Originally Posted by jschiwal
There is a package called "samba-docs" that installs the book "Samba-3 By Example: Practical Exercises to Succesful Deployment". It will be either in PDF or Postscript form. I don't have Red Hat Enterprise, so I don't know what Samba Server configuration program Red Hat has. You could also use Samba Swat to set up your server.
See the "man swat" manpage for instructions on how to set it up. The RH documentation may also have instructions on both setting up swat and configuring your Samba network.
This is what my xinet.d configuration looks like:
Code:
 cat /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/swat
        only_from       =  127.0.0.1
        log_on_failure  += USERID
}
Then you will need to reload the xinetd configuration:
Code:
sudo killall -HUP  xinetd
You can access the web based Swat configuration by pointing a web browser at http://localhost:901. If you want to do this from the windows host, then you will need to change the only_from IP address to your windows IP address. You will also need to open port 901 in your Linux firewall.

You indicated that you only have the RH server and one windows client. If this server isn't connected to the internet, then you could probably use SHARE level security, and your configuration could be similar to Example 2.2 on page 29 of the Samba3-ByExample book that I mentioned. Since RH SEL uses SELinux for security, you may need to configure SELinux as well. I'm afraid you will need to read the Red Hat documentation on how to do this. I don't use SELinux, so I'm not familiar with the procedure.

The Samba Docs also includes the book "Using Samba". It is based on Samba 2.2, but still should be instructive in understanding Samba and Windows networking.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder sharing - xbox cornish Linux - Networking 0 06-21-2006 02:04 PM
Sharing a Limux folder Acidjack Linux - Networking 1 04-11-2006 09:03 AM
sharing folder kumary Linux - Networking 3 12-05-2005 06:42 AM
Sharing a home folder between 2 Linux distros Jongi Fedora 1 10-26-2005 04:38 PM
Sharing folder at linux RockmanExe Linux - Networking 2 03-09-2004 05:54 PM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration