From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16951 invoked by alias); 28 Oct 2002 12:28:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 16847 invoked from network); 28 Oct 2002 12:28:04 -0000 Received: from unknown (HELO smtp.uc3m.es) (163.117.136.121) by sources.redhat.com with SMTP; 28 Oct 2002 12:28:04 -0000 Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id BC6FF43145 for ; Mon, 28 Oct 2002 13:28:03 +0100 (CET) Received: from varpa.it.uc3m.es (varpa.it.uc3m.es [163.117.139.253]) by smtp01.uc3m.es (Postfix) with ESMTP id ADC5199E71 for ; Mon, 28 Oct 2002 13:28:03 +0100 (CET) Received: from localhost (marcos@localhost) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id NAA21990 for ; Mon, 28 Oct 2002 13:28:03 +0100 Date: Mon, 28 Oct 2002 08:11:00 -0000 From: Marcos Lorenzo To: cygwin@cygwin.com Subject: problems setting permissions for sshd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-SW-Source: 2002-10/txt/msg01725.txt.bz2 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::=20 admin:*:544:544:,S-1-5-32-544:: domadmin:unused_by_nt/2000/xp:500:513:U-DIT\Administrador,S-1-5-21-46297393= 6-1154566708-996637233-500:/home/Administrador:/bin/bash guest:unused_by_nt/2000/xp:501:514:U-DIT\Invitado,S-1-5-21-462973936-115456= 6708-996637233-501:/home/Invitado:/bin/bash ivan:unused_by_nt/2000/xp:1004:512:Iv=E1n Alonso Guti=E9rrez,U-DIT\ivan,S-1= -5-21-462973936-1154566708-996637233-1004://163.117.139.253/ivan:/bin/bash lab:unused_by_nt/2000/xp:1005:513:Usuario est=E1ndar para las pr=E1cticas,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\marco= s,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-4629739= 36-1154566708-996637233-1079:/var/empty:/bin/bash My /etc/group (I modified it): all:*:0:0:,S-1-1-0:: SYSTEM:*:18:18:,S-1-5-18::=20 admin:*:544:544:,S-1-5-32-544:: domadmin:*:512:512:,S-1-5-32-512::=20 guests:*:546:546:,S-1-5-32-546:: users:*:545:545:,S-1-5-32-545::=20 domusers:*:513:513:,S-1-5-32-513::=20 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=3D1003(marcos) gid=3D512 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=3D1003(marcos) gid=3D512(domadmin) grupos=3D512(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/b= in:/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 domusers 0 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/