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

Bug #1748267 reported by Andreas Hasenack on 2018-02-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
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.

Andreas Hasenack (ahasenack) wrote :

Tests adapted, and working in debian. Salsa MP:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers