LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2004, 11:54 PM   #1
caesarkim
Member
 
Registered: Nov 2003
Posts: 32

Rep: Reputation: 15
username and password prompt: samba configuration


i have two computers. one has windows and the other computer(whose name is "Frodo") has redhat 9.

i am trying to make one directory from linux accessible to windows by using samba.

the problem is that i can see computer name in WorkGroup in windows. but when i try to browse, i get this prompt

incorrect password or unknown username for:
\\Frodo
Connect As:
Password:

I have different username and password for windows and linux.
so i tried windows's and linux's Administrator's password. none of them worked.

i can't figure it out. here is my smb.conf

[global]
log file = /var/log/samba/%m.log
smb passwd file = /etc/samba/smbpasswd
load printers = yes
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
obey pam restrictions = yes
username map = /etc/samba/smbusers
encrypt passwords = yes
hosts allow = 192.168.1.101 192.168.1.100
passwd program = /usr/bin/passwd %u
wins proxy = yes
dns proxy = no
netbios name = frodo
browseable = yes
netbios aliases = frodo
server string = samba server
printing = cups
default = public
path = /tmp/download
unix password sync = Yes
workgroup = WORKGROUP
os level = 20
valid users = adm Administrator admin
printcap name = /etc/printcap
security = user
max log size = 0
pam password change = yes

[homes]
comment = Home Directories
browseable = yes
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775



[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes

[public]
printable = no
writeable = yes
public = yes
guest only = yes
path = /home



thanks in advance.
 
Old 08-06-2004, 02:52 AM   #2
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi

To use samba, there has to be a valid (user) account on the linux maschine and with the same username under samba. From the windows maschine, a user can now login with this account on linux/samba.

Use:

Code:
/usr/bin/smbpasswd -a <username>
to add a linux user to samba.

(If the windows-user uses his windows username and password on linux + samba, he would spare the extra samba login when conntecting to the samba share).

Last edited by phase9; 08-06-2004 at 02:54 AM.
 
Old 08-06-2004, 03:15 PM   #3
caesarkim
Member
 
Registered: Nov 2003
Posts: 32

Original Poster
Rep: Reputation: 15
if i add a user with this command, "/usr/bin/smbpasswd -a <username>", then how should i add password?
 
Old 08-06-2004, 05:51 PM   #4
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi

smbpasswd should ask about the password.

If the user dosn't exist, there will be some error message about this fact -- but just proceed and the new samba user will be created.

See also man smbpasswd
 
Old 05-21-2009, 10:13 AM   #5
Zabzoo
LQ Newbie
 
Registered: Mar 2007
Location: Pretoria, South Africa
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 16
Smile

Quote:
Originally Posted by phase9 View Post
Hi

To use samba, there has to be a valid (user) account on the linux maschine and with the same username under samba. From the windows maschine, a user can now login with this account on linux/samba.

Use:

Code:
/usr/bin/smbpasswd -a <username>
to add a linux user to samba.

(If the windows-user uses his windows username and password on linux + samba, he would spare the extra samba login when conntecting to the samba share).
This helped me - thanks! Windows kept on asking/prompting for the login username and password when I tried to access the samba shares. I thought that on Ubuntu 9.04 when you created a Share using shares-admin that it will automatically add that user to the samba users, but it didnt you have to do the smbpasswd as shown in the quote above. Thank you for posting this (even though its old )
 
  


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
Samba access without unix username/password? mdkelly069 Linux - Networking 0 09-13-2004 06:05 PM
Samba share authentication using logon username and password mikepengelly Linux - Software 0 08-31-2004 04:47 AM
samba repetitively asks for username/password in nautilus FLOODS Linux - Software 3 05-06-2004 05:03 PM
Samba username and password downinthemine Linux - Networking 2 01-10-2004 09:01 AM
Username and Password accessing samba? Sir.Del Linux - Networking 14 12-24-2001 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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