File:  [LON-CAPA] / loncom / lcuserdel
Revision 1.1: download - view: text, annotated - select for diffs
Fri Oct 27 23:42:33 2000 UTC (23 years, 7 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
starting program script descriptions for setuid scripts
which allow for adding and deleting users

#!/usr/bin/perl
#
# lcuserdel
#
# Scott Harrison
# October 27, 2000

use strict;

# This script is a setuid script that should
# be run by user 'www'.  It DOES NOT delete directories.
# All it does is remove a user's entries from
# /etc/passwd, /etc/groups, and /etc/smbpasswd.



# Standard input usage
# First line is USERNAME

# Command-line arguments [USERNAME]
# Yes, but be very careful here (don't pass shell commands)
# and this is only supported to allow perl-system calls.

# Security
$ENV{'PATH'}=""; # Nullify path information.
$ENV{'BASH_ENV'}=""; # Nullify shell environment information.


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.