Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-11-2011, 01:51 AM
|
#1
|
LQ Newbie
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7
Rep:
|
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
|
|
|
02-11-2011, 04:44 AM
|
#2
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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.
|
|
|
02-11-2011, 06:20 AM
|
#3
|
LQ Newbie
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by Noway2
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.
|
|
|
02-11-2011, 07:19 AM
|
#4
|
LQ Newbie
Registered: Feb 2011
Posts: 27
Rep:
|
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.
|
02-12-2011, 12:45 AM
|
#5
|
LQ Newbie
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by rafatmb
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.
|
|
|
02-12-2011, 04:22 AM
|
#6
|
LQ Newbie
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7
Original Poster
Rep:
|
post updated, tried rafatmb's idea.
Thank you.
|
|
|
02-12-2011, 05:30 AM
|
#7
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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.
|
02-12-2011, 06:30 AM
|
#8
|
LQ Newbie
Registered: Jan 2011
Distribution: Fedora Core 14
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
02-12-2011, 11:44 AM
|
#9
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
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?
|
|
|
02-12-2011, 12:52 PM
|
#10
|
Member
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
|
did you also load the smbfs files.......
|
|
|
02-18-2011, 01:09 PM
|
#11
|
LQ Newbie
Registered: Oct 2010
Posts: 4
Rep:
|
Quote:
Originally Posted by micxz
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.
|
|
|
02-19-2011, 12:34 AM
|
#12
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
Maybe it works, I guess I just like to blame windows when I have computer problems
|
|
|
03-12-2011, 12:37 AM
|
#13
|
LQ Newbie
Registered: Oct 2008
Posts: 18
Rep:
|
Quote:
Originally Posted by NML0089
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.
|
|
|
All times are GMT -5. The time now is 11:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|