LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2006, 12:05 AM   #1
ILikeVoltron
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Samba not working as intended. Private / Public share's


My current smb.conf file.
Code:
[global]
workgroup = WORKGROUP
netbios name = DEATHSTAR
security = user
passdb backend = tdbsam:/etc/samba/private/passdb.tdb
;guest account = nobody
;wins server = 192.168.1.1
[Private]
comment = Private share
path = /home/pub
guest ok = no
read only = no
[Public]
comment = Public share
path = /home/pub/uploads/public
read only = no
guest ok = yes
guest only = yes
Basically what we have here are two shares, a private and public one. Private should be forced to login with a valid account, while Public should be read/write by everybody including people who do not login.

Overall it seems like I've had the same .conf work multiple diffrent ways, sometimes I'm forced to login, other times my Private share requires no longin at all. I'm quite confused about all of this.
 
Old 03-12-2006, 01:58 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
It may be one of two things Windows may be remmebering th epassword and username and logging you on to the share. OR WinXP will try to pass the current username/password combo that a user is logged on under on the XP machine so if that username/pass is the same as for the private share it may be autologging you in.
 
Old 03-12-2006, 02:24 AM   #3
ILikeVoltron
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by scheidel21
It may be one of two things Windows may be remmebering th epassword and username and logging you on to the share. OR WinXP will try to pass the current username/password combo that a user is logged on under on the XP machine so if that username/pass is the same as for the private share it may be autologging you in.
The login password combination I am using for my share is not the same as my login for WinXP.
 
Old 03-14-2006, 04:22 PM   #4
ILikeVoltron
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I added this to [global] and now it works fine.
Code:
map to guest = Bad Password
 
  


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
public, private, protected...?(C++) name_in_use450 Programming 6 10-07-2008 11:43 PM
public samba share not working for windows clients kilgor Linux - Software 2 12-16-2005 10:32 AM
ssh public/private keys lord_darkhelmet Linux - Newbie 8 10-29-2005 03:14 PM
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM
Linking Public IP to a Private IP Saints Linux - Networking 0 05-04-2004 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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