LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-27-2014, 08:51 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
samba question, using for authentication to mixed OS clients...


I'm experimenting with a very simply samba config and using windows and linux clients to authenticate using such.

Firstly, I must add that I know there are probably much more polished and secure ways to do this and I am open to suggestions at this point but this is what I've done/tried so far and my question relating to such.

samba server running on a slackware 14 box, very basic modifications to smb.conf file so far. (left out unchanged entries)
Code:
 workgroup = WORKGROUP
 server string = Slackware Samba Server
 security = user
 hosts allow = 127. 192.168.254.

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes
Next I done:

Code:
useradd 'machinename$'
smbpasswd -ma 'machinename'
smbpasswd -a root
smbpasswd -a regularuser
[note both root and regular user are already Linux users]
As far as client testing goes, I've added Windows XP to the domain and can use it to logon to that machine, similarly, done the same with a RHEL client and same result.

Now to my questions(s)

1)
On the Windows machine, after logging in I find a mapped drive "Z" which points to the corresponding users home dir on the server, how has this come about, is this a windows thing or a samba thing, I don't see anything in the smb.conf file that looks responsible.

2)
The Linux client does not do this, I have to manually browse to the remote home dir share as I would the tmp share, how would I go about having this home share setup/bookmarked automatically on login to make it easily found without browsing?


If this post is in the wrong section, apologies and please move as appropriate.


Thanks in advance...

Last edited by plisken; 04-27-2014 at 08:52 AM.
 
Old 04-30-2014, 06:44 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Did you post the entire smb.conf file?

Quote:
I've added Windows XP to the domain and can use it to logon to that machine, similarly, done the same with a RHEL client and same result.
Please explain what you mean by added XP and RHEL to the domain? The simplest explanation is you previously mapped the home directory. Windows maps drives starting with z and will automatically remap the drive at login.

With linux you can add a line in the /etc/fstab file to mount the share at boot time or you can create a 'shortcut' in the file browser. I assume you are using Nautilus which has a built in samba client.
 
Old 05-01-2014, 01:55 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Only the changes at the smb.conf file were shown, I guess I could post whole file if need be.

When I say I added XP and RHEL to the domain, I meant that I added the machine accounts to the samab server as follows:

Code:
/usr/sbin/useradd 'machinename$'

smbpasswd -ma 'machinename'
For the RH machine, I done something similar to: https://www.dropbox.com/s/rs2ignv8q4lpiu2/CentOS2.png


I'm really only looking for a setup where the samba server can authenticate users to any of the machines that I previously add to the server/domain and would like that when each user logs on, their predefined shares are available.

The /etc/fstab part I get but would like the folder to be easily visable, perhaps on the desktop or so.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good software for centrally managing jobs on mixed OS clients kayasaman Linux - Server 8 03-20-2012 04:43 AM
[SOLVED] OpenLDAP+Samba for authentication of both linux and windows clients Blue_Ice Linux - Server 24 07-02-2010 04:17 AM
Centralized Authentication for Windows Clients using LDAP,SAMBA & LAM metallica1973 Linux - Networking 2 01-09-2009 05:20 PM
Home Network with mixed static ip and dynamic ip clients using linksys wrt54gs router ghostrider.002 Linux - Networking 6 05-14-2007 01:01 PM
samba question, Authentication Mode... Basslord1124 Fedora 5 07-07-2004 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:13 PM.

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