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: Mon, 28 Oct 2002 10:41:09 -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 g9SFfVq20926 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 AT it DOT uc3m DOT es] > Sent: Monday, October 28, 2002 7:28 AM > To: cygwin AT cygwin DOT com > 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 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/ > > -- 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/