From: Ronnie Sahlberg Date: Mon, 17 Sep 2007 03:01:16 +0000 (+1000) Subject: add documantation of additional requirements for FTP so that users can X-Git-Tag: tevent-0.9.20~348^2~2397^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9f936fefe67c98f565c5251879fbf726432ffb8;p=thirdparty%2Fsamba.git add documantation of additional requirements for FTP so that users can log in and access files using the AD username/password (This used to be ctdb commit 679e125770247fc24dfb14b5781d44f639457ecd) --- diff --git a/ctdb/web/ftp.html b/ctdb/web/ftp.html index 2f94a73eba4..b1d1d173624 100644 --- a/ctdb/web/ftp.html +++ b/ctdb/web/ftp.html @@ -25,6 +25,44 @@ Disable vsftpd in chkconfig so that it does not start by default. Instead CTDB w chkconfig vsftpd off +

PAM configuration

+PAM must be configured to allow authentication of CIFS users so that the ftp +daemon can authenticate the users logging in. + +Make sure the following line is present in /etc/pam.d/system-auth +
+auth        sufficient    pam_winbind.so use_first_pass
+
+
+If this line is missing you must enable winbind authentication by running +
+authconfig  --enablewinbindauth --update
+
+ +

Default shell

+To log in to the ftp server, the user must have a shell configured in smb.conf. + +Add the following line to the globals section of /etc/samba/smb.conf +
+	template shell = /bin/bash
+
+ +

Home directory

+FTP users must have a home directory configured so they can log in. +Configure samba to provide home directories for domain users. These home +directories should be stored on shared storage so they are available from +all nodes in the cluster.
+ + +A simple way to create homedirectories are to add +
+	template homedir = /<shared storage>/homedir/%D/%U
+
+to /etc/samba/smb.conf .
+ +The homedirectory must exist or the user will not be able to log in with FTP. + +

Events script

The CTDB distribution already comes with an events script for vsftp in the file /etc/ctdb/events.d/40.vsftpd