Displaying 3 results from an estimated 3 matches for "sshd_in_sam".
2002 Jul 03
1
[PATCH]: Change Cygwin contrib files to better support PrivSep
...1.5
diff -u -p -r1.5 ssh-host-config
--- contrib/cygwin/ssh-host-config 12 Apr 2002 17:44:14 -0000 1.5
+++ contrib/cygwin/ssh-host-config 3 Jul 2002 12:29:16 -0000
@@ -18,6 +18,11 @@ progname=$0
auto_answer=""
port_number=22
+privsep_configured=no
+privsep_used=yes
+sshd_in_passwd=no
+sshd_in_sam=no
+
request()
{
if [ "${auto_answer}" = "yes" ]
@@ -90,6 +95,10 @@ do
esac
done
+# Check if running on NT
+_sys="`uname -a`"
+_nt=`expr "$_sys" : "CYGWIN_NT"`
+
# Check for running ssh/sshd processes first. Refuse to do anything while...
2002 Jul 07
1
[PATCH]: Some fixes in contrib/cygwin/ssh-host-config
...+340,7 @@ then
if request "Shall this script create a local user 'sshd' on this machine?"
then
dos_var_empty=`cygpath -w /var/empty`
- net user sshd /add /fullname:"sshd privsep" "/HOMEDIR:$dos_var_empty" > /dev/null 2>&1 && sshd_in_sam=yes
+ net user sshd /add /fullname:"sshd privsep" "/homedir:$dos_var_empty" /active:no > /dev/null 2>&1 && sshd_in_sam=yes
if [ "$sshd_in_sam" != "yes" ]
then
echo "Warning: Creating the user 'sshd' faile...
2003 Nov 05
0
[PATCH] contrip/cygwin: Reworking the installation support
...if request "Shall privilege separation be used?"
+ if request "Should privilege separation be used?"
then
privsep_used=yes
grep -q '^sshd:' ${SYSCONFDIR}/passwd && sshd_in_passwd=yes
net user sshd >/dev/null 2>&1 && sshd_in_sam=yes
- if [ "$sshd_in_passwd" != "yes" ]
+ if [ "${sshd_in_passwd}" != "yes" ]
then
- if [ "$sshd_in_sam" != "yes" ]
+ if [ "${sshd_in_sam}" != "yes" ]
then
echo "Warning: The fo...