[Bug 1416906] Re: force user no longer works
Dave Chiluk
1416906 at bugs.launchpad.net
Wed Feb 11 21:57:34 UTC 2015
** Description changed:
+ [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. You should not be prompted for a username and password
+ 7. Create a file
+ 8. Verify the file is owned by ubuntu.
+
+ [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://bugzilla.samba.org/show_bug.cgi?id=9878
It has been fixed in 4.1.7.
For now I installed samba from: ppa:linux-schools/backports
In order to get things working again.
Gérald
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1416906
Title:
force user no longer works
Status in samba package in Ubuntu:
In Progress
Status in samba source package in Trusty:
In Progress
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. You should not be prompted for a username and password
7. Create a file
8. Verify the file is owned by ubuntu.
[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://bugzilla.samba.org/show_bug.cgi?id=9878
It has been fixed in 4.1.7.
For now I installed samba from: ppa:linux-schools/backports
In order to get things working again.
Gérald
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1416906/+subscriptions
More information about the Ubuntu-sponsors
mailing list