RE: problems setting permissions for sshd
On Tue, 29 Oct 2002, Marcos Lorenzo wrote: Harig, Mark A. [EMAIL PROTECTED] wrote [11:21am -0500] HMA Yes, which implies that Marcos Lorenzo should regenerate HMA his /etc/group file from scratch with 'mkgroup', and HMA then edit it to add 'Administrators'. mkgroup for /etc/group and mkpasswd for /etc/passwd then? Ok, I'll try it and then I told you. Thanks everyone m4c. OK. That worked: marcos@MOZART /etc$ for i in * ; do [ -f $i ] chmod 640 $i ; [ -d $i ] chmod 750 $i ; done marcos@MOZART /etc$ d total 600k drwx-- 13 admindomusers 12k Oct 30 12:09 . drwx-- 13 admindomusers 4.0k Oct 29 12:52 .. -rw-r-1 admindomadmin 85k Jul 10 04:28 Muttrc drwxr-x---2 admindomadmin 4.0k Sep 18 11:54 WindowMaker drwxr-x--- 13 admindomadmin 4.0k Sep 18 11:55 X11 drwxr-x---2 admindomadmin 4.0k Sep 18 11:43 apache drwxr-x---2 admindomadmin0 Sep 18 14:10 cron.d -rw-r-1 admindomadmin 1.3k Feb 19 2002 csh.cshrc -rw-r-1 admindomadmin 401 Dec 21 2001 csh.login -rw-r-1 admindomadmin 4.7k Sep 19 19:00 enscript.cfg -rw-r-1 admindomadmin 4.7k Aug 25 23:31 enscript.cfg.default Now my passwd and group files are: marcos@MOZART ~$ cat /etc/passwd all:*:0:0:,S-1-1-0:: system:*:18:18:,S-1-5-18:: admin:*:544:544:,S-1-5-32-544:: domadmin:unused_by_nt/2000/xp:500:512:U-DIT\Administrador,S-1-5-21-462973936-1154566708-996637233-500:/home/Administrador:/bin/bash guest:unused_by_nt/2000/xp:501:514:U-DIT\Invitado,S-1-5-21-462973936-1154566708-996637233-501:/home/Invitado:/bin/bash ivan:unused_by_nt/2000/xp:1004:512:Iván Alonso Gutiérrez,U-DIT\ivan,S-1-5-21-462973936-1154566708-996637233-1004:/home/ivan:/bin/bash lab:unused_by_nt/2000/xp:1005:513:Usuario estándar para las prácticas,U-DIT\lab,S-1-5-21-462973936-1154566708-996637233-1005:/home/lab:/bin/bash marcos:unused_by_nt/2000/xp:1003:512:Marcos Lorenzo de Santiago,U-DIT\marcos,S-1-5-21-462973936-1154566708-996637233-1003:/home/marcos:/bin/bash sshd:unused_by_nt/2000/xp:1079:513:sshd privsep,U-DIT\sshd,S-1-5-21-462973936-1154566708-996637233-1079:/var/empty:/bin/bash marcos@MOZART ~$ cat /etc/group everyone:S-1-1-0:0: system:S-1-5-18:18: domusers:S-1-5-21-462973936-1154566708-996637233-513:513: admin:S-1-5-32-544:544: domadmin:S-1-5-32-512:512: duplicat:S-1-5-32-552:552: guests:S-1-5-32-546:546: copy operators:S-1-5-32-551:551: account operators:S-1-5-32-548:548: print operators:S-1-5-32-550:550: servers operators:S-1-5-32-549:549: users:S-1-5-32-545:545: I added group domadmin as mkgroup didn't show this group (Domain Administrators). But now I when I ssh my machine (sshd runs perfectly) I get the following error: marcos@MOZART ~$ ssh mozart marcos@mozart's password: Permission denied, please try again. and my event log viewer says: sshd : Win32 Process Id = 0xF1 : Cygwin Process Id = 0xF1 : Failed password for illegal user marcos from 163.117.144.225 port 2049 ssh2. Another thing: marcos@MOZART /tmp$ d total 8.0k drwxrwxrwx3 admindomadmin 4.0k Oct 30 12:33 . drwx-- 14 admindomadmin 4.0k Oct 30 12:24 .. drwxr-x---0 system domadmin0 Oct 30 12:33 pepe marcos@MOZART /tmp$ cd pepe/ bash: cd: pepe/: Permission denied marcos@MOZART /tmp$ id uid=1003(marcos) gid=512(domadmin) groups=0(everyone),513(domusers),544(admin),545(users) marcos@MOZART /tmp$ groups domadmin everyone domusers admin users And if I do: marcos@MOZART /tmp$ chmod o+rx pepe/ marcos@MOZART /tmp$ d total 8.0k drwxrwxrwx3 admindomadmin 4.0k Oct 30 12:33 . drwx-- 14 admindomadmin 4.0k Oct 30 12:24 .. drwxr-xr-x2 system domadmin0 Oct 30 12:33 pepe marcos@MOZART /tmp$ cd pepe/ marcos@MOZART /tmp/pepe$ ls marcos@MOZART /tmp/pepe$ d total 4.0k drwxr-xr-x2 system domadmin0 Oct 30 12:33 . drwxrwxrwx3 admindomadmin 4.0k Oct 30 12:33 .. marcos@MOZART /tmp/pepe$ Why I can't cd to this folder if I belong to the group domadmin and I have read and execution permissions? Maybe the two errors above have any relation... but I can't see what's going on. thx, m4c. -- 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/
RE: problems setting permissions for sshd
Vince Hoffman [EMAIL PROTECTED] wrote [11:56am -] VH just making up a group entry is unlikely to work. to get your domain groups VH use mkgroup -d (making sure you are connected to your network.) That doesn't work, I need a group that has GID=512. marcos@MOZART ~$ id uid=1003(marcos) gid=512(domadmin) groups=0(everyone),513(domusers),544(admin),512(domadmin),545(users) marcos@MOZART ~$ ls -ln total 0 drwxr-x---2 1003 512 0 Oct 30 12:05 bin marcos@MOZART ~$ mkgroup -d | grep -i admin Admins. del dominio:S-1-5-21-462973936-1154566708-996637233-512:10512: ^ As you can see the GID that mkgroup returns is 10512 not 512 as I have as my GID. I tried it but with the same results as my last e-mail m4c. -- 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/
RE: problems setting permissions for sshd
Harig, Mark A. [EMAIL PROTECTED] wrote [Yesterday -0500] HMA 1. What filesystem are you running on your disk(s): NTFS or FAT32? OK, I forgot: NTFS HMA HMA 2. What value do you have the environment variable HMA CYGWIN set to in your Control Panel's System applet? CYGWIN = 'ntsec ntea tty', It doesn't matter if I change this to 'ntsec tty', I mean the problem remains. I just followed the HOWTO posted by elfyn mcbratney [EMAIL PROTECTED]. HMA HMA 3. What version of Cygwin are you running? HMA HMA $ uname -r marcos@MOZART ~$ uname -r 1.3.12(0.54/3/2) HMA HMA 4. What version of ssh are you running? HMA HMA $ ssh -V marcos@MOZART ~$ ssh -V OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f Thanks again, m4c. -- 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/
RE: problems setting permissions for sshd
On Tue, 29 Oct 2002, Marcos Lorenzo wrote: If it helps you, my cygcheck is: Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Oct 29 11:40:13 2002 Windows NT Ver 4.0 Build 1381 Service Pack 6 Path: C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\sbin C:\cygwin\bin C:\cygwin\usr\sbin C:\cygwin\usr\local\bin c:\Perl\bin\ c:\WINNT\system32 c:\WINNT c:\Archivos de programa\rksupport c:\NTRESKIT c:\NTRESKIT\Perl C:\cygwin\usr\X11R6\bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `ntsec ntea tty' HOME = `C:\cygwin\home\marcos' MAKE_MODE = `unix' PWD = `/var' USER = `marcos' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/dit (default) = `d:' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/winnt (default) = `c:' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS8032Mb 25% CP CS UN PA FC NTFS_1 d: hd NTFS 11429Mb 42% CP CS UN PA FC NTFS_2 e: cd N/AN/A m: net NTFS 58788Mb 28% CP CSPAmarcos C:\cygwin / system binmode d: /dit system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode c: /winntsystem binmode . /cygdrive userbinmode,cygdrive Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: c:\NTRESKIT\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: c:\NTRESKIT\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll 54k 2002/01/27 C:\cygwin\bin\cygbz21.0.dll 625k 2002/08/09 C:\cygwin\bin\cygcrypto.dll 452k 2002/07/17 C:\cygwin\bin\cygcurl-2.dll 50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 20k 2002/07/17 C:\cygwin\bin\cyghistory5.dll 306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll 929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 23k 2002/06/24 C:\cygwin\bin\cygintl-2.dll 21k 2001/06/20 C:\cygwin\bin\cygintl.dll 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll 45k 2002/02/08 C:\cygwin\bin\cygjbig1.dll 119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll 59k 2002/08/09 C:\cygwin\bin\cygkpathsea-3-3-7.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll 175k 2002/07/22 C:\cygwin\bin\cygpng10.dll 179k 2002/07/22 C:\cygwin\bin\cygpng12.dll 170k 2002/01/21 C:\cygwin\bin\cygpng2.dll 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 127k 2002/07/17 C:\cygwin\bin\cygreadline5.dll 159k 2002/08/09 C:\cygwin\bin\cygssl.dll 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
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 marcosMOZART~ id uid=1003(marcos) gid=512(domadmin) grupos=512(domadmin) 13:12:29 marcosMOZART~ ls -la Usage: LS [/FrqRdlt1sSvu] [files] 13:12:37 marcosMOZART~ 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 marcosMOZART~ which ls /bin/ls 13:12:48 marcosMOZART~ ls Usage: LS [/FrqRdlt1sSvu] [files] 13:12:48 marcosMOZART~ /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/
Re: problems setting permissions for sshd
On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote: 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:: the sid must be in the second field, like SYSTEM:S-1-5-18:18: None:S-1-5-21-2127391503-1594901184-99485923-513:513: Pierre -- 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/
RE: problems setting permissions for sshd
Yes, which implies that Marcos Lorenzo should regenerate his /etc/group file from scratch with 'mkgroup', and then edit it to add 'Administrators'. -Original Message- From: Pierre A. Humblet [mailto:pierre.humblet;ieee.org] Sent: Tuesday, October 29, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: Re: problems setting permissions for sshd On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote: 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:: the sid must be in the second field, like SYSTEM:S-1-5-18:18: None:S-1-5-21-2127391503-1594901184-99485923-513:513: Pierre -- 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/ -- 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/
Re: problems setting permissions for sshd
Pierre A. Humblet [EMAIL PROTECTED] wrote [10:59am -0500] PAH On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote: PAH PAH PAHMy /etc/group (I modified it): PAH PAHall:*:0:0:,S-1-1-0:: PAHSYSTEM:*:18:18:,S-1-5-18:: PAHadmin:*:544:544:,S-1-5-32-544:: PAHdomadmin:*:512:512:,S-1-5-32-512:: PAHguests:*:546:546:,S-1-5-32-546:: PAHusers:*:545:545:,S-1-5-32-545:: PAHdomusers:*:513:513:,S-1-5-32-513:: PAH PAH the sid must be in the second field, like PAH SYSTEM:S-1-5-18:18: PAH None:S-1-5-21-2127391503-1594901184-99485923-513:513: I just ran mkpasswd -g /etc/group and I got that I only changed a few names, but not the order of fields. m4c. -- 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/
RE: problems setting permissions for sshd
Harig, Mark A. [EMAIL PROTECTED] wrote [11:21am -0500] HMA Yes, which implies that Marcos Lorenzo should regenerate HMA his /etc/group file from scratch with 'mkgroup', and HMA then edit it to add 'Administrators'. mkgroup for /etc/group and mkpasswd for /etc/passwd then? Ok, I'll try it and then I told you. Thanks everyone m4c. -- 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/
Re: problems setting permissions for sshd
On Tue, Oct 29, 2002 at 06:31:59PM +0100, Marcos Lorenzo wrote: Pierre A. Humblet [EMAIL PROTECTED] wrote [10:59am -0500] PAH On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote: PAH PAH PAHMy /etc/group (I modified it): PAH I just ran mkpasswd -g /etc/group and I got that I only changed a few names, but not the order of fields. mkpasswd makes passwd, mkgroup makes group. The -g switch of mkpasswd includes Windows groups as users in passwd. This shouldn't be necessary in typical situations. Pierre -- 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/
RE: problems setting permissions for sshd
1. What filesystem are you running on your disk(s): NTFS or FAT32? 2. What value do you have the environment variable CYGWIN set to in your Control Panel's System applet? 3. What version of Cygwin are you running? $ uname -r 4. What version of ssh are you running? $ ssh -V -Original Message- From: Marcos Lorenzo [mailto:marcos;it.uc3m.es] Sent: Monday, October 28, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: problems setting permissions for sshd I can't set permissions on folders (I'm administrator) and I also have a strange problem: My /etc/passwd (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:unused_by_nt/2000/xp:500:513:U-DIT\Administrador,S-1- 5-21-462973936-1154566708-996637233-500:/home/Administrador:/bin/bash guest:unused_by_nt/2000/xp:501:514:U-DIT\Invitado,S-1-5-21-462 973936-1154566708-996637233-501:/home/Invitado:/bin/bash ivan:unused_by_nt/2000/xp:1004:512:Iván Alonso Gutiérrez,U-DIT\ivan,S-1-5-21-462973936-1154566708-996637233-1 004://163.117.139.253/ivan:/bin/bash lab:unused_by_nt/2000/xp:1005:513:Usuario estándar para las prácticas,U-DIT\lab,S-1-5-21-462973936-1154566708-996637233-10 05:/home/lab:/bin/bash marcos:unused_by_nt/2000/xp:1003:512:Marcos Lorenzo de Santiago,U-DIT\marcos,S-1-5-21-462973936-1154566708-996637233- 1003:/home/marcos:/bin/bash sshd:unused_by_nt/2000/xp:1079:513:sshd privsep,U-DIT\sshd,S-1-5-21-462973936-1154566708-996637233-107 9:/var/empty:/bin/bash 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:: My station is a Windows NT 4.0 Server and I can't get to work chown and chmod. I ran mkpasswd -l /etc/passwd and mkpasswd -g /etc/group and then I get: 13:09:01 marcos@MOZART~ id uid=1003(marcos) gid=512 I belong to group domain Administrators which has gid 512, and it doesn't appear in /etc/group, so I added it (domadmin:*:512:512:,S-1-5-32-512::). 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?? I tried to follow the HOWTO sent to the list: 1) set the CYGWIN environment variable OK 2) cleaned up the passwd and group as showed above. I still believe my group and passwd files are not correct, is there HOWTO for Windows NT 4.0 servers to do this correctly? or how can I correctly configure this? 3) ssh-host-config OK 4) Set restrictive permissions on configuration files: ERROR marcos@MOZART ~$ chmod 600 /etc/ssh_host*_key chmod: changing permissions of `/etc/ssh_host_dsa_key': Permission denied chmod: changing permissions of `/etc/ssh_host_key': Permission denied chmod: changing permissions of `/etc/ssh_host_rsa_key': Permission denied marcos@MOZART ~$ chown SYSTEM:SYSTEM /etc/sshd_config chown: changing ownership of `/etc/sshd_config': Permission denied marcos@MOZART ~$ chown SYSTEM:SYSTEM /var/empty/ chown: changing ownership of `/var/empty': Permission denied marcos@MOZART ~$ d !$ d /var/empty/ Usage: LS [/FrqRdlt1sSvu] [files] marcos@MOZART ~$ /bin/ls -lad /var/empty/ d-2 marcos domusers0 Oct 28 13:19 /var/empty/ What kind of permissions are that on /var/empty?? Well as you see I can't get chown and chmod to work properly. I think it never worked anyway. Thanks everyone in advance, m4c. -- 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/ -- 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/