94c6f8
diff --git a/sshd.c b/sshd.c
94c6f8
--- a/sshd.c
94c6f8
+++ b/sshd.c
6cf9b8
@@ -1701,6 +1701,10 @@ main(int ac, char **av)
5bd5aa
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
51f5c1
 	    cfg, &includes, NULL);
5bd5aa
 
5bd5aa
+	/* 'UsePAM no' is not supported in Fedora */
5bd5aa
+	if (! options.use_pam)
5bd5aa
+		logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
5bd5aa
+
5bd5aa
 	/* Fill in default values for those options not explicitly set. */
def1de
 	fill_default_server_options(&options);
def1de
 
94c6f8
diff --git a/sshd_config b/sshd_config
94c6f8
--- a/sshd_config
94c6f8
+++ b/sshd_config
94c6f8
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
5bd5aa
 # If you just want the PAM account and session checks to run without
5bd5aa
 # PAM authentication, then enable this but set PasswordAuthentication
5bd5aa
 # and ChallengeResponseAuthentication to 'no'.
5bd5aa
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
5bd5aa
+# problems.
51f5c1
 #UsePAM no
5bd5aa
 
94c6f8
 #AllowAgentForwarding yes