LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I setup a linux file server? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-setup-a-linux-file-server-160969/)

Bronzzy 03-22-2004 11:19 AM

how do I setup a linux file server?
 
How do I setup a linux file server?

muah 03-22-2004 11:33 AM

For clients with windows? Then samba is the way to go - www.samba.org
BTW Its good to have a look at the forums if someone didnt ask the same question a few minutes ago :p
http://www.linuxquestions.org/questi...hreadid=160963

Red Squirrel 03-22-2004 11:43 AM

This is something that may kill you for a while so here you go:


Code:


[shared]
path = /data/shared
comment = Main share
browseable = yes
writable = no
create mode = 777
directory mode = 777
guest ok = yes

[temp]
path = /data/shared/temp
comment = main share
browseable = yes
writable = yes
create mode = 777
directory mode 777
guest ok = yes



Shared is read only, but temp is not. The rest is needed to make sure it allows you to read/write.

Also make sure you set the security level to share and put it the right workgroup, oh and last but not least set a netbios name because it defaults as localhost which conflicts with the real localhost when you try to access from windows.

You'd find these settings in global, but netbios name you have to add so it's like this:

netbios name = servername

With this info you should be up and running.

Oh, and all this is done in the /etc/samba/smb.conf

Or if you're lucky enough and that swat works, you can go (on the server) in the address bar of your browser and type http://localhost:901 (I think that's the port)

Hope this information helps, and there's lot of info on this forum too.

Bronzzy 03-22-2004 03:26 PM

also how do I make it compatible with windows? and how can i get rid of windows based viruses with linux?

Red Squirrel 03-22-2004 04:44 PM

It will already be compabible with windows.

To remove viruses, I know there are ways but I'm not sure how yet, but it's something I've been considering myself.


All times are GMT -5. The time now is 10:24 PM.