Skip to content

edilaic/Closure

Repository files navigation

#!/bin/bash

# if on volund set PATH
# PATH=/usr/swww/bin:$PATH

inst="iristestofalonglogin"
full="iristest"
all="$full $inst"

PASSWD=passwd
for i in $all; do closeautomapentry $i; closeamdmapentry $i; closeexportsentry $i; done

for i in $inst; do closegroupentry $i; closenetgroupentry $i; done

for i in $inst; do co -l passwd.closed; ypmatch $i passwd >> passwd.closed; ci -u -m"closing $i ($USER)" passwd.closed; done

for i in $inst; do sed -i "/^$i:/d" $PASSWD; done

################# --- do not run `passwd` command on actual system!

# for i in $full; do echo "changing shell for $i"; echo "/usr/sww/share/etc/expired" | passwd -r nis -e $i; sleep 3; done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published