Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

99-img-check.sh Fails to pass the check environment #180

Open
ghost opened this issue Aug 18, 2023 · 3 comments
Open

99-img-check.sh Fails to pass the check environment #180

ghost opened this issue Aug 18, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 18, 2023

Script address:https://github.com/digitalocean/marketplace-partners/blob/master/scripts/99-img-check.sh
[FAIL] User xxx has a password set on their account. Only system users are allowed on the image.

[FAIL] User xxx has a password set on their account. Only system users are allowed on the image.

[FAIL] User root has a password set on their account.
ubuntu:20.04.6 LTS (Focal Fossa)
I want to put on the marketplace, run the script according to your requirements and get an error. How should I deal with this error? The directory in which the script is to be executed.
Thank you.

@alexeigutium
Copy link
Contributor

remove root password, delete not system users
also you can run https://github.com/digitalocean/marketplace-partners/blob/master/scripts/90-cleanup.sh. Please try and response with results.

Regards

@ghost
Copy link
Author

ghost commented Aug 31, 2023

Like this?
cat /etc/shadow
root:*:18694:0:99999:7:::

90-cleanup.sh 99-img-check.sh
Can I ask you one more question? Where are the two scripts to be executed on the server?

@stefanpejcic
Copy link

Had the same problem:

root@droplet:~# passwd --delete root
passwd: password expiry information changed.

root@droplet:~# grep root /etc/shadow
root::19906:0:14600:14:::

root@droplet:~# chage -l root
Last password change					: Jul 02, 2024
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 14600
Number of days of warning before password expires	: 14
root@droplet:~# 

it seems to work only when I edit manuallt and add *:

root@droplet:~# grep root /etc/shadow
root:*:19906:0:14600:14:::

this is same as #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants