Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-28-2015, 05:42 AM   #1
Senior Member
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down Why Samba ask username and password and repeat it?

I share a Directory via Samba and when I want to open it in Linux or Windows, It ask me username and password and repeat it.
What is the problem?

Old 04-29-2015, 02:19 PM   #2
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,277

Rep: Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890
You have not provided any information for us to help you with.

Have you added the user to samba users? Here is a how to link if you have not.

Many more can be found by searching the internet.

Post your smb.conf file.

Tell us what you have done to resolve your problem.
Old 05-01-2015, 11:42 AM   #3
Senior Member
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I joined my Linux Box to Windows domain and my smb.conf is :

workgroup = JASONDOMAIN
security = ADS
netbios name = printmah

dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
server string = Samba 4 Client h
vfs objects = acl_xattr
map acl inherit = Yes
store dos attributes = Yes
username map = /etc/samba/


winbind enum users = no
winbind enum groups = no
winbind use default domain = yes
winbind expand groups = 4
winbind nss info = rfc2307
winbind refresh tickets = Yes
winbind offline logon = yes
winbind normalize names = Yes

## map id's outside of domain to tdb files.
idmap config *:backend = tdb
idmap config *:range = 2000-9999
## map ids from the domain the ranges may not overlap !
idmap config JASONDOMAIN : backend = rid
idmap config JASONDOMAIN : range = 10000-999999

wins server =,,

domain master = no
local master = no
preferred master = no
os level = 20
map to guest = bad user
host msdfs = no
# user Administrator workaround, without it you are unable to set
username map = /etc/samba/

# For ACL support on member server
vfs objects = acl_xattr
map acl inherit = Yes
store dos attributes = Yes

# Share Setting Globally
unix extensions = no
reset on zero vc = yes
veto files = /.bash_logout/.bash_profile/.bash_history/.bashrc/
hide unreadable = yes
template shell = /bin/sh
template homedir = /home/%U
name resolve order = lmhosts wins bcast host

path = /home/jason/Desktop/photo
read only = no
browseable = yes
valid user=jason


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba: where do I find username and password? newbiesforever Linux - General 4 03-21-2013 09:11 PM
samba withour username and password mahmoud Linux - Software 5 03-05-2009 05:30 AM
Samba without username and password MarioT Linux - Networking 4 02-27-2006 02:53 AM
Samba username and password downinthemine Linux - Networking 2 01-10-2004 08:01 AM
Username and Password accessing samba? Sir.Del Linux - Networking 14 12-24-2001 03:05 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration