Explorar el Código

adjusted provison.pl to exlcude nobody user from becoming admin

tags/release-00
gashapwn hace 3 años
padre
commit
b778d6eaf3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      perl-script/provision.pl

+ 1
- 1
perl-script/provision.pl Ver fichero

@@ -10,7 +10,7 @@ my $admin_un;


# Check /etc/passwd for the username created during # Check /etc/passwd for the username created during
# installation # installation
if( ($admin_un) = `tail /etc/passwd` =~ /([^:]+):[^:]+:[0-9]{4,}/){
if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:]+):[^:]+:[0-9]{4,}/){
printf("admin user will be set to %s\n", $admin_un); printf("admin user will be set to %s\n", $admin_un);
}else{ }else{
die "create a non-root user & set user passsword before running this script." die "create a non-root user & set user passsword before running this script."


Cargando…
Cancelar
Guardar