LinuxQuestions.org
Visit Jeremy's Blog.
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 08-20-2018, 04:33 PM   #1
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144
Question guest user = somename broken in recent samba


I have a samba config (sanitised)
Code:
[global]
workgroup = MYWG
server string = wonderful file server
netbios name = MYSERV
server role = standalone server
hosts allow = 192.168.1. 127.
security = user
guest account = netuser
map to guest = Bad User
log file = /var/log/samba.%m
max log size = 50
dns proxy = no
[work]
  comment = mystuff
  path = /mymount/mystuff
  public = yes
  only guest = yes
  writable = yes
  printable = no
there is a user netuser who has ownership of all files qnd folders in and including the mystuff directory
in slackware 14.1 this config works fine. in slackware 14.2 with all patches installed files created by smb clients have ownership of nobody and group nogroup
I can use
Code:
force user = someuser
and
Code:
force group = somegroup
and that appears to work, but why does
Code:
guest account = someuser
no longer work ? in the smb.conf-sample it implies it is still valid.
thanks...
 
Old 08-21-2018, 09:30 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
timsoft --

Are you re-sharing an NFS Mounted Directory via SAMBA ?

I ask because I see: path = /mymount/mystuff in your testparm dump.

This can be problematic with SAMBA and NFS having different requirements for permissions and locking and such.

There may be a way around it but I don't want to send an A for a Q you're not asking

-- kjh
 
Old 08-21-2018, 10:58 AM   #3
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Original Poster
Rep: Reputation: 144Reputation: 144
no, /mymount is just a local sata hard drive partition mount point, and the share is one step in so that the end client doesn't see a "lost+found" directory.
 
Old 08-21-2018, 11:30 AM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
gotcha.

I usually do set 'force user' and 'force group' as you showed.

In addition I add 'force create mode' and 'force directory mode' more-or-less taken from Setting up Samba as a Standalone Server.

I wonder ... could the Sticky bit be missing from /mymount/mystuff/ ?

-- kjh
 
Old 08-21-2018, 05:29 PM   #5
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Original Poster
Rep: Reputation: 144Reputation: 144
it sounds like we agree that guest account = accountname does not work - or at least does not work as expected. I'll do some more tests to see if I can omit it entirely , but i'm away tomorrow so will get post back thursday.

I'm not sure about sticky bits though. I had to replace the failed os disk on a slack14.1 server, but the data disks were ok, and as I rebuilt with slack14.2 that was when I got the problem. the mount in question was from a drive that hasn't changed. the partition is mounted by root, but the mystuff folder is owned by netuser, group users with very open permissions (drwxrwxrwx)
I tried looking at samba changelogs but couldn't spot where this behaviour changed.
 
Old 08-23-2018, 12:42 PM   #6
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Original Poster
Rep: Reputation: 144Reputation: 144
after some more testing (I tried with root as the user, which worked, but not reliably for all shares) my conclusion is it (guest user = theuser) is broken, use
force user = theuser
and
force group = thegroup
for each share instead.
 
2 members found this post helpful.
  


Reply

Tags
samba, slackware 14.2



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
[SOLVED] Configure who samba uses as guest user sir-lancealot Linux - Server 1 12-15-2013 04:51 AM
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
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 - Distributions > Slackware

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