LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-11-2005, 12:05 PM   #1
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Rep: Reputation: 15
Samba public share


Hi, Can someone please help me?

I am trying to setup a samba server with a share where everyone and anyone can copy and save files. The problem is that when ever i try to access it i get asked for a username and password. I've even chanced the guest account to root, but still no use.

I have been struggling with this thing fr a couple of hours now, and don't know what I'm doing wrong.

Here is my smb.conf file:

[global]

workgroup = NIP
server string = Linux Server
netbios name = neptune
encrypt passwords = yes
log file = /var/log/samba-log.%m
max log size = 50
os level = 65
preferred master = yes
wins proxy = yes
security = SHARE
hosts allow = 10.0.0. 127.

guest account = root


[public]

path= /mnt/data
comment = public
read only = No
public = yes
browseable = yes
guest ok = yes

Any help would be greatly appreciated.
 
Old 11-11-2005, 01:54 PM   #2
gizmobay
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
You trying to share with other Linux boxes or with a Windows box?
 
Old 11-11-2005, 02:39 PM   #3
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Original Poster
Rep: Reputation: 15
Windows box's - Mostly XP and 2k
 
Old 11-11-2005, 02:57 PM   #4
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
did you add it to smbpasswd?
 
Old 11-11-2005, 03:02 PM   #5
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Original Poster
Rep: Reputation: 15
I did, I even added a new user named smbguest, but still i get asked for a username and password. I am using FC2 - if that helps?
 
Old 11-11-2005, 07:13 PM   #6
gizmobay
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
I would save a copy of your smb.config. From there, I would take the default smb.confg and add

[public]

path= /mnt/data
comment = public
read only = No
public = yes
browseable = yes
guest ok = yes

Then replace the old smb with the edited default

Once you get that working, I'd tweak the smb file little by little until it meets your needs. This is what I did to make mine work after hours of trying to start from scratch with an smb file.
 
Old 11-11-2005, 09:22 PM   #7
wym
LQ Newbie
 
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26

Rep: Reputation: 15
Try this,

[global]
# guest account = root
security = share

and then, /mnt/data should be at least drwxr-xr-x
 
Old 11-12-2005, 03:24 AM   #8
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Original Poster
Rep: Reputation: 15
Angry

Thanks for the reply, but i still get a username and password box when I try to connect.
I'm frustrated I feel like formating this box and loading RH9
 
Old 11-12-2005, 04:50 AM   #9
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Here is an sample from "Samba 3 by Example". If you have swat installed then you may have this book on your computer at:
http://localhost:901/swat/help/Samba...html#id2531126
I highlighted a couple lines. The force group and force user options are what I think that you are missing. You don't want the user/group to be root. It is common to use the user "nobody" to remove many permissions.

Code:
Example 2.2. Charity Administration Office smb.conf File
# Global Parameters
  [global]
   workgroup = MIDEARTH
   security = SHARE
   printing = CUPS
   printcap name = CUPS
   disable spoolss = Yes
   show add printer wizard = No
   wins support = yes
  [FTMFILES]
   comment = Funds Tracking & Management Files
   path = /data/ftmfiles
   read only = No
   force user = abmas
   force group = office
   guest ok = Yes
   nt acl support = No
  [office]
   comment = General Office Files
   path = /data/officefiles
   read only = No
   force user = abmas
   force group = office
   guest ok = Yes
   nt acl support = No
  [printers]
   comment = Print Temporary Spool Configuration
   path = /var/spool/samba
   printable = Yes
   guest ok = Yes
   use client driver = Yes
   browseable = No
 
Old 11-14-2005, 07:54 PM   #10
martli
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
you have to change the security setting to either
security=user or security=server
 
  


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
SAMBA Public Share Folder Echo Kilo Linux - Software 3 06-17-2008 01:32 AM
Samba Public Share Problem mundz Linux - Software 1 05-11-2005 11:02 AM
Network public samba share Imaboyo Linux - Newbie 0 08-14-2004 02:14 PM
public share in samba brasuca Linux - Software 2 05-10-2004 09:07 AM
Public Samba share mdpowell Linux - Software 1 03-13-2002 10:41 AM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration