LinuxQuestions.org
Help answer threads with 0 replies.
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 09-21-2009, 06:40 PM   #1
cpthk
Member
 
Registered: Aug 2009
Posts: 31

Rep: Reputation: 15
samba share prompt username/password question


Hi:

I have setted up my samba server. I tested from my windows side, all the public ones works fine except the [homes]

Here is my [homes] setting:
Code:
[homes]
comment = Home Directories
browseable = yes
writable = yes
The homes is suppose to let each user see his/her own home directory. But I tested at the windows side, I found that windows doesn't even prompt me about username or password, it just directly give me "not accessible" error. How do I config so my windows side at least prompt me about username/password?
 
Old 09-21-2009, 06:50 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,314
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
I had this problem once and, on the advice of a friend, I installed NetBEUI and it fixed it.

That doesn't work with Windows systems more recent than XP.
 
Old 09-21-2009, 07:10 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Please tell us what distribution/version you are using and the samba version if known. Also the windows version might be helpful too.

Did you modify the default configuration? If the public shares are visible then it would not be a NetBEUI issue.
 
Old 09-21-2009, 07:29 PM   #4
cpthk
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I have version 3.3.2. My windows is XP SP3. My server is ubuntu 9.04
 
Old 09-21-2009, 08:16 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Ok lets see your smb.conf file and please leave out the comments.
 
Old 09-21-2009, 08:37 PM   #6
cpthk
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Code:
[global]

   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam

   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes
   map to guest = bad user

[homes]
   comment = Home Directories
   browseable = yes
   read only = no


[public]
    path = /home/public
    public = yes
    writable = yes
    browseable = yes
It seems windows use windows login name to try to login samba. It doesn't prompt me username or password. It could be a windows side issue too.

Thanks.
 
Old 09-21-2009, 08:56 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
BTW did you add users via smbpasswd command?
 
Old 09-21-2009, 09:40 PM   #8
cpthk
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
yes, I did.
 
Old 09-23-2009, 12:43 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
IS SElinux running by any chance?
 
Old 09-23-2009, 01:03 PM   #10
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
Am i wrong in assuming that there's no path under the [homes] section of the smb.conf ?
 
Old 09-23-2009, 01:11 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
If I understand your question then yes no path is required for [homes]. samba automatically creates a home directory share for each user. samba also automatically creates shares for all printers if [printers] exists.
 
Old 09-23-2009, 02:50 PM   #12
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
Quote:
Originally Posted by michaelk View Post
If I understand your question then yes no path is required for [homes]. samba automatically creates a home directory share for each user. samba also automatically creates shares for all printers if [printers] exists.
Okay, Cheers for clearing that up..
 
Old 09-23-2009, 11:19 PM   #13
cpthk
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
thanks guys, I finally found the reason. Windows xp automatically use currently logged in local account to login samba share. So I would have to create a exactly same username at linux side. If the password is also the same, windows would login directly. If password is not the same, windows will pop up prompt to ask username and password.
 
  


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
username and password prompt: samba configuration caesarkim Linux - Networking 4 05-21-2009 09:13 AM
Samba mounts share under wrong username Marinus Linux - Server 4 01-09-2007 08:25 AM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 11:53 AM
Samba share authentication using logon username and password mikepengelly Linux - Software 0 08-31-2004 03:47 AM
Samba username and password downinthemine Linux - Networking 2 01-10-2004 08:01 AM

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

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