LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-11-2013, 09:21 PM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
Configure who samba uses as guest user


I have an NFS server who exports it's share and the owner as nfsnobody:nfsnobody. The client linux servers mount, and can r/w create perfect. I need that same functionality on windows, so have Samba running but I having issues.

From windows, I can browse to \\ip\share\folder I see the data, but if I right click/create I get permission denied.

I change that folder to 777 permissions on the NFS server and I can then create a file from windows fine, but the user/group is nobody.nobody where I need it to be the nfsnobody user (so it has access).

The samba config looks like this;

Code:
[global]
	guest account = nfsnobody
	log file = /var/log/samba/log.%m
	cups options = raw
	load printers = yes
	server string = Samba Server Version %v
	workgroup = Company
	os level = 20
	security = share 
	passdb backend = tdbsam
	max log size = 50
       guest ok = yes

[data]
	writeable = yes
	guest only = yes
	public = yes
	path = /data
	browsable = yes
I was wondering if the security=share was my problem.

smbusers looks like this:

Code:
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nfsnobody = guest pcguest smbguest
administrator=root
I can workaround by moving everything to 777, but first that's a bad workaround and second, when the linux servers create new folders, there not world writable so the windows servers can't write to them.

Where am I going wrong with my samba config? Also, if I need to include anything else, let me know. Thanks for all read/replies.

Last edited by sir-lancealot; 12-11-2013 at 09:53 PM.
 
Old 12-15-2013, 04:51 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Thread is marked as being [SOLVED] and no solution is present.

@OP: Can you provide the solution so that others can also benefit from it?

Taken off the zero-reply list.
 
  


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 guest share with valid user carlmarshall Linux - Server 7 08-07-2008 05:17 AM
mount samba share as guest user twac Linux - Software 3 06-05-2007 01:55 PM
Samba sharing guest and user(homes) directories monkeyfoo Linux - Networking 4 05-02-2006 02:51 PM
Konqueror and Samba Guest User tvynr Linux - Software 0 04-07-2006 11:17 PM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 09:26 AM

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

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