Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: problems setting permissions for sshd Date: Tue, 29 Oct 2002 10:59:12 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harig, Mark A." To: "Marcos Lorenzo" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9TG0sc02629 > > My /etc/group (I modified it): > > all:*:0:0:,S-1-1-0:: > SYSTEM:*:18:18:,S-1-5-18:: > admin:*:544:544:,S-1-5-32-544:: > domadmin:*:512:512:,S-1-5-32-512:: > guests:*:546:546:,S-1-5-32-546:: > users:*:545:545:,S-1-5-32-545:: > domusers:*:513:513:,S-1-5-32-513:: > try changing 'admin' to 'Administrators'. > > Before making the above change now I get the following > strange behaviour: > > 13:12:27 marcos AT MOZART~ id > uid=1003(marcos) gid=512(domadmin) grupos=512(domadmin) > 13:12:29 marcos AT MOZART~ ls -la > Usage: LS [/FrqRdlt1sSvu] [files] > 13:12:37 marcos AT MOZART~ echo $PATH > /bin:/usr/bin:/usr/local/bin:/usr/bin:/sbin:/usr/bin:/usr/sbin > :/usr/local/bin:/c/Perl/bin/:/c/WINNT/system32:/c/WINNT:/c/Archivos de > programa/rksupport:/c/NTRESKIT:/c/NTRESKIT/Perl:/usr/X11R6/bin > 13:12:39 marcos AT MOZART~ which ls > /bin/ls > 13:12:48 marcos AT MOZART~ ls > Usage: LS [/FrqRdlt1sSvu] [files] > 13:12:48 marcos AT MOZART~ /c/NTRESKIT/LS.EXE -la > Usage: LS [/FrqRdlt1sSvu] [files] > > Why it uses /c/NTRESKIT/LS.EXE -la instead of the one that > 'which' says?? > From the 'bash' manual: Bash uses a hash table to remember the full pathnames of executable files to avoid multiple `PATH' searches. A full search of the directories in `$PATH' is performed only if the command is not found in the hash table. It's possible that the 'ls' is picking up a previous invocation of that program that is in /c/NTRESKIT/. try: $ type ls $ hash -r $ ls $ type ls > > I tried to follow the HOWTO sent to the list: > > 1) set the CYGWIN environment variable OK How did you set the CYGWIN environment variable? Did you set it at the shell prompt, did you use an initialization script (that it, ~/.profile, ~/.bash_profile, or ~/.bashrc), or did you use the Control Panel's System applet? Try closing all shell windows/prompts and then use the Control Panel's System applet to set CYGWIN, and then restart your shell prompt. --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/