I set up and configured a shared folder in OpenSuse 11.1.
From XP I can see the Linux PC under my workgroup, but clicking on it in MS explorer will give me an error message like “Access denied, contact your admin”.
When typing the IP address \192.168.0.3 I can even see the share under the name given in smb.conf. When clicking it it will ask me for a username and password, but these are not accepted (the login dialogue will pop up again and again).
You must have constructed a share that needs a username and password for access. Either that or the underlying Linux permissions on the shared folder are stopping access.
So if you want it to be that a user must authenticate, then you must add the username and password to the Samba user database. Then the windows user supplies that username and password when asked for it. Look for more on using the “smbpasswd” utility here: Authentication and the Samba User Database
On the other hand, if you wanted to allow guests to access the share with no need for a password, tell us how you made the share and also reproduce here the samba configuration file (smb.conf) located in directory /etc/samba.
I was expecting that I had to authenticate by username and password. However I was assuming that this would be my username and password as specified on the Linux machine (Same as on Windows machine).
However, trying to use smbpasswd mayby got me somewhat closer to the real problem.
The tool would ask my Old password and then two times ask for the new password. I get the following message:
*Could not connect to machine 127.0.0.1: NT_STATUS_LOGON FAILURE
Failed to change password for peter
*
I’m confused, never having seen this sort of response before:
The tool would ask my Old password and then two times ask for the new password. I get the following message:
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON FAILURE
Failed to change password for peter
To get the message “NT_STATUS_LOGON FAILURE” seems like you were communicating across the network when using the smbpasswd tool to add “peter” to the Samba user database. Were you? You add “peter” to the database in an openSUSE console window not associated with a network.
Yes, but then again the IP adress 127.0.0.1 (localhost) would indicate that it tries to change someting on the local machine.
I tried this on a console(Gnome Terminal) running on the one linux machine that I have in my network. I.e. the machine I am trying to get Samba running on.
On Mon February 9 2009 02:56 pm, peter170567 wrote:
>
> Hi Swerdna,
>
> thanks for your swift reply.
>
> I was expecting that I had to authenticate by username and password.
> However I was assuming that this would be my username and password as
> specified on the Linux machine (Same as on Windows machine).
>
> However, trying to use smbpasswd mayby got me somewhat closer to the
> real problem.
>
> The tool would ask my Old password and then two times ask for the new
> password. I get the following message:
> -Could not connect to machine 127.0.0.1: NT_STATUS_LOGON FAILURE
> Failed to change password for peter
> -
>
> Does this give any hint whats going wrong here?
>
> Peter
>
Peter;
Unless you have already created the Samba users, you need to do that. From a
terminal window enter:
su
<supply root's password here when prompted>
smbpasswd -a <username>
smbpasswd will prompt you for the password. <username> must be a valid Linux
user, but the password you assign is not required to be the same as the log
on password. If you run smbpasswd as a user, you can only change your
password, not create a new Samba User
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
>
> I’m confused, never having seen this sort of response before:> The tool
> would ask my Old password and then two times ask for the new
>> password. I get the following message:
>> Could not connect to machine 127.0.0.1: NT_STATUS_LOGON FAILURE
>> Failed to change password for peter To get the message “NT_STATUS_LOGON
>> FAILURE” seems like you were
> communicating across the network when using the smbpasswd tool to add
> “peter” to the Samba user database. Were you? You add “peter” to the
> database in an openSUSE console window not associated with a network.
>
>
This is normal when you run as a user:
smbpasswd
and you have not been added to the data base. When smbpasswd is run as a user
is acts similarly to “passwd” and allows you to change your Samba password;
assuming you are a samba user.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
>
> @PV
> I’ve not used (misused?) smbpasswd that way before. Just tried it and
> it fails with the NT_STATUS error. Live and learn! Thanks.
>
>
Swerdna;
When it prompts for the old password, that is used to authenticate you to
Samba. If you are not in the data base, the authentication fails. So the
error message is: NT_STATUS error. It would be much akin to trying to log on
to your Linux(or Windows) machine with an invalid account.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green