LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2009, 01:15 PM   #1
laurens
Member
 
Registered: Mar 2009
Posts: 65

Rep: Reputation: 15
Cannot succeed connecting to SAMBA share from WinXP


Code:
#======================= Global Settings =======================

        workgroup = linux.local
        #domain logons = Yes
        netbios name = fileserver
        security = users
        #wins support = Yes
        encrypt passwords = yes

        [homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browsable = No
        guest ok= No
        logon home = \\fileserver\%U

        [everyone]
        path = /data/everyone
        read only = no
        browseable = yes

        [dump]
        path = /data/dump
        writable = yes
        read only = no
        browseable = yes
I added a few users like:
Code:
[root@linuxsvr]# useradd -d /home/acct -s /bin/false john
[root@linuxsvr]# passwd john

Changing password for user john.
----------------------------------------
[root@linuxsvr samba]# smbpasswd ľa john

New SMB password:

Retype new SMB password:

Added user john.

My Samba Fileserver is running on 192.168.0.4 and is reachable through its DNS-name 'fileserver'.
When I try RUN: \\fileserver or \\192.168.0.4 and log in via john:john I see the folders john, temp and everyone. But I cannot access.
Also, via the 'map network drive' wizard it fails to open any samba folder. (see attachment)

What Am I doing wrong?

Thanks in advance
Attached Thumbnails
Click image for larger version

Name:	Knipsel.JPG
Views:	12
Size:	152.1 KB
ID:	1164  
 
Old 08-04-2009, 03:58 PM   #2
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Try running testparm - I see at least one misspelled word in your config file. You should probably make the directories browseable?
 
Old 08-04-2009, 04:06 PM   #3
laurens
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pentode View Post
Try running testparm - I see at least one misspelled word in your config file. You should probably make the directories browseable?
Thanks for your reply. I tried that, met all options browseable=yes but the problem persists. Possibly it's a problem with permissions.
The strange thing is, I can nowhere find the samba folders on the Linux samba server; where should they be ?
Thx
 
Old 08-04-2009, 04:24 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,761
Blog Entries: 14

Rep: Reputation: 267Reputation: 267Reputation: 267
What are the permissions for /data and its subdirectories? Did you try working through the examples at http://us1.samba.org/samba/docs/man/...de/simple.html ? See in particular Procedure 1.3 parts 4,5 and 6...
 
Old 08-04-2009, 05:18 PM   #5
laurens
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mostlyharmless View Post
What are the permissions for /data and its subdirectories? Did you try working through the examples at http://us1.samba.org/samba/docs/man/...de/simple.html ? See in particular Procedure 1.3 parts 4,5 and 6...
Great. I read your walktrough and it works, perfect... only for my root:root ; others don't work?
I tried useradd, gave password, tried with or without adding to group but unfortunatly.. Any ideas ?
 
Old 08-05-2009, 03:15 AM   #6
laurens
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 15
No one ?
 
Old 08-05-2009, 03:47 AM   #7
Amy84
LQ Newbie
 
Registered: Aug 2009
Location: Netherlands
Distribution: CentOS 5.3
Posts: 27

Rep: Reputation: 15
I experienced the same problem yesterday. All dough I haven't been able to fixed it yet. I did noticed the following.

I did add smbusers the same way you did. But when I open my smbpasswd with vi it didn't actually add my new user. Even dough it told me it was added successfully.

I'm still trying to figure out what the problem is, so any suggestions...

But perhaps you want to check you own file.
 
Old 08-05-2009, 04:47 AM   #8
laurens
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Amy84 View Post
I experienced the same problem yesterday. All dough I haven't been able to fixed it yet. I did noticed the following.

I did add smbusers the same way you did. But when I open my smbpasswd with vi it didn't actually add my new user. Even dough it told me it was added successfully.

I'm still trying to figure out what the problem is, so any suggestions...

But perhaps you want to check you own file.
Hi, also tried with add smbuser and; like you, when view the smbpasswd file it was also empty..! On the other hand, it worked with root:root and obviously that's not in the smbpasswd file neither !
So who explains to US ?

Last edited by laurens; 08-05-2009 at 04:49 AM.
 
Old 08-05-2009, 05:58 AM   #9
Amy84
LQ Newbie
 
Registered: Aug 2009
Location: Netherlands
Distribution: CentOS 5.3
Posts: 27

Rep: Reputation: 15
My colleague and I looked further in to it and found the following.

We had another smbpasswd file located in: usr/private, so we thought smb.conf might be looking at the wrong place.

In smb.conf we change the following in [global]:

smb passwd file = etc/samba/smbpasswd

After doing so we again tried to add a user:

smbpasswd -a user

This worked, and more we finally were able to connect from windows.

I hope this will work for you as well.
 
Old 08-05-2009, 06:38 AM   #10
laurens
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 15
That worked! Thanks!
 
Old 08-05-2009, 03:38 PM   #11
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,761
Blog Entries: 14

Rep: Reputation: 267Reputation: 267Reputation: 267
Glad you got it fixed. BTW, some of us aren't here everyday, all day, sorry I didn't get back to you faster.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Acccess Samba-3 Share on WinXP jsun9 Linux - Software 9 07-21-2004 01:08 PM
winxp can't access my samba share?? andrewlkho Linux - Software 2 08-29-2003 06:00 PM
Samba print share from RH9 to WinXP nick_uk Linux - Software 5 08-11-2003 09:41 AM
Samba print share from RH9 to WinXP nick_uk Linux - Software 0 07-30-2003 10:19 AM
WinXP samba share - permissions? armstrj Linux - General 0 04-08-2002 04:40 AM


All times are GMT -5. The time now is 10:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration