public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: problems setting permissions for sshd
@ 2002-10-29  9:39 Harig, Mark A.
  2002-10-29 10:36 ` Pierre A. Humblet
  0 siblings, 1 reply; 14+ messages in thread
From: Harig, Mark A. @ 2002-10-29  9:39 UTC (permalink / raw)
  To: Marcos Lorenzo, cygwin


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

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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: problems setting permissions for sshd
  2002-10-29  9:39 problems setting permissions for sshd Harig, Mark A.
@ 2002-10-29 10:36 ` Pierre A. Humblet
  2002-10-29 12:52   ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Pierre A. Humblet @ 2002-10-29 10:36 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: problems setting permissions for sshd
  2002-10-29 10:36 ` Pierre A. Humblet
@ 2002-10-29 12:52   ` Marcos Lorenzo
  2002-10-29 13:51     ` Pierre A. Humblet
  0 siblings, 1 reply; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-29 12:52 UTC (permalink / raw)
  To: Pierre A. Humblet; +Cc: cygwin

Pierre A. Humblet <pierre.humblet@ieee.org> wrote [10:59am -0500]

   PAH > On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote:
   PAH > >
   PAH > > >
   PAH > > > My /etc/group (I modified it):
   PAH > > >
   PAH > > > all:*:0:0:,S-1-1-0::
   PAH > > > SYSTEM:*:18:18:,S-1-5-18::
   PAH > > > admin:*:544:544:,S-1-5-32-544::
   PAH > > > domadmin:*:512:512:,S-1-5-32-512::
   PAH > > > guests:*:546:546:,S-1-5-32-546::
   PAH > > > users:*:545:545:,S-1-5-32-545::
   PAH > > > domusers:*: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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: problems setting permissions for sshd
  2002-10-29 12:52   ` Marcos Lorenzo
@ 2002-10-29 13:51     ` Pierre A. Humblet
  0 siblings, 0 replies; 14+ messages in thread
From: Pierre A. Humblet @ 2002-10-29 13:51 UTC (permalink / raw)
  To: cygwin

On Tue, Oct 29, 2002 at 06:31:59PM +0100, Marcos Lorenzo wrote:
> Pierre A. Humblet <pierre.humblet@ieee.org> wrote [10:59am -0500]
> 
>    PAH > On Tue, Oct 29, 2002 at 10:59:12AM -0500, Harig, Mark A. wrote:
>    PAH > >
>    PAH > > >
>    PAH > > > My /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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-30  6:28 ` Marcos Lorenzo
@ 2002-10-30  8:34   ` Igor Pechtchanski
  0 siblings, 0 replies; 14+ messages in thread
From: Igor Pechtchanski @ 2002-10-30  8:34 UTC (permalink / raw)
  To: Marcos Lorenzo; +Cc: cygwin

On Wed, 30 Oct 2002, Marcos Lorenzo wrote:

> Vince Hoffman <Vince.Hoffman@uk.circle.com> wrote [11:56am -0000]
>
>    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.

Marcos,

mkgroup and mkpasswd automatically add 10000 to the ids of the domain
groups and users (though there's an option to change that -- "-o", I
think).

Also, IIRC, you can simply edit the GID number (the next-to-last column)
in the groups file to put whatever number you need there (read the
security section in the User's Guide).  Try it and see -- don't forget to
back up the file.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-30  6:18 Vince Hoffman
@ 2002-10-30  6:28 ` Marcos Lorenzo
  2002-10-30  8:34   ` Igor Pechtchanski
  0 siblings, 1 reply; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-30  6:28 UTC (permalink / raw)
  To: Vince Hoffman; +Cc: cygwin

Vince Hoffman <Vince.Hoffman@uk.circle.com> wrote [11:56am -0000]

   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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
@ 2002-10-30  6:18 Vince Hoffman
  2002-10-30  6:28 ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Vince Hoffman @ 2002-10-30  6:18 UTC (permalink / raw)
  To: cygwin

just making up a group entry is unlikely to work. to get your domain groups
use mkgroup -d (making sure you are connected to your network.)


> -----Original Message-----
> From: Marcos Lorenzo [mailto:marcos@it.uc3m.es]
> Sent: 30 October 2002 11:45
> To: Harig, Mark A.
> Cc: Pierre A. Humblet; cygwin@cygwin.com
> Subject: RE: problems setting permissions for sshd
> 
> 
> On Tue, 29 Oct 2002, Marcos Lorenzo wrote:
> 
>     > Harig, Mark A. <maharig@idirect.net> 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 admin    domusers      12k Oct 30 12:09 .
> drwx------   13 admin    domusers     4.0k Oct 29 12:52 ..
> -rw-r-----    1 admin    domadmin      85k Jul 10 04:28 Muttrc
> drwxr-x---    2 admin    domadmin     4.0k Sep 18 11:54 WindowMaker
> drwxr-x---   13 admin    domadmin     4.0k Sep 18 11:55 X11
> drwxr-x---    2 admin    domadmin     4.0k Sep 18 11:43 apache
> drwxr-x---    2 admin    domadmin        0 Sep 18 14:10 cron.d
> -rw-r-----    1 admin    domadmin     1.3k Feb 19  2002 csh.cshrc
> -rw-r-----    1 admin    domadmin      401 Dec 21  2001 csh.login
> -rw-r-----    1 admin    domadmin     4.7k Sep 19 19:00 enscript.cfg
> -rw-r-----    1 admin    domadmin     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-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:/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-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
> 
> 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
> drwxrwxrwx    3 admin    domadmin     4.0k Oct 30 12:33 .
> drwx------   14 admin    domadmin     4.0k Oct 30 12:24 ..
> drwxr-x---    0 system   domadmin        0 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
> drwxrwxrwx    3 admin    domadmin     4.0k Oct 30 12:33 .
> drwx------   14 admin    domadmin     4.0k Oct 30 12:24 ..
> drwxr-xr-x    2 system   domadmin        0 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-x    2 system   domadmin        0 Oct 30 12:33 .
> drwxrwxrwx    3 admin    domadmin     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/
> 

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-29 13:30 ` Marcos Lorenzo
@ 2002-10-30  4:44   ` Marcos Lorenzo
  0 siblings, 0 replies; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-30  4:44 UTC (permalink / raw)
  To: Harig, Mark A.; +Cc: Pierre A. Humblet, cygwin

On Tue, 29 Oct 2002, Marcos Lorenzo wrote:

    > Harig, Mark A. <maharig@idirect.net> 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 admin    domusers      12k Oct 30 12:09 .
drwx------   13 admin    domusers     4.0k Oct 29 12:52 ..
-rw-r-----    1 admin    domadmin      85k Jul 10 04:28 Muttrc
drwxr-x---    2 admin    domadmin     4.0k Sep 18 11:54 WindowMaker
drwxr-x---   13 admin    domadmin     4.0k Sep 18 11:55 X11
drwxr-x---    2 admin    domadmin     4.0k Sep 18 11:43 apache
drwxr-x---    2 admin    domadmin        0 Sep 18 14:10 cron.d
-rw-r-----    1 admin    domadmin     1.3k Feb 19  2002 csh.cshrc
-rw-r-----    1 admin    domadmin      401 Dec 21  2001 csh.login
-rw-r-----    1 admin    domadmin     4.7k Sep 19 19:00 enscript.cfg
-rw-r-----    1 admin    domadmin     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
drwxrwxrwx    3 admin    domadmin     4.0k Oct 30 12:33 .
drwx------   14 admin    domadmin     4.0k Oct 30 12:24 ..
drwxr-x---    0 system   domadmin        0 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
drwxrwxrwx    3 admin    domadmin     4.0k Oct 30 12:33 .
drwx------   14 admin    domadmin     4.0k Oct 30 12:24 ..
drwxr-xr-x    2 system   domadmin        0 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-x    2 system   domadmin        0 Oct 30 12:33 .
drwxrwxrwx    3 admin    domadmin     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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-29 11:01 Harig, Mark A.
@ 2002-10-29 13:30 ` Marcos Lorenzo
  2002-10-30  4:44   ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-29 13:30 UTC (permalink / raw)
  To: Harig, Mark A.; +Cc: Pierre A. Humblet, cygwin

Harig, Mark A. <maharig@idirect.net> 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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
@ 2002-10-29 11:01 Harig, Mark A.
  2002-10-29 13:30 ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Harig, Mark A. @ 2002-10-29 11:01 UTC (permalink / raw)
  To: Pierre A. Humblet, cygwin; +Cc: Marcos Lorenzo

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: cygwin@cygwin.com
> 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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-29  3:24 ` Marcos Lorenzo
@ 2002-10-29  4:11   ` Marcos Lorenzo
  0 siblings, 0 replies; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-29  4:11 UTC (permalink / raw)
  To: Harig, Mark A.; +Cc: cygwin

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 = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/dit
  (default) = `d:'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/winnt
  (default) = `c:'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS    8032Mb  25% CP CS UN PA FC     NTFS_1
d:  hd  NTFS   11429Mb  42% CP CS UN PA FC     NTFS_2
e:  cd           N/A    N/A                    
m:  net NTFS   58788Mb  28% CP CS    PA        marcos

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:                                 /winnt                    system  binmode
.                                  /cygdrive                 user    binmode,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
  253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
  633k 2002/07/22 C:\cygwin\bin\cygxml2-2.dll
   41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll
   46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll
  152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll
   15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll
   50k 2002/03/12 C:\cygwin\bin\cygz.dll
  883k 2002/07/06 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.3.12
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 54
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Sat Jul 6 02:16:58 EDT 2002
        CVS tag: cygwin-1-3-12-1
        Shared id: cygwin1S3

   41k 2002/05/14 C:\cygwin\usr\X11R6\bin\cygPropList-0.dll

Cygwin Package Information
Package             Version             
WindowMaker         0.80.0-2            
XFree86-base        4.2.0-1             
XFree86-bin         4.2.0-2             
XFree86-doc         4.2.0-1             
XFree86-etc         4.2.0-1             
XFree86-f100        4.2.0-2             
XFree86-fcyr        4.2.0-2             
XFree86-fenc        4.2.0-2             
XFree86-fnts        4.2.0-2             
XFree86-fscl        4.2.0-2             
XFree86-fsrv        4.2.0-1             
XFree86-html        4.2.0-1             
XFree86-jdoc        4.2.0-1             
XFree86-lib         4.2.0-3             
XFree86-man         4.2.0-1             
XFree86-nest        4.2.0-1             
XFree86-prog        4.2.0-1             
XFree86-prt         4.2.0-1             
XFree86-ps          4.2.0-1             
XFree86-startup-scripts4.2.0-3             
XFree86-vfb         4.2.0-1             
XFree86-xserv       4.2.0-10            
_update-info-dir    00063-1             
apache              1.3.24-5            
ash                 20020731-1          
autoconf            2.53b-1             
autoconf-devel      2.53a-1             
autoconf-stable     2.13-4              
automake            1.6.2-1             
automake-devel      1.6.2-1             
automake-stable     1.4p5-5             
bash                2.05b-5             
bc                  1.06-1              
binutils            20020706-2          
bison               1.35-1              
byacc               1.9-1               
bzip2               1.0.2-2             
ccache              1.9-1               
cgoban              1.9.12-1            
clear               1.0-1               
cpio                2.4.2               
cron                3.0.1-7             
crypt               1.0-1               
ctags               5.2-1               
curl                7.9.8-2             
cvs                 1.11.0-1            
cygrunsrv           0.95-1              
cygutils            1.1.2-1             
cygwin              1.3.12-4            
cygwin-doc          1.1-2               
dejagnu             20010117-1          
diff                1.0-1               
diffutils           2.8.1-1             
ed                  0.2-1               
enscript            1.6.3-3             
expect              20010117-1          
fetchmail           5.9.13-2            
figlet              2.2-1               
file                3.37-1              
fileutils           4.1-1               
findutils           4.1.7-4             
flex                2.5.4-2             
fortune             1.8-2               
fvwm                2.4.7-2             
gawk                3.1.1-3             
gcc                 2.95.3-5            
gdb                 20010428-3          
gdbm                1.8.0-4             
gettext             0.11.2-2            
ghostscript         7.05-1              
gnugo               3.2-1               
gperf               0.0                 
grep                2.5-1               
groff               1.17.2-1            
gsl                 1.1.1-1             
gzip                1.3.3-4             
indent              2.2.8-1             
inetutils           1.3.2-19            
irc                 20010101-1          
jbigkit             1.2-6               
jpeg                6b-7                
less                374-1               
lesstif             0.93.18-3           
libPropList         0.10.1-3            
libbz2_0            1.0.2-1             
libbz2_1            1.0.2-2             
libiconv2           1.8-2               
libintl             0.10.38-3           
libintl1            0.10.40-1           
libintl2            0.11.2-2            
libkpathsea3        20020530-3          
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.2.4-2             
libpng10            1.0.14-2            
libpng10-devel      1.0.14-2            
libpng12            1.2.4-2             
libpng12-devel      1.2.4-2             
libpng2             1.0.12-1            
libpopt0            1.6.4-4             
libreadline4        4.1-2               
libreadline5        4.3-1               
libtool             20020705-1          
libtool-devel       20020705-2          
libtool-stable      1.4.2-2             
libxml2             2.4.23-1            
libxslt             1.0.13-1            
links               0.96-1              
login               1.4-4               
lynx                2.8.4-1             
m4                  0.0                 
make                3.79.1-7            
man                 1.5g-2              
mingw-runtime       2.2-1               
mktemp              1.4-1               
more                2.11o-1             
mt                  2.0.1-1             
mutt                1.4-1               
nano                1.1.10-1            
ncftp               3.1.4-1             
ncurses             5.2-8               
newlib-man          20020801            
openbox             0.99.1-3            
opengl              1.1.0-6             
openssh             3.4p1-5             
openssl             0.9.6g-1            
openssl-devel       0.9.6g-1            
patch               2.5-3               
pcre                3.7-1               
perl                5.6.1-2             
pine                4.44-2              
pkgconfig           0.12.0-1            
popt                1.6.4-4             
postgresql          7.2.2-1             
procmail            3.22-7              
python              2.2.1-1             
rcs                 5.7-3               
readline            4.3-1               
robots              2.0-1               
rsync               2.5.5-1             
rxvt                2.7.2-11            
sed                 3.02-1              
sh-utils            2.0-2               
sharutils           4.2.1-2             
shutdown            1.2-2               
squid               2.4.STABLE7-1       
ssmtp               2.38.7-3            
swig                1.3.13-1            
tar                 1.13.19-1           
tcltk               20001125-1          
tcsh                6.11.00-4           
termcap             20020403-1          
terminfo            5.2-3               
tetex               20020530-3          
tetex-base          20020530-3          
tetex-beta          20020530-3          
tetex-bin           20020530-3          
tetex-doc           20020530-3          
tetex-extra         20020530-3          
tetex-tiny          20020530-3          
texinfo             4.2-3               
texmf               20020530-3          
texmf-base          20020530-3          
texmf-doc           20020530-3          
texmf-extra         20020530-3          
texmf-tiny          20020530-3          
textutils           2.0.21-1            
tiff                3.5.7-1             
time                1.7-1               
ttcp                19980512-1          
ucl                 1.01-1              
units               1.77-1              
unzip               5.50-1              
upx                 1.21-1              
vim                 6.1-2               
w32api              2.0-1               
wget                1.8.2-1             
which               1.5-1               
whois               4.5.17-1            
xpm-nox             4.2.0-1             
zip                 2.3-2               
zlib                1.1.4-1             
zsh                 4.0.4-1             

Use -h to see help about each section


rgrds,
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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
  2002-10-28  9:32 Harig, Mark A.
@ 2002-10-29  3:24 ` Marcos Lorenzo
  2002-10-29  4:11   ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-29  3:24 UTC (permalink / raw)
  To: Harig, Mark A.; +Cc: cygwin

Harig, Mark A. <maharig@idirect.net> 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 <emcb_exposure@hotmail.com>.

   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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: problems setting permissions for sshd
@ 2002-10-28  9:32 Harig, Mark A.
  2002-10-29  3:24 ` Marcos Lorenzo
  0 siblings, 1 reply; 14+ messages in thread
From: Harig, Mark A. @ 2002-10-28  9:32 UTC (permalink / raw)
  To: Marcos Lorenzo, cygwin

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: cygwin@cygwin.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@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/
> 
> 

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* problems setting permissions for sshd
@ 2002-10-28  8:11 Marcos Lorenzo
  0 siblings, 0 replies; 14+ messages in thread
From: Marcos Lorenzo @ 2002-10-28  8:11 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-10-30 16:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29  9:39 problems setting permissions for sshd Harig, Mark A.
2002-10-29 10:36 ` Pierre A. Humblet
2002-10-29 12:52   ` Marcos Lorenzo
2002-10-29 13:51     ` Pierre A. Humblet
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30  6:18 Vince Hoffman
2002-10-30  6:28 ` Marcos Lorenzo
2002-10-30  8:34   ` Igor Pechtchanski
2002-10-29 11:01 Harig, Mark A.
2002-10-29 13:30 ` Marcos Lorenzo
2002-10-30  4:44   ` Marcos Lorenzo
2002-10-28  9:32 Harig, Mark A.
2002-10-29  3:24 ` Marcos Lorenzo
2002-10-29  4:11   ` Marcos Lorenzo
2002-10-28  8:11 Marcos Lorenzo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).