LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2013, 07:56 PM   #1
val3xiv
Member
 
Registered: Jun 2007
Location: ita
Distribution: slackware
Posts: 35

Rep: Reputation: 15
Samba4 on Slackware64-current unauthenticated filesharing doesn't work


Hi all.
Does anyone know how I can set my Samba Server for accepting unauthenticated connections from other linux station? I followed many how-tos but every time I mount a Samba shared folder, it asks for a password: I can put any password (also a blank one) and it works, but my goal is to mount the folder without any request.

My smb.conf
Code:
[global]
   workgroup = WORKGROUP
   server string = Abaco Samba Server
   security = user
   map to guest = Bad user
   guest account = val3xiv
   load printers = yes
   printing = cups
   log file = /var/log/samba.%m
   max log size = 50
   wins support = yes
   dns proxy = no 
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   available = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
	public = yes
	guest ok = yes
	writable = no
	printable = yes
	available = yes

[public]
	comment = Public area
	path = /home/ftp/pub
	public = yes
	guest only = no
	guest ok = yes
	writable = yes
	create mask = 0777
	available = yes
	force user = val3xiv
This is what happens when I mount from another linux station

Code:
# smbmount //[IP address of Samba Server]/public /mnt/tmp
Password:
Thanks in advance for any suggest.

val3xiv
 
Old 06-05-2013, 10:24 PM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Using this configuration:

Code:
[global]
	workgroup = MYGROUP
	server string = Samba Server
	security = SHARE
	log file = /var/log/samba.%m
	max log size = 50
	dns proxy = No
	idmap config * : backend = tdb

[public]
	comment = Public Stuff
	path = /home/samba
	read only = No
	guest only = Yes
	guest ok = Yes
I'm able to mount the public share with this command: (without being asked for a password)

Code:
# mount -t cifs -o username=guest,password= //darkstar/public /mnt/tmp
I'm running Slackware 14.0 (samba-3.6.8), not -current, so I don't know if something has changed in Samba in -current. I suppose not...

Here's another thread with useful info:

http://www.linuxquestions.org/questi...-share-933322/
 
Old 06-06-2013, 05:37 PM   #3
val3xiv
Member
 
Registered: Jun 2007
Location: ita
Distribution: slackware
Posts: 35

Original Poster
Rep: Reputation: 15
Hi Diantre.
With Samba4
Code:
security=SHARE
is no longer available.

Anyway with my configuration I can mount Samba share using the command you suggested, I just have to explicitly indicate username (guest) and password (blank).
Both the commands below work
Code:
# smbmount //[IP address of Samba Server]/public /mnt/tmp -o username=guest,password=

# mount -t cifs -o username=guest,password= //[IP address of Samba Server]/public /mnt/tmp
Thanks for putting me on the right way

val3xiv
 
  


Reply

Tags
samba



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
will a nVidia Quadro NVS 4200M work on Slackware64-current? gtludwig Slackware 1 11-20-2012 05:31 AM
[SOLVED] suspend to ram ( sleep) does not work on my Slackware64-current multilib afreitascs Slackware 8 06-26-2012 10:57 PM
Making rhythmbox work in Slackware64 13.1 -current: errors .. (helper script missing) GrapefruiTgirl Slackware 8 08-09-2010 05:08 AM
Slackware64-current doesn't read cd-r disks as well as slack 12.1 does(?) veeall Slackware 2 04-09-2010 06:56 PM
[SOLVED] Slackware64-current don't work pm-suspend but. .. ROXR Slackware 4 02-28-2010 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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