LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2003, 01:52 PM   #1
geldall
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Rep: Reputation: 0
samba question


I have a Linux 8.0 machine running Samba.
On a Windows XP PC when I issue command:
net view \\Redhat (where Redhat is the Name of Linux PC)
I got System error 5 has occurred and Access is denied message

In smb.conf I've enabled guest ok. What else should I do? thanks.
 
Old 01-23-2003, 02:19 PM   #2
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
have you set up the user using

#smbpasswd -a user ?

and do you have the samba daemons running?

Perhaps you have config to link passwords to the unix passwords of the users (unix password sync) - you should comment that out and just rely on the smbpasswd file.. Also, you want to make sure you enable the password encryption in your conf (encrypt passwords = yes) and point the config to your samba password file (smb passwd file = /etc/samba/smbpasswd

christo

btw, What's Linux 8.0 ?
 
Old 01-23-2003, 02:56 PM   #3
geldall
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Original Poster
Rep: Reputation: 0
yes, I checked everything seems in working condition. Still couldn't figure out whats the cause. but thanks anyway.

and sorry for the typo: it Redhat 8.0 should have checked my spelling

Last edited by geldall; 01-23-2003 at 02:58 PM.
 
Old 01-23-2003, 03:31 PM   #4
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
look in your smb.conf for the samba log file path - then tail the file (immediately after a connection attempt). Praps there are some clues in there ?

christo
 
Old 01-24-2003, 01:28 AM   #5
geldall
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Original Poster
Rep: Reputation: 0
got progress now. don't know how and why, after changing some configurations in smb.conf I suddenly can see my Linux PC from the Windows PC -- a big progress!!!! I guess that is because I enaled plain shared password on the windows PC???? not sure yet.

the problem now is I can't see the shared directory on Linux machine from Windows PC. The following are traces from two log files when I tring to map a Linux drive onto the windows PC:

1. trace from log.windows_PC

more log.window_PC

[2003/01/23 23:17:29, 0] [2003/01/23 23:18:41, 0] passdb/pdb_smbpasswd.cdb_getsampwnam(1369)
unable to open passdb database.
[2003/01/23 23:18:41, 0] passdb/pdb_smbpasswd.cdb_getsampwnam(1369)
unable to open passdb database.

funny -- the replaced ":" followed by a "p" in the above text : )


2. trace from log.smbd

more log.smbd
[2003/01/23 23:17:29, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2003/01/23 23:17:29, 0] lib/access.c:check_access(333)
[2003/01/23 23:17:29, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2003/01/23 23:17:29, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2003/01/23 23:17:29, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 13: ERRNO = Connection reset by peer
[2003/01/23 23:17:29, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)
[2003/01/23 23:18:41, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
[2003/01/23 23:18:41, 0] lib/access.c:check_access(333)
[2003/01/23 23:18:41, 0] lib/util_sock.c:get_socket_addr(1012)
getpeername failed. Error was Transport endpoint is not connected
Denied connection from (0.0.0.0)
[2003/01/23 23:18:41, 0] lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Connection reset by peer
[2003/01/23 23:18:41, 0] lib/util_sock.c:write_socket(524)
write_socket: Error writing 5 bytes to socket 13: ERRNO = Connection reset by peer
[2003/01/23 23:18:41, 0] lib/util_sock.c:send_smb(704)
Error writing 5 bytes to client. -1. (Connection reset by peer)


do you know whats the cause of the problem??? thanks again

Last edited by geldall; 01-24-2003 at 01:30 AM.
 
Old 01-24-2003, 02:45 AM   #6
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
I installed samba and created a fileshare for the first time yesterday on our comany network.. I made a couple of notes here: http://www.spiration.co.uk/showpost.php?id=214

I don't know, but you might just find something useful there

christo
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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