#!/usr/local/bin/perl # edit_passwd_shadow.cgi # Edit a NIS password/shadow files entry require './nis-lib.pl'; use Time::Local; &ReadParse(); &ui_print_header(undef, $text{'passwd_title'}, ""); $mode = ($0 =~ /passwd_shadow_full.cgi$/ ? 2 : $0 =~ /passwd_shadow.cgi$/ ? 1 : 0); # Build list of available shells @shlist = ("/bin/sh", "/bin/csh", "/bin/false"); open(SHELLS, ") { s/\r|\n//g; s/^\s*#.*$//; push(@shlist, $_) if (/\S/); } close(SHELLS); ($t, $lnums, $passwd, $shadow) = &table_edit_setup($in{'table'}, $in{'line'}, ':'); print "
\n"; &ui_print_footer("edit_tables.cgi?table=$in{'table'}", $text{'tables_return'}, "", $text{'index_return'});