F5F Stay Refreshed Hardware Desktop Understanding Linux Samba access controls can be tricky.

Understanding Linux Samba access controls can be tricky.

Understanding Linux Samba access controls can be tricky.

P
Poyel
Member
134
07-08-2023, 01:12 AM
#1
I attempt to set up Samba shares on Debian. I have defined directories and groups like /home/homeuser with homegroup 710, and shared folders such as sambafolder1 and sambafolder2 under sambauser1 and sambauser2. However, the connections aren't functioning as expected, despite the configuration in the config file and SMB settings. The access issues are noted in the comments, but I'm encountering problems when trying to list users or permissions. It seems the Linux permission system is quite confusing for me.
P
Poyel
07-08-2023, 01:12 AM #1

I attempt to set up Samba shares on Debian. I have defined directories and groups like /home/homeuser with homegroup 710, and shared folders such as sambafolder1 and sambafolder2 under sambauser1 and sambauser2. However, the connections aren't functioning as expected, despite the configuration in the config file and SMB settings. The access issues are noted in the comments, but I'm encountering problems when trying to list users or permissions. It seems the Linux permission system is quite confusing for me.

Z
zMinatoPvP_
Junior Member
46
07-11-2023, 12:21 PM
#2
Review folder permissions carefully. Verify user IDs and group assignments if you plan to grant access to multiple folders—use groups instead of individual users, but remember to adjust write, read, and execute rights accordingly. Checklist: - User ID matches requirements? - Group ID is accurate? - Permissions were confirmed for read/write/execute? Typically, standard users have ID 1000 and group ID 1000 as well. For write access, I often rely on chatgpt to clarify which number corresponds to which permissions. Instead of manual checks, I prefer using Docker or container apps with Samba, or opting for NixOS for simpler setup. I'm also testing open-source solutions like YunHost.
Z
zMinatoPvP_
07-11-2023, 12:21 PM #2

Review folder permissions carefully. Verify user IDs and group assignments if you plan to grant access to multiple folders—use groups instead of individual users, but remember to adjust write, read, and execute rights accordingly. Checklist: - User ID matches requirements? - Group ID is accurate? - Permissions were confirmed for read/write/execute? Typically, standard users have ID 1000 and group ID 1000 as well. For write access, I often rely on chatgpt to clarify which number corresponds to which permissions. Instead of manual checks, I prefer using Docker or container apps with Samba, or opting for NixOS for simpler setup. I'm also testing open-source solutions like YunHost.

B
bplaysmc
Junior Member
10
07-11-2023, 02:02 PM
#3
the permissions setup in linux is quite straightforward—no complicated links or dependencies. basically, each file or folder exists under one user and one group, and access rights are defined by three categories: the user itself, the group, and everyone else. these categories form a three-digit code where the first digit represents user permissions, the second for group permissions, and the third for others. the values indicate allowed actions: +1 for execute, +2 for write, +4 for read. reading a folder grants access to its contents, modifying adds or deletes, and executing lets you explore deeper into the directory structure. samba extends these rules but can sometimes behave differently—like being able to access files without logging in as the owner, or having unexpected group assignments depending on configuration. overall, once you’re logged in, the system usually functions properly unless there are specific setup issues.
B
bplaysmc
07-11-2023, 02:02 PM #3

the permissions setup in linux is quite straightforward—no complicated links or dependencies. basically, each file or folder exists under one user and one group, and access rights are defined by three categories: the user itself, the group, and everyone else. these categories form a three-digit code where the first digit represents user permissions, the second for group permissions, and the third for others. the values indicate allowed actions: +1 for execute, +2 for write, +4 for read. reading a folder grants access to its contents, modifying adds or deletes, and executing lets you explore deeper into the directory structure. samba extends these rules but can sometimes behave differently—like being able to access files without logging in as the owner, or having unexpected group assignments depending on configuration. overall, once you’re logged in, the system usually functions properly unless there are specific setup issues.

L
LOL0
Member
191
07-23-2023, 09:53 PM
#4
I see, you're referring to the proper ownership of rights, owner, and user on the Samba folder. Placing it in the home directory would likely cause issues. I tried setting the same Samba directory under root at /2nd_drive_mount/sambafolder1 with identical permissions, and it functioned correctly there.
L
LOL0
07-23-2023, 09:53 PM #4

I see, you're referring to the proper ownership of rights, owner, and user on the Samba folder. Placing it in the home directory would likely cause issues. I tried setting the same Samba directory under root at /2nd_drive_mount/sambafolder1 with identical permissions, and it functioned correctly there.