LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba / Routing advice please... (https://www.linuxquestions.org/questions/linux-newbie-8/samba-routing-advice-please-106488/)

chiefobeef 10-20-2003 07:02 PM

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.

Azmeen 10-20-2003 09:18 PM

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.

GreenerLinux 10-20-2003 11:52 PM

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?

chiefobeef 10-21-2003 08:58 AM

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.


All times are GMT -5. The time now is 03:18 AM.