Make port more verbose about creating users and what users to remove if
no longer necessary. PR: 28179 Submitted by: Rob Simmons <rsimmons@beanweevil.wlcg.com>
This commit is contained in:
parent
10e9a833f5
commit
53704a2b4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56484
16
ftp/vsftpd/pkg-deinstall
Normal file
16
ftp/vsftpd/pkg-deinstall
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ "$2" != "POST-DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
USER=vsftpd
|
||||
|
||||
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
echo "To delete FTP user permanently, use 'pw userdel ${USER}'"
|
||||
echo "Don't do this if you're using FreeBSD's anonymous FTP server"
|
||||
fi
|
||||
|
||||
exit 0
|
@ -21,6 +21,7 @@ foreach $group (@groups) {
|
||||
if ($result) {
|
||||
die "Failed to add group $group as gid $gids{$group}\n";
|
||||
}
|
||||
print "Added group $group for vsftpd\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,6 +34,7 @@ foreach $user (keys %users) {
|
||||
if ($result) {
|
||||
die "Failed to add user $user as uid $uids{$user}\n";
|
||||
}
|
||||
print "Added user $user for vsftpd\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user