LinuxQuestions.org
Visit Jeremy's Blog.
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 10-02-2012, 08:00 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Configuring an Open Samba Share


I was wondering what I need to do in order to allow anyone on my LAN to access my Linux (Debian) server which is trying to share out the /share directory.

I want to make an open share w/o authentication so I've done the following:

Code:
fs2:/# mkdir /share
fs2:/# chown root:root /share
fs2:/# chmod 777 /share
Now I focus on the smb.conf file:

Code:
####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
   security = share
As you can see I changed the security parameter to 'share' so not ever user needs a UNIX login.

My share parameters are below:

Code:
[share]
path = /share
comment = Build Share
read only = no
guest ok = yes
create mask = 600
directory mask = 700
What am I missing? It keeps asking for a login
 
Old 10-02-2012, 08:20 AM   #2
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Try to restart samba
$ service samba restart

OR

Open terminal and type
shares-admin
Now add the folder you wanted share using add button. Reverse check the path of the folder in shares-admin window.
Now click on close and try to open it.
 
Old 10-02-2012, 08:40 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Question

Quote:
Originally Posted by pavi_kanetkar View Post
Try to restart samba
$ service samba restart

OR

Open terminal and type
shares-admin
Now add the folder you wanted share using add button. Reverse check the path of the folder in shares-admin window.
Now click on close and try to open it.
After any change in Samba, I restart the service using:

Code:
fs2:/# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
The problem isn't the service but authentication parameters according to the logs in Samba:

Code:
[2012/10/02 08:52:13.008488,  1] smbd/service.c:678(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
 
Old 10-02-2012, 09:59 AM   #4
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
So The problem is fixed or not?

If it is not fixed,
Reinstall samba once.

Have you used other method (Using shares-admin)?
 
Old 10-02-2012, 10:10 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
No I still can't access the share. Samba is working fine so I see no reason to reinstall it. I just need assistance with configuring the share authentication for Samba on Linux. There's no GUI on a server to bring up any graphical windows. This should all work from with in the /etc/samba/smb.conf.
 
Old 10-03-2012, 01:04 AM   #6
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
have you tried to remove directory mask and put
create mask = 0765
$ service smb restart
 
Old 10-03-2012, 03:20 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
have you checked your selinux?

and if it is asking for login prompt

have a look at this

Create samba share

Last edited by deep27ak; 10-03-2012 at 03:26 AM.
 
  


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
samba and windows: can not open user share dainsane1 Linux - Networking 4 11-13-2009 03:32 PM
windows client prompted for pw on open Samba share RedPlanet Linux - Software 1 11-07-2006 09:12 AM
Can't open playlists using Amarok from a remote samba share raccoonone Ubuntu 4 09-19-2006 03:00 PM
Samba share doesnt open in XP WhiskeyTangoFoxtrot Linux - Software 6 03-19-2006 06:34 AM
wide-open samba share hoover93 Linux - Software 3 09-15-2004 01:41 PM

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

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