smbclient-share-access dep8 test should create the user it needs

Bug #1748267 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Low
Andreas Hasenack

Bug Description

The d/t/smbclient-share-access DEP8 test currently assumes there is an ubuntu posix user present on the system. This works for ubuntu, but won't work elsewhere, like in Debian for example:
(...)
Setting password for the ubuntu user
+ + echo secret\nsecret
smbpasswd -s -a ubuntu
Failed to add entry for user ubuntu.
...
cannot create /home/ubuntu/data: Directory nonexistent
+ base64
+ chown ubuntu:ubuntu /home/ubuntu/data
chown: invalid user: ‘ubuntu:ubuntu’
+ cd /home/ubuntu
/tmp/autopkgtest.mxWhuu/tree/debian/tests/smbclient-share-access: 22: cd: can't cd to /home/ubuntu
...
and so on

Fixing this will allow us to submit these new tests to debian and reduce our delta.

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Tests adapted, and working in debian. Salsa MP: https://salsa.debian.org/samba-team/samba/merge_requests/1

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Debian merged the MP, we shall get the changes in the next merge.

Changed in samba (Ubuntu):
status: In Progress → Triaged
Changed in samba (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This is fixed in 4.8.4 which just landed in cosmic.

Changed in samba (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.