Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to connect a linux computer to an existing Windows network. Do I need to run the samba server or should the samba client be sufficient?

share|improve this question

5 Answers 5

neither are required you can do this with a mount command:

# mount -t cifs //SERVERADDRESS/SHARE -o username=USER,password=PASS /mnt/MNTDIR
share|improve this answer
    
How do I determine the server address for the windows network? (In case it's not obvious, I'm not a sysadmin and am really out of my league here...) –  MCS May 21 '09 at 16:58
    
Someone's going to have to tell you either the name of the machine or its IP address, as well as the names of any shares set up on that computer that you'd like to connect to. –  nedm May 21 '09 at 17:01

You want the samba client (smbmount) or CIFS (a client-only driver) which is also maintained by the samba team. Most versions of Linux will have both, although samba may not be installed by both.

share|improve this answer

You want the client if you are trying to access existing drives on the network from this computer.

You want the server if you are trying to share drives on this computer with the network.

share|improve this answer

On a Debian/Ubuntu based system you need the package you NEED is smbfs. This is the package that includes mount.cifs.

share|improve this answer

It depends on what you mean by "connect", and what type of Windows network you are talking about.

If the Windows network is domain based (eg Active Directory), you might want to run the winbind daemon (which usually depends on the other Samba daemons) and properly connect the Linux computer to the domain so it can use the networks shared credentials etc.

If you just want to very occasionally mount the odd Windows file share, then you only need the client components (eg smbfs).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.