LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-30-2009, 08:03 PM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Rep: Reputation: 18
Question 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.
 
Old 04-30-2009, 09:47 PM   #2
adri_ht_
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 15
Quote:
Originally Posted by mtlhd View Post
Hey samba regulars,


. After some googling I found that i have to create my Windows user name ont he Linux machine as a user as well...

Thanks in advance.
Not really, you can authenticate with your Linux username. If you can't see the share at all after accessing the server, then there is a samba misconfiguration.

Try accessing the server by its IP. In Windows use RUN:

\\Server_IP\

If samba is properly configure you should see your shares.
 
Old 05-01-2009, 03:32 AM   #3
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
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.
 
Old 05-01-2009, 03:16 PM   #4
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
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.
 
Old 05-06-2009, 09:31 PM   #5
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Unhappy 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
 
Old 05-06-2009, 09:41 PM   #6
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
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
 
Old 05-06-2009, 09:49 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does the group "users" and the user "me" actually exist?

Could you show "pdbedt -L"

Edit - make that "pdbedit -L"

Last edited by billymayday; 05-06-2009 at 09:52 PM.
 
Old 05-06-2009, 09:52 PM   #8
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
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
 
Old 05-07-2009, 01:55 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
tdbdump can be used to view the contents of the /etc/samba/passdb.tdb file, since it is now a binary database.
 
Old 05-07-2009, 01:59 AM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by mtlhd View Post
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
Did you see my edit - I mis-typed first time
 
Old 05-07-2009, 02:18 AM   #11
ngiamol
Member
 
Registered: Apr 2009
Location: Athens - Hellas (greece)
Distribution: Centos
Posts: 36

Rep: Reputation: 16
Quote:
Originally Posted by mtlhd View Post
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
Make sure that the user name you trying to connect, exists in linux and samba too.

(im not a guru but i had the same problem before and solved it by this way. )
 
Old 05-07-2009, 03:08 PM   #12
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
thanks

thanks all, I will check all this stuff when I get home. Will reply as soon as I have tried it.

-mtlhd
 
Old 05-09-2009, 07:28 PM   #13
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
For Billy, pdbedit -L posted.

apache:~# pdbedit -L
games:5:games
nobody:65534:nobody
proxy:13roxy
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.

Last edited by mtlhd; 05-09-2009 at 07:29 PM.
 
Old 05-09-2009, 09:01 PM   #14
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
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.

Last edited by mtlhd; 05-09-2009 at 10:41 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access windows server 2008 shared folder(samba is installed) from Ubuntu pincustomer Linux - Newbie 3 01-28-2009 04:14 AM
Can't write to a shared folder from Windows XP machine Virtuality Linux - Networking 3 05-31-2007 02:49 AM
how do i connect to a windows shared folder using samba? winstone5000 Linux - Networking 1 12-19-2005 10:38 AM
how to access a shared folder on a windows machine learnfast Linux - Newbie 11 03-12-2005 01:50 AM
Apply permission on samba shared folder on M$ Windows 2000 vwhk Linux - General 4 07-20-2003 09:53 PM

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

All times are GMT -5. The time now is 07:08 PM.

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