LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2004, 04:27 PM   #1
jwstric2
Member
 
Registered: Jan 2004
Posts: 105

Rep: Reputation: 15
proper way for windows clients to use linux file server


Does anyone have any experience with using seeting up windows clients to use a linux file server? I can properly set it up as to share single directories viewable to all clients. I however want to create home directories for windows clients on the linux machine and map them a network drive to their machine. The main gyst of this problem of course are proper authenication methods between client and server. Does anyone have any experience in this?

Thanks in advance,
Jonathan Strickland
 
Old 05-10-2004, 06:38 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'm not sure exactly what you want.

Do you want the Windows clients to login to the Samba server (have it act as a domain controller) or do you just want to have them type in a password when they try to access the shared directory?

Or do you want no passwords at all, the Windows user simply sees their shared directory, and nobody else's.

All of the above are possible methods to do what you want. Which one are you looking for?
 
Old 05-10-2004, 07:34 PM   #3
jwstric2
Member
 
Registered: Jan 2004
Posts: 105

Original Poster
Rep: Reputation: 15
"Or do you want no passwords at all, the Windows user simply sees their shared directory, and nobody else's."

This would be the most reasonable option I think. Seems like the authenication information would have to be kept synced between Windows and Linux. This is where I am definately a newbie.
 
Old 05-10-2004, 09:44 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
This should give you what you want:

Code:
# Start of smb.conf
# Global parameters
[global]
        workgroup = WorkGroup_Name
        server string = File Server
        encrypt passwords = yes

       # This should be the IP range of your clients
        hosts allow = 192.168.1.
        security = share
       
        # This is supposed to speed things up
        socket options = TCP_NODELAY

        # Keep the logs from choking the system
        max log size = 50

[User Shares]
        path = /User_Files/%u
        valid users = %S
        writeable = yes

# EOF
That isn't particularly secure, but it will get the job done.

There is one important part you have to do. You need to type:

smbpasswd -a username

For every client that is going to be connecting to the server. When smbpasswd prompts for a password, you must put in their Windows password (if they don't have one, leave it blank).

If there is no matching smbpasswd entry for the Windows client accessing the file server, "%u" will be replaced with "nobody", which will lead to a directory that doesn't exist, and the client will get an error.

Also, the directories under the "path = " variable must exist. If you used my example, and a user named "Mike" connected, you would need to have the directory:

/User_Files/mike

On the system (with the proper permissions set so a user can access it).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Print Server for Windows Clients ericpolanco Linux - Networking 1 02-23-2005 05:43 PM
Linux server with Windows clients on a LAN Tiger-Striped Linux - Networking 12 09-15-2003 08:57 PM
File Sharing Linux SBM server -> Windows XP Clients xannix Linux - Networking 2 08-21-2003 04:44 PM
Linux - ASCI - Windows, proper file format issue aaronluke Linux - General 1 11-07-2002 10:47 PM
Linux app-server to server StarOffice to Windows Clients: Need advice biosx Linux - Networking 3 08-14-2002 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:41 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
Open Source Consulting | Domain Registration