LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-04-2020, 11:38 AM   #1
plutoz
LQ Newbie
 
Registered: Mar 2020
Posts: 2

Rep: Reputation: Disabled
Issues with Samba permissions since switching to Tumbleweed


I'm not really sure if I should post this here as it's more of a Samba question than an OpenSUSE question but I'm stuck and don't know what to try next.

I had a fully working home file server running OpenSUSE Leap 15.x which I recently had to reinstall due to (what I think was) a SSD drive failure. It just stopped booting up one day. Rather than invest a lot of time trying to recover I started from scratch by installing Tumbleweed on a new SSD. I've noticed over the past few years there seems to be more packages available for Tumbleweed than for LEAP.

Anyway, I can still access the Samba config file smb.conf on my old OS drive and can see that it is set up identically, which is why I can't figure out why I'm having permissions issues accessing Samba shared folders from other PCs.

The users have all had their samba password set and can authenticate / see their home directory etc so there is no issue there.

Basically what is happening is if I share a folder under /mnt say it can't be accessed even though the permissions for the folder are set to drwxrwxr-x so I should be able to read the contents at minimum.

If I create and share a folder with the same permissions under /tmp however, I can access it just fine *if* I set the ownership of folder to the user who is accessing it. Any other user, even ones in the same group can't access it.

I don't recall having this issue with Samba on my old server.

The permissions of the parent folders (/mnt and /tmp) are both default (drwxr-xr-x owned by root:root).

I'm not clear if something has changed with the way Tumbleweed handles permissions, or it's implementation of Samba but I'm really getting frustrated.

Here is the portion of my smb.conf for the two folders

Quote:
[test2]
writeable = yes
public = yes
path = /tmp/test2
directory mode = 664
create mode = 664

[test3]
writeable = yes
public = yes
path = /mnt/test3
directory mode = 664
create mode = 664
Both are empty folders (no drive mounting at that location)

test2 can be accessed (as long as the user accessing it is the owner). test3 cannot be accessed no matter what I do.

Appreciate any feedback.
 
Old 03-05-2020, 02:12 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Urghh. I'm no expert here, but I seem to remember that samba has several (three) protocol versions. Easy access was with SMB1. As a guess (and a long shot) this might have changed in tumbleweed as compared to leap. A comparison here might help you (or any way to switch between protocols and test things).
 
Old 03-07-2020, 07:52 AM   #3
plutoz
LQ Newbie
 
Registered: Mar 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Well I seem to have got it working strangely enough by deleting the user accounts and re-adding them. I had initially created the user accounts through Webmin and the second time around I did it from the command line. The only difference I can see is using Webmin they had User ID 50x and from the command line are 100x. Weird.
 
Old 03-07-2020, 11:55 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Yeah, bullseye. AFAIR tumbleweed changed the userid to start with >=1000 while it in the good old times (and leap?) started with 500 and up.

Nasty trap. I'm glad you could solve that. Please mark the thread as solved in case somebody else seeks a solution .

Last edited by JZL240I-U; 03-09-2020 at 07:16 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: openSUSE Tumbleweed to Soon Switch to OpenSSL 1.1 by Default, Samba 4.7 Lands LXer Syndicated Linux News 0 10-28-2017 02:39 PM
LXer: Switching to Linux since Microsoft cuts XP support LXer Syndicated Linux News 0 04-27-2014 06:20 AM
[SOLVED] Issues with permissions since switching to 10.04 Nizzok Linux - Hardware 2 05-19-2010 05:16 AM
Since Switching To 9.3 I've Got Nothing But Problems zhuangshi SUSE / openSUSE 7 05-06-2005 09:54 AM
[Samba] Problems since update to samba 3 ffred Linux - Networking 6 01-02-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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