This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ssh-host-config: "mkpasswd -l -u sshd"; should it be "-d" on domain controller?


consider:

  bash-2.05b$ uname -r; grep mkpasswd /bin/ssh-host-config
  1.5.5(0.94/3/2)
            mkpasswd -l -u sshd | sed -e 's/bash$/false/' >> ${SYSCONFDIR}/passwd

Does "mkpasswd -l" make any sense on a domain controller?

On an NT domain controller I tested 

  mkpasswd -d -u sshd | sed -e 's/bash$/false/' >> /etc/passwd

and "ssh localhost" worked fine after stopping and starting sshd.  The '-d"
option creates a user entry that apparently has the same SID, but
different uid offset.

Using only the "-d" switch on a domain controller would simplify
the cron script I use to automatically rebuild /etc/passwd.

--
thank/regards,
Tom Rodman
pls run for my address:  
  perl -e 'print unpack("u", "1\:6UP\,\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");'


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]