diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-29 14:29:07 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-29 14:29:07 +0000 |
commit | bcb6bf25fa132421672d0782b9bfdb82fd2c6600 (patch) | |
tree | 90e46158b0fed3063dfd752a7f27bd6f49f827da /sftp_server/server.h | |
parent | ddd650b3bd10fa3f2198bc7c63bc75eb3ad0cdc5 (diff) | |
download | libssh-bcb6bf25fa132421672d0782b9bfdb82fd2c6600.tar.gz libssh-bcb6bf25fa132421672d0782b9bfdb82fd2c6600.tar.xz libssh-bcb6bf25fa132421672d0782b9bfdb82fd2c6600.zip |
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
Diffstat (limited to 'sftp_server/server.h')
-rw-r--r-- | sftp_server/server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sftp_server/server.h b/sftp_server/server.h index 866eb70c..1457e81f 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 { |