delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/28/07:28:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 28 Oct 2002 13:28:03 +0100 (CET)
From: Marcos Lorenzo <marcos AT it DOT uc3m DOT es>
To: cygwin AT cygwin DOT com
Subject: problems setting permissions for sshd
Message-ID: <Pine.LNX.3.96.1021028130027.7415A-100000@varpa.it.uc3m.es>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id g9SCSX422735

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-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://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-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


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 AT 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 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??


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 AT 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 AT MOZART ~$ chown SYSTEM:SYSTEM /etc/sshd_config
chown: changing ownership of `/etc/sshd_config': Permission denied

marcos AT MOZART ~$ chown SYSTEM:SYSTEM /var/empty/
chown: changing ownership of `/var/empty': Permission denied
marcos AT MOZART ~$ d !$
d /var/empty/
Usage: LS [/FrqRdlt1sSvu] [files]
marcos AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019