-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CREATE SCHEMA ftp; | ||
GRANT USAGE ON SCHEMA ftp TO $FTP_DB_USER; | ||
|
||
CREATE TABLE ftp.users ( | ||
userid VARCHAR(30) NOT NULL UNIQUE, | ||
passwd VARCHAR(80) NOT NULL, | ||
uid INTEGER UNIQUE, | ||
gid INTEGER, | ||
homedir VARCHAR(255), | ||
shell VARCHAR(255), | ||
last_accessed TIMESTAMP WITH TIME ZONE | ||
); | ||
GRANT SELECT, UPDATE ON ftp.users TO $FTP_DB_USER; | ||
|
||
CREATE TABLE ftp.groups ( | ||
groupname VARCHAR(30) NOT NULL, | ||
gid INTEGER NOT NULL, | ||
members VARCHAR(255) | ||
); | ||
GRANT SELECT ON ftp.groups TO $FTP_DB_USER; | ||
|
||
CREATE TABLE ftp.login_history ( | ||
userid VARCHAR NOT NULL, | ||
client_ip VARCHAR NOT NULL, | ||
server_ip VARCHAR NOT NULL, | ||
protocol VARCHAR NOT NULL, | ||
login_date TIMESTAMP WITH TIME ZONE | ||
); | ||
GRANT INSERT ON ftp.login_history TO $FTP_DB_USER; |