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]

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


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