Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/bash
for i in $(cat /etc/passwd | cut -d ":" -f 1,3)
do
user=$(echo $i | cut -d ":" -f1)
uid=$(echo $i | cut -d ":" -f2)
if [[ $uid -gt 499 && $uid -lt 65534 ]]; then
# Do something with user
echo $user
fi
done
#!/bin/bash
for i in $(cat /etc/shadow | cut -d ":" -f 1,5)
do
user=$(echo $i | cut -d ":" -f1)
pwdage=$(echo $i | cut -d ":" -f2)
if [[ $pwdage = 90 ]; then
passwd -x 365 $user
fi
done
#!/bin/bash
for i in $(more /etc/shadow | cut -d ":" -f 1,5)
do
user=$(echo $i | cut -d ":" -f1)
pwdage=$(echo $i | cut -d ":" -f2)
if [[ $pwdage = 90 ]; then
passwd -x 365 $user
fi
done
#!/usr/bin/perl
use strict;
use warnings;
open(PASSWD, "/etc/passwd") or die "Can't open /etc/passwd $!";
while (<PASSWD>) {
my ($user, $expiry) = (split ':')[0,1];
print "passwd -x 365 $user\n") if $expiry == 90;
# system("passwd -x 365 $user") if $expiry == 90;
}
close(PASSWD);