LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-20-2003, 08:02 PM   #1
chiefobeef
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Samba / Routing advice please...


I am a linux newbie. I just installed Mandrake 9.2 RC1 on an old PIII system I had sitting around. I am a web designer / developer, so I wanted to move my dev setup off of my XP (main) platform, and onto my Mandrake box.

Here's how I have it setup

(cable modem) -> XP Pro Athlon Asus A78NX deluxe w / 2 built in ethernet cards -> PIII Mandrake Box

I know that it's reccomended to use the Linux machine for internet sharing, but I don't have a router and I figured I could just use the 2 built in ethernet cards. Anyhow, I have the 2 connections bridged through XP Pro, and I have Apache set up and working, along with Samba.

I can connect from my windows box to the linux through Samba, but here's what I wanted to do, and please let me know if this is a huge security risk.

I wanted to share the /usr/var/html/ (apache doc root) folder on Samba, so I could work on a website on my XP box and work on the files as if they were local (well, through Samba), and not have to FTP them to my mandrake box.

I set up the share fine, and I can see it fine, but I can seem to delete any of the files. I assume this is because they are all owned by root. Is there any easy way of doing this?

*edit* I should also mention that I want to have my mandrake box's web server accessable to the outside world for QA purposes.

Thanks so much for any help, I am really enjoying Linux thus far.

Last edited by chiefobeef; 10-20-2003 at 08:04 PM.
 
Old 10-20-2003, 10:18 PM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
The security risk will only occur if there is direct access from the internet to your Mandrake box... I'd recommend blocking of all unnecessary ports to the outside world, other than the one you want them to access (which I assume is the HTTP port).

Posting your smb.conf file will be useful... but offhand, here's a tip that I can offer... Assuming your webroot is labelled as web in the smb.conf file:

Code:
[web]
    comment = For testing only, please
    path = /usr/var/html
    read only = no
    browsable = yes
Of course, this assume you have a proper user account created to enable access to this share and that the file permissions of the webroot itself allows the user to manipulate it.
 
Old 10-21-2003, 12:52 AM   #3
GreenerLinux
Member
 
Registered: Aug 2003
Location: Olympia, WA
Distribution: Xandros, Libranet, Mandrake
Posts: 86

Rep: Reputation: 15
Talking similar setup...

I'm vey interested in how easy it was to setup your two ethernet cards. My situation is very similar but I've been having trouble with getting my Linux box configured for exactly what you're doing. I have three computers in my LAN. Two are Windows machines and I'm using Libranet 2.8 on this one. I have eth0 running into a 4-port hub (the two Windows machines are also connected to this hub) and eth1 is connected directly to my cable modem. I'm attempting to configure the Linux box as a router and DHCP/Samba server yet seem unable to configure eth0 correctly.

Any suggestions?
 
Old 10-21-2003, 09:58 AM   #4
chiefobeef
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Azmeen
Posting your smb.conf file will be useful... but offhand, here's a tip that I can offer... Assuming your webroot is labelled as web in the smb.conf file:

Code:
[web]
    comment = For testing only, please
    path = /usr/var/html
    read only = no
    browsable = yes
This is exactly what I have in my smb.conf. I think I need to make a user or something because all the files are owned by root. Thanks, I'll check out the samba documentation some more.

And for the other guy, my network is configured modem -> windows XP -> linux I think you have it the other way, which is how your supposed to do it. Though, I'm not real sure how to do it since I am a linux newun. Sorry.
 
  


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
Advice for laptop on samba? neocookie Linux - Networking 3 06-08-2005 07:55 AM
Advice on personal FW / Router. Proxies or Routing way to go Vi-wi Debian 4 09-29-2004 11:40 PM
Newbie Project: Box dedicated to MythTV + Routing + Firewall + Hub - Need Advice i-Silver Linux - Newbie 3 06-27-2004 12:46 PM
samba server and routing sambanewbie Linux - Networking 1 11-21-2002 04:54 PM
A little Samba advice? bax Linux - Networking 17 11-19-2002 03:52 AM


All times are GMT -5. The time now is 02:42 AM.

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