LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-11-2011, 01:51 AM   #1
NML0089
LQ Newbie
 
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7

Rep: Reputation: 0
Question Help with SAMBA


Hello,

This forum has helped me out alot before. I am trying to setup samba to allow file sharing to: /home/kris & /var/www

I am trying the command smb://192.168.*.* from my MacBook & \\192.168.*.* but when I enter "kris" & password: "******" it keep's on coming up "Incorrect Username &/or Password"

Here is my conf file:

Code:
[global]
workgroup = homegroup ;put your own workgroup name here
netbios name = intranet ; this should be your own too
server string = Intranet in Kris' Room.
; hosts allow = 192.168.1
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
;smb passwd file = /usr/bin/smbpasswd
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
guest ok = yes
guest account = nobody
security = user
map to guest = Bad Password
[Guest]
guest ok = yes
guest account = Guest
security = share
map to guest = Bad Password
path = /home/Guest

;[homes]
; comment = Home Directories
; read only = No
; browseable = No


[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[kris]
path = /home/kris
valid users = kris
write list = kris
read only = No
available = yes
; The following hides all the dot files and hidden files
hide dot files = yes
veto files = /.?*/
[website]
path = /var/www/
valid users = kris
The great thing is, I can login with Guest. That works.

But I try and use kris, but it keeps on giving me the issue, if you guys & girls can help, It will be greatly appreciated.

Kris
 
Old 02-11-2011, 04:44 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Did you use smbpasswd -a kris and then enter the password? I forget this step a lot of times; samba has a seperate password database from your Linux account.
 
Old 02-11-2011, 06:20 AM   #3
NML0089
LQ Newbie
 
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Noway2 View Post
Did you use smbpasswd -a kris and then enter the password? I forget this step a lot of times; samba has a seperate password database from your Linux account.
I have tried this, many times but to still no prevail, it just still states "incorrect password/username" even on Windows 7.

I use kris "*****" then it says the error.

When I do smbpasswd there is no errors that come up

Code:
[root@intranet home]# smbpasswd -a kris
New SMB password:
Retype new SMB password:
[root@intranet home]#
this is what i get when I try smbpasswd.. then when I try to login, same issue.

Last edited by NML0089; 02-11-2011 at 06:21 AM.
 
Old 02-11-2011, 07:19 AM   #4
rafatmb
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Rep: Reputation: 3
Hi,

Make sure that:

1. kris user really exists on Linux
2. you created the user on samba (probably, you did that).
3. try to access the server with kris user from localhost:
smbclient -L localhost -U kris
(then put your password).

Paste here the return.

[]'s

Rafa
Linux, Linux and Linux! Suporte Linux
 
1 members found this post helpful.
Old 02-12-2011, 12:45 AM   #5
NML0089
LQ Newbie
 
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rafatmb View Post
Hi,

Make sure that:

1. kris user really exists on Linux
2. you created the user on samba (probably, you did that).
3. try to access the server with kris user from localhost:
smbclient -L localhost -U kris
(then put your password).

Paste here the return.

[]'s

Rafa
Linux, Linux and Linux! Suporte Linux
Hello Rafa,

Yes I have the user "kris" created on the machine, he is the default user.. I will try what you have suggested when I get home as I am at work.

Thank you for taking the time out to help (I will edit this post when I have tried)

Quote:
[root@intranet home]# smbclient -L localhost -U kris
Enter kris's password:
Domain=[HOMEGROUP ;PUT YOUR OWN WORKGROUP NAME HERE] OS=[Unix] Server=[Samba 3.5.6-71.fc14]

Sharename Type Comment
--------- ---- -------
Guest Disk
kris Disk
website Disk
IPC$ IPC IPC Service (Intranet in Kris' Room.)
Domain=[HOMEGROUP ;PUT YOUR OWN WORKGROUP NAME HERE] OS=[Unix] Server=[Samba 3.5.6-71.fc14]

Server Comment
--------- -------

Workgroup Master
--------- -------
HOMEGROUP ;PUT
Thanks,

kris

Last edited by NML0089; 02-12-2011 at 04:22 AM.
 
Old 02-12-2011, 04:22 AM   #6
NML0089
LQ Newbie
 
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7

Original Poster
Rep: Reputation: 0
post updated, tried rafatmb's idea.

Thank you.
 
Old 02-12-2011, 05:30 AM   #7
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I really have to wonder if the parts that are supposed to be comments, like ';put your own workgroup name here', which are clearly not being treated as comments are messing things up? For example, on the last line of the output, it is saying that the Workgroup is HOMEGROUP and the master is ;PUT which is clearly a mistake. Could these be causing it to try to connect to the 'wrong' host and hence causing username/password doesn't exist?
 
1 members found this post helpful.
Old 02-12-2011, 06:30 AM   #8
NML0089
LQ Newbie
 
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7

Original Poster
Rep: Reputation: 0
Code:
[root@intranet home]# smbclient -L localhost -U kris
Enter kris's password: 
Domain=[HOMEGROUP] OS=[Unix] Server=[Samba 3.5.6-71.fc14]

	Sharename       Type      Comment
	---------       ----      -------
	Guest           Disk      
	kris            Disk      
	website         Disk      
	IPC$            IPC       IPC Service (Intranet in Kris' Room.)
Domain=[HOMEGROUP] OS=[Unix] Server=[Samba 3.5.6-71.fc14]

	Server               Comment
	---------            -------
	INTRANET             Intranet in Kris' Room.

	Workgroup            Master
	---------            -------
	HOMEGROUP            
[root@intranet home]#
Changed the ;'s to #'s & removed the comments.. still same issue.

Code:
[root@intranet home]# smbclient --debuglevel=2 //intranet/kris
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
added interface eth0 ip=fe80::21f:c6ff:fe79:2250%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.2.8 bcast=192.168.2.255 netmask=255.255.255.0
Enter kris's password: 
Domain=[HOMEGROUP] OS=[Unix] Server=[Samba 3.5.6-71.fc14]
smb: \>
this has allowed me to login.

I used net use on my windows machines and I was able to login, thank you to all who have helped! +reputation for you all!

Last edited by NML0089; 02-12-2011 at 08:06 AM.
 
Old 02-12-2011, 11:44 AM   #9
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I'm starting to think this may be a windows 7 issue? I can't connect to my windows shares on a windows 7 but all other PC's with windows or not can access the shares. Anyone else have this issue of only win 7 not working with samba?
 
Old 02-12-2011, 12:52 PM   #10
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
did you also load the smbfs files.......
 
Old 02-18-2011, 01:09 PM   #11
Brewmaster619
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by micxz View Post
I'm starting to think this may be a windows 7 issue? I can't connect to my windows shares on a windows 7 but all other PC's with windows or not can access the shares. Anyone else have this issue of only win 7 not working with samba?
I dunno, I see others here and there complaining about Win 7 having issues with accessing Samba shares, but I recently added a Win 7 Home machine to my network, with a Samba server, and it works better than the Vista/XP machines, it actually remembers the password between sessions. Worked first try.
 
Old 02-19-2011, 12:34 AM   #12
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Maybe it works, I guess I just like to blame windows when I have computer problems
 
Old 03-12-2011, 12:37 AM   #13
technocp
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by NML0089 View Post
I have tried this, many times but to still no prevail, it just still states "incorrect password/username" even on Windows 7.

I use kris "*****" then it says the error.

When I do smbpasswd there is no errors that come up

Code:
[root@intranet home]# smbpasswd -a kris
New SMB password:
Retype new SMB password:
[root@intranet home]#
this is what i get when I try smbpasswd.. then when I try to login, same issue.
I would like to make a point on smbpasswd -a kris

do you specify the new smb password here and also retype it for confirmation
because if you are failing that step you wont be able to access the share.
 
  


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 - unix user created, added to samba, and valid users on share, still cannot... mitchell7man Linux - Server 12 03-17-2010 08:37 PM
Is there any way to log user samba who delete or move files/folders on samba server ? b-RAM Linux - Server 1 02-09-2010 12:33 AM
Newbie: Samba under Ubuntu - default config locations don't match samba.org mdutch Ubuntu 0 08-28-2009 02:38 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

All times are GMT -5. The time now is 11:21 AM.

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