LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2013, 08:35 AM   #1
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 0
Exclamation Samba Problem


Hello Dear
I am getting an error while connecting to a password protected shared folder. When I clicked on the folder, it asks me the user name and password. But after giving password it shows the below error:
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD

but if I use windows command prompt to connect to that folder, that works without any problem. below is my smb.conf file. I added the halim user by addusr halim then smbpasswd -a halim.

Please someone help me.

I am getting error for the subcon share.

#======================= Global Settings =====================================
[global]
workgroup = WORKGROUP
#security = share
map to guest = bad user
security = share
encrypt passwords = yes
#smb passwd file= /usr/bin/smbpasswd
#============================ Share Definitions ==============================
[CommonShare]
path = /home/share
browsable =yes
writable = yes
guest ok = yes
read only = no

#subcon folder
[subcon]
path=/home/subcon
brwosable=yes
writeable=yes
guest ok=no
valid users=halim
 
Old 01-22-2013, 09:18 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Shared folder between which two hosts?
You have to use samba password, if you're accessing it from Windows.
Also you can see entry for smbpasswd file is commented in smb.conf:
Code:
#smb passwd file= /usr/bin/smbpasswd
So once remove comment and try again.
 
Old 01-22-2013, 11:35 AM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
This is what I have been using at home, and is working fine for me type in terminal as root
Code:
mount -t cifs -o username=<samba_username>,password='<samba_password>' //IP_server/shared_folder /mountpoint_on_client

Good luck to you
 
Old 01-22-2013, 11:53 AM   #4
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shivaa View Post
Shared folder between which two hosts?
You have to use samba password, if you're accessing it from Windows.
Also you can see entry for smbpasswd file is commented in smb.conf:
Code:
#smb passwd file= /usr/bin/smbpasswd
So once remove comment and try again.
Dear Shivaa
Thanks for your reply.
My samba was on centos 6.3 and my clients are windows7.
I got the smbpassword in /usr/bin/smbpasswd and gave the location in my smb.conf file.
Since I got no result, i commented it.
Below list was my trying:
1) useradd halim
2) passwd halim
3) smbpasswd -a halim
4) \\192.168.1.3
5) double click on "subcon"
6) user: halim password: !@#QWE (smbpasswd)
7) error
8) in windows command prompt net use \\192.168.1.3\subcon
9) user and password...it works

Please let me know what I have to do to get access on that folder by double clicking on it. I don't want to do it from command prompt.
 
Old 01-22-2013, 12:00 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
What is this "subcon" thing you're clicking on? Why not just map the SAMBA share to a drive letter on the Windows clients, so they can open it up like any other drive?
 
Old 01-22-2013, 12:16 PM   #6
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Dear suicidaleggroll
I made the subcon directory in my home directory (/home/subcon) and shared it as subcon.
I can connect to that folder if I use windows command prompt. But I cant connect to it either by windows explorer or by mapping it as map drive.
When I try to make a map drive, it asks for user id and password. after giving the id and password it shows password/id not correct.
At that time if I see the samba log it shows:

create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
 
Old 01-22-2013, 12:30 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Is that typo in your smb.conf in the OP actually there, or was that just a mistake when copying it into your post? The typo I'm referring to is "brwosable" in [subcon]. I'm not sure if that could cause this or not.

Last edited by suicidaleggroll; 01-22-2013 at 12:32 PM.
 
Old 01-22-2013, 12:45 PM   #8
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Is 'subcon' somewhere inside /home/halim/.../subcon?
Anyway, after invoking following steps:-
Quote:
1) useradd halim
2) passwd halim
3) smbpasswd -a halim
4) \\192.168.1.3
5) double click on "subcon"
Can you once enter Unix password of halim user, when it asks to enter password, instead of smbpassword? Make a try.
 
Old 01-22-2013, 01:01 PM   #9
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
Is that typo in your smb.conf in the OP actually there, or was that just a mistake when copying it into your post? The typo I'm referring to is "brwosable" in [subcon]. I'm not sure if that could cause this or not.
Dear suicidaleggroll
It was my typing mistake, now I changed it. But no result.
My windows is showing "The specified network password is not correct" and samba showing that error as before.
 
Old 01-22-2013, 01:05 PM   #10
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Dear Shiva
The subcon folder is in /home directory not in /home/halim.
I followed your direction but no result. My windows again showing "The specified network password is not correct"
Below is the list of home directory:
drwxr-xr-x. 7 root root 4096 Jan 22 13:31 .
dr-xr-xr-x. 25 root root 4096 Jan 22 18:50 ..
drwx------. 4 halim halim 4096 Jan 22 12:46 halim
drwxrwxr-x. 2 halim root 4096 Jan 22 13:31 it
drwx------. 2 root root 16384 Jan 21 15:21 lost+found
drwxrwxrwx. 2 root root 4096 Jan 22 18:03 share
drwxrwx---. 2 halim subcon 4096 Jan 22 12:49 subcon

One thing making me more confused, why the error coming only in windows explorer not in windows cmd.
Windows cmd accepting the password.

Please help me.
 
Old 01-22-2013, 01:18 PM   #11
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Wait! Did you notice that, you're logged in as halim and you're trying to access subcon directory i.e. /home/subcon with use of halim's smbpassword !! Then how it can allow you?

In samba, a Windows username and Unix username are mapped in smbusers file in Unix, like:
Code:
windows_username == unix_username
Can you once try to open it using subcon's smbpassword/Unix password (I assume subcon is also some user and /home/subcon is his home dir.).
 
Old 01-22-2013, 01:28 PM   #12
halimulalam
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Dear Shiva
thanks again for your prompt reply.
subcon is not an user, I just made the subcon folder in home.
my user password of halim and smbpasswd of halim are same.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SAMBA problem ?? rebuilding server ?? How to configure SAMBA share with writing - Win Alvin88 Linux - Newbie 5 04-04-2012 01:51 AM
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 05:07 PM
How to edit files with xemacs over Samba share? Samba problem? rylan76 Linux - Software 1 11-13-2008 02:00 AM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 06:55 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 11:39 AM


All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration