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]

RE: problems setting permissions for sshd


> 
> 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@MOZART~ id
> uid=1003(marcos) gid=512(domadmin) grupos=512(domadmin)
> 13:12:29 marcos@MOZART~ ls -la
> Usage: LS [/FrqRdlt1sSvu] [files]
> 13:12:37 marcos@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@MOZART~ which ls
> /bin/ls
> 13:12:48 marcos@MOZART~ ls
> Usage: LS [/FrqRdlt1sSvu] [files]
> 13:12:48 marcos@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/


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