[SOLVED] guest user = somename broken in recent samba
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Rep:
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...
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
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.
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
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.
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.