diff --git a/CentOS-8-Stream-EC2.ks b/CentOS-8-Stream-EC2.ks
index 00b06b0..7f6c1ce 100644
--- a/CentOS-8-Stream-EC2.ks
+++ b/CentOS-8-Stream-EC2.ks
@@ -101,7 +101,9 @@ EOL
 # make sure firstboot doesn't start
 echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
 
-echo -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
+# centos cloud user
+echo -e 'centos\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
+sed -i 's/name: cloud-user/name: centos/g' /etc/cloud/cloud.cfgecho -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
 
 dnf clean all
 
diff --git a/CentOS-8-Stream-GenericCloud.ks b/CentOS-8-Stream-GenericCloud.ks
index 1b5952a..96345f7 100644
--- a/CentOS-8-Stream-GenericCloud.ks
+++ b/CentOS-8-Stream-GenericCloud.ks
@@ -101,7 +101,9 @@ EOL
 # make sure firstboot doesn't start
 echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
 
-echo -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
+# centos cloud user
+echo -e 'centos\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
+sed -i 's/name: cloud-user/name: centos/g' /etc/cloud/cloud.cfgecho -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
 
 dnf clean all