force user no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Medium
|
Dave Chiluk | ||
Trusty |
Fix Released
|
Medium
|
Dave Chiluk |
Bug Description
[Impact]
* Users are no longer able to use the force user or force group options in the smb.conf. This can prevent users from accessing shares without first having to login with a valid login.
[Test Case]
1. Create a directory /tmp/ubuntu
2. chown ubuntu:ubuntu /tmp/ubuntu
3. Add a section to the smb.conf like so.
[Ubuntutest]
comment = Ubuntutest
path = /tmp/ubuntu
browseable = yes
read only = no
guest ok = yes
force user = ubuntu
4. Make sure the ubuntu user has access to the directory from the server.
5. Attempt to access the share
6. Create a file
7. Verify the file is owned by ubuntu.
*Note: this does not seem to be testable from the samba-client command line tool as it succeeds both before and after the patch.
[Regression Potential]
* Minimal. The fix is to use vuser->session_info instead of conn->session_info, when checking permissions. This seems like it should be fairly isolated to the initial permissions checks.
[Other Info]
* Pretty straightforward cherry-pick of upstream solution.
_______
There is nasty regression bug in samba 4.1.6
That prevents the use of the "force user" option.
https:/
It has been fixed in 4.1.7.
For now I installed samba from: ppa:linux-
In order to get things working again.
Gérald
description: | updated |
Changed in samba (Ubuntu): | |
assignee: | nobody → Dave Chiluk (chiluk) |
tags: | added: cts |
Changed in samba (Ubuntu): | |
importance: | Undecided → Medium |
Changed in samba (Ubuntu Trusty): | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Dave Chiluk (chiluk) |
description: | updated |
description: | updated |
Changed in samba (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
Here's the commit with magic we are looking for.