From bcb6bf25fa132421672d0782b9bfdb82fd2c6600 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 29 Aug 2005 14:29:07 +0000 Subject: the server now does the chroot and change uid. There is also an option "nopassword" for ftp users. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@25 7dcaeef0-15fb-0310-b436-a5af3365683c --- sftp_server/server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sftp_server/server.h') diff --git a/sftp_server/server.h b/sftp_server/server.h index 866eb70..1457e81 100644 --- a/sftp_server/server.h +++ b/sftp_server/server.h @@ -1,6 +1,9 @@ /* server.h */ /* headers for the sftp server project */ int parse_config(char *file); +char *user_chroot(char *user); +char *user_uid(char *user); +int user_nopassword(char *user); typedef struct list_struct { struct list_struct *next; @@ -17,6 +20,7 @@ struct group { char *chroot; char *uid; char *gid; + int nopassword; }; struct dir { -- cgit