Server on a small Windows network

Asked by David Wallin

I'm trying to make the move to Linux from Wyndows, but I need some advice/help.

I've got a machine (Athlon 64) with 2 x RAID-1 SATAII HDD and I've installed 32bit ubuntu on it.

How do I turn this into a file server on the Windows network?
I want each machine's my documents to be on the linux server - i know how to point the 'clients', but how do I make the linux machine appear on the network and be a server. Only looking at a simple server at the moment and not going to use domain security, just a workgroup.- unless someone recommend otherwise.

Any help would be much appreciated.

Thanks

David

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thanos Koukoulis
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#1

Samba (www.samba.org) does exactly what you describe.
It can work as a file server in a MS Windows environment.

There is a lot of information and guides on the site on how to manage
a samba server.

Chance has it that there is an article there describing a complete solution
to replace a Windows Domain using Samba and OpenLDAP on Gutsy
(http://news.samba.org/users/howto_ldap_pdc_gutsy/)

Revision history for this message
David Wallin (david-ntfs) said :
#2

thanks

Revision history for this message
David Wallin (david-ntfs) said :
#3

I'm reading the article - but I have one, daft, question!!

Is Samba installed by default - or do I have to install it? If so, how? Where from?

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#4

It is not installed by default and you do need to install it.
If you follow the steps in the guide that I send you it is in Step 3.

In general open a console and do

sudo apt-get install samba smbclient samba-doc

Revision history for this message
David Wallin (david-ntfs) said :
#5

Thanks.

Done that and I can get the machine to appear in my workgroup - just having trouble getting the Windows machines to gain access to the Linux fileserver. They can see it, but I can't seem to get the login bit, to open/edit/save files thereon stored, to work.

David

Revision history for this message
Thanos Koukoulis (thanosk-gmail) said :
#6

Well you need to tell the Samba Server what directories are shared, which users have what access to each directory.

Also you will probably need to either synchronize the users with your AD users or create new ones.

The best place to look is the Samba How-To
http://us4.samba.org/samba/docs/man/Samba-Guide/

Also there are tones of info on the web.
It all depends on the specifics of your situation

Revision history for this message
David Wallin (david-ntfs) said :
#7

Thanks very much - I'm going to have a read.

I'd managed to 'share' out the directory no problem - I am just stuck for how to 'create' a 'user' who can access with full rights

Revision history for this message
David Wallin (david-ntfs) said :
#8

I've had a go at reading the documentation,

1) It talks about 'Fedora Red Hat Core2' - but I'm umbuntu 7.1
2) It tells me to enter chkconfig smb on - but this just replys 'bash:chkconfig: command not found'

What am I doing wrong???

Please!!!

David

Revision history for this message
Best Thanos Koukoulis (thanosk-gmail) said :
#9

OKs it just tell you to configure Samba to start up as a service automatically at boot.

chkconfig is a utility in Red Hat Linux that controls which services start automatically at boot.
In ubuntu a similar utility is sysv-rc-conf.

So in a console do :
sudo apt-get install sysv-rc-conf

It will install the utility and a few relevant dependencies.
After installation just run
sudo sysv-rc-conf

Find Samba and enable it for runlevels 2,3,4,5.
Next reboot Samba will start up automatically.

Revision history for this message
David Wallin (david-ntfs) said :
#10

Thanks Thanos Koukoulis, that solved my question.

Revision history for this message
Nay Myo Win (nmwin) said :
#11

suppose i change proxy address on router. I need to change proxy setting on ubuntu server.
how can i change without using command line like before I get wizard during installation process