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