Windows machine can not see my samba shared folder.
Hey samba regulars,
quick question from a first time set up for me... I have everything networked properly, as far as I can tell, both computers see each other... I can use putty to port in and use my Linux machine (Debian 4). When I go to map network drive on my XP machine, I can see the computer, but not the shared folder. After some googling I found that i have to create my Windows user name ont he Linux machine as a user as well...unforunately, that user is 'Administrator' So I told Linux to force user, and it created it, and did smbpasswd command and added the user to the samba list. Still nothing. Where did I go wrong? Thanks in advance. |
Quote:
Try accessing the server by its IP. In Windows use RUN: \\Server_IP\ If samba is properly configure you should see your shares. |
Best would be to try to access the share from windows, then check your logs (/var/log/samba/you_win_comp.log)
Also post your smb.conf snippets here. |
Thanks
Thanks for replies guys, when I can get back home to that computer I will try everything. Appreciate your help, will post results back asap.
|
results from trying to see folders from windows machine
When i typed '\\samba ip address\' in windows explorer, it gave a me a pop up to log in to the apache linux machine.
when i logged in with a user and pass i know exist ont he windows machine, it wouldnt accept it. when i checked the log file, this is what i saw... ------------------------------------------------------------------------- [2009/04/30 20:41:15, 0] lib/util_sock.c:write_data(562) write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer [2009/04/30 20:41:15, 0] lib/util_sock.c:send_smb(761) Error writing 4 bytes to client. -1. (Connection reset by peer) [2009/05/06 22:15:17, 0] lib/util_sock.c:write_data(562) write_data: write failure in writing to client 192.168.1.102. Error Connection reset by peer [2009/05/06 22:15:17, 0] lib/util_sock.c:send_smb(761) Error writing 4 bytes to client. -1. (Connection reset by peer) [2009/05/06 22:24:22, 0] lib/util_sock.c:write_data(562) write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer [2009/05/06 22:24:22, 0] lib/util_sock.c:send_smb(761) Error writing 4 bytes to client. -1. (Connection reset by peer) -------------------------------------------------------------------------- I am at a loss. I also noticed the many different log files. some listed by ip and some listed by user name. Hopefully that is correct. thanks in advance. mtlhd |
my current samba config file
------------------------------------------- # Samba config file created using SWAT # from 192.168.1.149 (192.168.1.149) # Date: 2009/05/06 22:37:56 [global] workgroup = HOME server string = Samba Server obey pam restrictions = Yes passdb backend = tdbsam passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* . syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No panic action = /usr/share/samba/panic-action %d invalid users = root [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers [allusers] comment = All Users path = /home/shares/allusers valid users = @users force group = users read only = No create mask = 0660 directory mask = 0771 [www] comment = web root folder path = /home/me/www/webroot valid users = me write list = me read only = No guest ok = Yes --------------------------------------------------------------------- what is wrong with this set up? I can not see anything from my windows machine when i go to map network drive. thanks again linux community -mtlhd |
Does the group "users" and the user "me" actually exist?
Could you show "pdbedt -L" Edit - make that "pdbedit -L" |
thanks for the reply billy
im afriad that command didnt work though... is there somewhere I can look for users and passwords? Im trying to use a linux user account right now.... thanks mtlhd |
tdbdump can be used to view the contents of the /etc/samba/passdb.tdb file, since it is now a binary database.
|
Quote:
|
Quote:
(im not a guru but i had the same problem before and solved it by this way. :) ) |
thanks
thanks all, I will check all this stuff when I get home. Will reply as soon as I have tried it.
-mtlhd |
For Billy, pdbedit -L posted.
apache:~# pdbedit -L
games:5:games nobody:65534:nobody proxy:13:proxy www-data:33:www-data root:0:root news:9:news bin:2:bin mail:8:mail hplip:107:HPLIP system user,,, messagebus:103: proftpd:112: daemon:1:daemon sshd:108: man:6:man lp:7:lp Debian-exim:100: mysql:110:MySQL Server,,, gnats:41:Gnats Bug-Reporting System (admin) chad:1000:Chad Cochran,,, backup:34:backup haldaemon:105:Hardware abstraction layer,,, fetchmail:109: sys:3:sys ntp:114: avahi:104:Avahi mDNS daemon,,, identd:102: postfix:111: list:38:Mailing List Manager irc:39:ircd gdm:106:Gnome Display Manager statd:101: ftp:113: sync:4:sync uucp:10:uucp Administrator:4294967295:Windows Web Dev Machine,,, apache:~# ---------------------------------------------------------- I first referred to user 'chad' as 'me:user' Thats the result. Still can't see folders on apache machine. Thanks all. |
The Good fight is over. It turns out, I over looked the obvious and I am the Ultimate Noobness.
I added a samba user from the command line. Samba was working all a long but had no users. I was under the impression it just used regular user accounts from the OS. Yes I am retarded. all good now. thanks all. |
All times are GMT -5. The time now is 08:33 PM. |