Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 18th, 2002, 06:52 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
Basic question re Samba authentication problem

I'm just setting up a colleage here with a samba account on one of our machines. She is using a windows XP machine, and our print server runs on a Debian box... I have set herup with a user account on the Deb-box and also a Samba account. However, when she tries to print from Windoze, she still gets the message:

You do not have permission to use the selected printer. If you need
access contact your network administrator

I am wondering if I need to restart the smbd demon - is there a nice clean way of doing this, other than killall smbd && smbd ?
I wonder if anyone has any other ideas on how to get this authentication working !!
There are other XP machines in the office which can print via this machine no probs, so I'm sure that it's just a password thing. I have checked the /etc/passwd and this person definitely has an entry.

Here are the errors dumped in /var/log/smb:

[2002/06/18 12:52:55, 1] smbd/password.c:pass_check_smb(492)
Couldn't find user 'pratima sood' in UNIX password database.
[2002/06/18 12:52:55, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'pratima sood': authentication failed
[2002/06/18 12:53:08, 1] smbd/password.c:pass_check_smb(492)
Couldn't find user 'pratima sood' in UNIX password database.
[2002/06/18 12:53:08, 1] smbd/password.c:pass_check_smb(492)
Couldn't find user 'pratima sood' in UNIX password database.
[2002/06/18 12:53:08, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'pratima sood': authentication failed

And here is a copy of the smb.conf:

[global]
printing = bsd
printcap name = /etc/printcap
load printers = yes
guest account = nobody
invalid users = root

inherit permissions = yes
security = user
workgroup=Internals
server string = %h server (Samba %v)
syslog only = no
;I have tried sync'ing password, but that didn't work either
unix password sync = False
passwd program = /usr/bin/passwd

;miscellaneous stuff:
syslog = 0;
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
encrypt passwords = yes
wins support = no
name resolve order = lmhosts host wins bcast
dns proxy = no
preserve case = yes
short preserve case = yes

passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
max log size = 1000

[homes]
comment = Home Directories
browseable = no
writable = yes

[netlogon]
comment = Network Logon Service
path = /etc/samba/netlogon
guest ok = yes
writable = no
share modes = no

[Internals]
comment = Internals Shared Files
path = /home/samba
browseable = yes
writable = yes

[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes


many thanks
Christo

Reply With Quote
  #2  
Old June 22nd, 2002, 02:54 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
encrypt passwords = yes

if passwords are encrypted, they are no longer stored in /etc/passwd but in /etc/smbpasswd (sometimes /usr/local/samba/etc/smbpasswd or similar) since the hash differs from unix to windows which makes it impossible to use /etc/passwd.

use "$ smbpasswd <user>", then it should work. maybe you have to add a empty line in smbpasswd before:

login:userid:XXXXXXX (32 times):XXXX (32times):

then smbpasswd can set the password for you
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old June 27th, 2002, 11:35 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
well, a colleague of mine managed a suitably easy hack, which looked like this:

in the 'run' box, type \\machinename where machinename is the shared box.
Then in log-in box, he gave the correct UNIX username and passowrd and also clicked on the 'don't ask me again' button, so all connections to that linux box from that XP account are now made with that user/pass combination.

works a treat

later

Reply With Quote
  #4  
Old June 27th, 2002, 11:57 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
you only loose the complete security in the network for this server

still, it only works if the unix user is also in the /etc/smbpasswd. or if you have "encrypt passwords=no" and (use win95a or you add an entry somewhere in the registry "allowunencryptedpasswords=1") or similar.

maybe your distro adds users automagically to /etc/smbpasswd when created as unix user. this would be a nice feature (SuSE does not.)

Reply With Quote
  #5  
Old June 28th, 2002, 04:18 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
Quote:
you only loose the complete security in the network for this server

can you expand on this bit?


Quote:
maybe your distro adds users automagically to /etc/smbpasswd when created as unix user. this would be a nice feature (SuSE does not.)


I set up the UNIX account and the samba user/password on the Shared machine... it was just refusing the password, because the Windoze was offering a different username, but manually logging in from the run box with proper username (and setting it to always use that username) seemed to do the job.

Hope I'm making some sense - had far too many beers last night

christo

Reply With Quote
  #6  
Old June 28th, 2002, 01:52 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Losing security since because if everybody uses the same login to access the samba server, everybody can delete everybody else´s files...

And for the login probs: yes, now i understand. Win2k/XP has the option to connect to a server usin different credentials than you´ve logged in to the local machine.
Win9X does not. At least not on right-clicking. So you need to keep the passwords in synch.

do you have a central logon server on the domain? this is what we use at work. and i setup samba to forward all logon attempts to the win2k server. so there is no need for passwords on the samba server, only the users must exist

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Basic question re Samba authentication problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway