LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-11-2016, 02:46 AM   #1
benn371
LQ Newbie
 
Registered: Jun 2016
Posts: 4

Rep: Reputation: Disabled
Question samba with different authentication not working on RHEL 6.2 ?


we have a samba server which we use for file sharing on windows 7 pc but its not working with different authentications on different folders whenever we enter the server through networking "\\ipaddress" it immediately asking for a username and password ?

Here is the smb.conf
[global]

# ----------------------- Network Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
workgroup = MYGROUP
server string = Samba Server Version %v

; netbios name = MYSERVER

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.


# ----------------------- Standalone Server Options ----------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

security = user
passdb backend = tdbsam

#----------------------------- Name Resolution -------------------------------
# Windows Internet Name Serving Support Section:
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
#
# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
#
# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
#
# - WINS Proxy: Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
#
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.

; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes

; dns proxy = yes
#============================ Share Definitions==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[samba]
comment = Medryte
path = /samba
public = no
writable = yes
printable = no
browseable = yes
write list = adm


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no


[Webdevelopemt]
comment = folder for credential confidentiality
path = /Webdevelopment
browseable = yes
writeable = yes
create mask = 0775
valid users = @webdevelopment
[SHARE]
comment = Medryte
path = /home/share
writeable = yes
; browseable = yes
create mask =0755
valid users = share



[HCC]
comment = Medryte
path = /home/HCC
writeable = yes
browseable = yes
create mask =0755
valid users =medrytehcc

Here i created a newshare called "webdevelopment" which was given different authentication, but its not logging in says access is denied and whenever I trid to go into the network via //192.168.1.2 its asking for authentication which I have used for another folder called "SHARE" ?

Last edited by benn371; 06-11-2016 at 02:49 AM.
 
  


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
[SOLVED] Active Directory authentication not working with Samba shares PICKLES22 Linux - Newbie 1 12-07-2011 12:07 AM
rhel 5.5 - samba password unix sync not working conex Linux - Enterprise 0 11-30-2011 02:06 PM
Domain Controller Authentication under Samba not working!! passedpawn1986 Linux - Newbie 3 10-05-2009 06:01 PM
PAM Active Directory user authentication for Samba shares in RHEL 4 rockfx01 Linux - Server 3 12-02-2008 01:02 PM
Getting pam working with samba (with active directory authentication) kcorupe Linux - Server 3 05-02-2008 10:04 AM

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

All times are GMT -5. The time now is 06:51 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