Re: group name problem

2004-10-01 Thread Jacob Kitzman
Pierre A. Humblet pierre.humblet at ieee.org writes:

 

...

 
 What are the permissions of /etc/group ?
 
 Pierre
 
 

Permissions on /etc/group are:

$ ls -l /etc/group 
-rw-rw-r--1 Administ None  562 Sep 30 16:57 /etc/group

I also tried the same permissions having changed group ownership to Limited 
SSHD users, which is the group in question above, to no avail.

Jacob




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: group name problem

2004-10-01 Thread Pierre A. Humblet

Jacob Kitzman wrote:
 
 Pierre A. Humblet pierre.humblet at ieee.org writes:
 
  
 ...
 
  What are the permissions of /etc/group ?
 
  Pierre
 
 Permissions on /etc/group are:
 
 $ ls -l /etc/group
 -rw-rw-r--1 Administ None  562 Sep 30 16:57 /etc/group
 
 I also tried the same permissions having changed group ownership to Limited
 SSHD users, which is the group in question above, to no avail.

Could also be a mount issue.
When you are logged in as user dnr, can you cat /etc/group?
If the answer is yes, run strace -o trace.txt id
as user dnr (use just id, not id dnr). Send us trace.txt

Pierre

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: group name problem

2004-10-01 Thread Jacob Kitzman
Pierre,

I noticed that the output differs between running just id and strace -o
trace.txt id:

[EMAIL PROTECTED] ~
$ id
uid=1004(dnr) gid=1006(mkgroup) groups=1006(mkgroup)

[EMAIL PROTECTED] ~
$ strace -o trace.txt id
uid=400(dnr) gid=401(mkpasswd) groups=401(mkpasswd) 

I've attached trace.txt.

Thanks a lot for looking for this!

Jacob

-Original Message-
From: Pierre A. Humblet [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 9:45 AM
To: Jacob Kitzman
Cc: [EMAIL PROTECTED]
Subject: Re: group name problem


Jacob Kitzman wrote:
 
 Pierre A. Humblet pierre.humblet at ieee.org writes:
 
  
 ...
 
  What are the permissions of /etc/group ?
 
  Pierre
 
 Permissions on /etc/group are:
 
 $ ls -l /etc/group
 -rw-rw-r--1 Administ None  562 Sep 30 16:57 /etc/group
 
 I also tried the same permissions having changed group ownership to
Limited
 SSHD users, which is the group in question above, to no avail.

Could also be a mount issue.
When you are logged in as user dnr, can you cat /etc/group?
If the answer is yes, run strace -o trace.txt id
as user dnr (use just id, not id dnr). Send us trace.txt

Pierre
**
Program name: C:\cygwin\bin\id.exe (1684)
App version:  1005.0, api: 0.88
DLL version:  1005.11, api: 0.116
DLL build:2004-09-04 23:17
OS version:   Windows NT-5.1
Heap size:402653184
Date/Time:2004-10-01 13:24:32
**
  9832358 [main] id 1684 environ_init: 0x10010250: ALLUSERSPROFILE=C:\Documents 
and Settings\All Users
  3592717 [main] id 1684 environ_init: 0x10010288: COMMONPROGRAMFILES=C:\Program 
Files\Common Files
  2352952 [main] id 1684 environ_init: 0x100102C0: COMPUTERNAME=WALZ-BEMASTER
  1883140 [main] id 1684 environ_init: 0x100102E0: 
COMSPEC=C:\WINDOWS\system32\cmd.exe
  1843324 [main] id 1684 environ_init: 0x10010008: CVS_RSH=/bin/ssh
  3723696 [main] id 1684 parse_options: ntsec (called func)
  1323828 [main] id 1684 parse_options: tty 1001
  1113939 [main] id 1684 parse_options: returning
   664005 [main] id 1684 environ_init: 0x10010308: CYGWIN=ntsec tty
  1194124 [main] id 1684 environ_init: 0x10010340: FP_NO_HOST_CHECK=NO
  1154239 [main] id 1684 getwinenv: can't set native for HOME= since no environ yet
  1364375 [main] id 1684 mount_info::conv_to_posix_path: conv_to_posix_path 
(C:\cygwin\home\dnr, no-keep-rel, no-add-slash)
  1114486 [main] id 1684 normalize_win32_path: C:\cygwin\home\dnr = 
normalize_win32_path (C:\cygwin\home\dnr)
  1144600 [main] id 1684 mount_info::conv_to_posix_path: /home/dnr = 
conv_to_posix_path (C:\cygwin\home\dnr)
  1674767 [main] id 1684 win_env::add_cache: posix /home/dnr
   614828 [main] id 1684 win_env::add_cache: native HOME=C:\cygwin\home\dnr
   694897 [main] id 1684 posify: env var converted to HOME=/home/dnr
  1145011 [main] id 1684 environ_init: 0x10010378: HOME=/home/dnr
  1155126 [main] id 1684 environ_init: 0x100104B8: HOMEDRIVE=C:
  1125238 [main] id 1684 environ_init: 0x10010358: HOMEPATH=\cygwin\home\dnr
  1145352 [main] id 1684 environ_init: 0x100104D0: HOSTNAME=walz-bemaster
  1155467 [main] id 1684 environ_init: 0x100104F0: 
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
  1255592 [main] id 1684 environ_init: 0x10010560: LOGNAME=dnr
  1145706 [main] id 1684 environ_init: 0x10010570: LOGONSERVER=\\WALZ-BEMASTER
  1125818 [main] id 1684 environ_init: 0x10010590: MAIL=/var/spool/mail/dnr
  1125930 [main] id 1684 environ_init: 0x100105B0: MAKE_MODE=unix
  1146044 [main] id 1684 environ_init: 0x100105C8: 
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man
  1156159 [main] id 1684 environ_init: 0x10010628: NUMBER_OF_PROCESSORS=1
  1136272 [main] id 1684 environ_init: 0x10010648: OLDPWD=/home/dnr
  1136385 [main] id 1684 environ_init: 0x10010660: OS=Windows_NT
  2906675 [main] id 1684 getwinenv: can't set native for PATH= since no environ yet
  1116786 [main] id 1684 normalize_posix_path: src .
  1056891 [main] id 1684 mount_info::conv_to_posix_path: conv_to_posix_path 
(C:\cygwin\home\dnr, no-keep-rel, no-add-slash)
   866977 [main] id 1684 normalize_win32_path: C:\cygwin\home\dnr = 
normalize_win32_path (C:\cygwin\home\dnr)
   717048 [main] id 1684 mount_info::conv_to_posix_path: /home/dnr = 
conv_to_posix_path (C:\cygwin\home\dnr)
   767124 [main] id 1684 cwdstuff::get: posix /home/dnr
   747198 [main] id 1684 cwdstuff::get: (/home/dnr) = cwdstuff::get (0x22ECE8, 
260, 1, 0), errno 0
   697267 [main] id 1684 normalize_posix_path: /home/dnr/ = normalize_posix_path 
(.)
   717338 [main] id 1684 mount_info::conv_to_win32_path: conv_to_win32_path 
(/home/dnr)
  1027440 [main] id 1684 set_flags: flags: text (0x200)
   967536 [main] id 1684 mount_info::conv_to_win32_path

Re: group name problem

2004-10-01 Thread Pierre A. Humblet


Jacob Kitzman wrote:
 
 Pierre,
 
 I noticed that the output differs between running just id and strace -o
 trace.txt id:
 
 [EMAIL PROTECTED] ~
 $ id
 uid=1004(dnr) gid=1006(mkgroup) groups=1006(mkgroup)
 
 [EMAIL PROTECTED] ~
 $ strace -o trace.txt id
 uid=400(dnr) gid=401(mkpasswd) groups=401(mkpasswd)
 
 I've attached trace.txt.
 
 Thanks a lot for looking for this!

It looks like you cannot get volume information about C:\
Consequently the file is not marked as a disk file and
the pwdgrp loading function does not try to read it.

Pierre

   86   16350 [main] id 1684 mount_info::conv_to_win32_path: src_path /etc/passwd, dst 
C:\cygwin\etc\passwd, flags 0x208, rc 0
  174   16524 [main] id 1684 symlink_info::check: not a symlink
  111   16635 [main] id 1684 symlink_info::check: 0 = symlink.check 
(C:\cygwin\etc\passwd, 0x22E978) (0x208)
  217   16852 [main] id 1684 fs_info::update: Cannot get volume information (C:\), 
Win32 error 5

~ net helpmsg 5
Access is denied.

  354   17206 [main] id 1684 etc::test_file_change: FindFirstFile succeeded
  296   17502 [main] id 1684 etc::test_file_change: fn[1] C:\cygwin\etc\passwd res 1
  108   17610 [main] id 1684 etc::init: fn[1] C:\cygwin\etc\passwd, curr_ix 1
   71   17681 [main] id 1684 pwdgrp::load: /etc/passwd
   67   17748 [main] id 1684 pwdgrp::load: strange path_conv problem
   67   17815 [main] id 1684 pwdgrp::load: /etc/passwd load failed

   69   18829 [main] id 1684 mount_info::conv_to_win32_path: src_path /etc/group, dst 
C:\cygwin\etc\group, flags 0x208, rc 0
  169   18998 [main] id 1684 symlink_info::check: not a symlink
  108   19106 [main] id 1684 symlink_info::check: 0 = symlink.check 
(C:\cygwin\etc\group, 0x22E938) (0x208)
  228   19334 [main] id 1684 fs_info::update: Cannot get volume information (C:\), 
Win32 error 5
  333   19667 [main] id 1684 etc::test_file_change: FindFirstFile succeeded
  123   19790 [main] id 1684 etc::test_file_change: fn[2] C:\cygwin\etc\group res 1
   70   19860 [main] id 1684 etc::init: fn[2] C:\cygwin\etc\group, curr_ix 2
   66   19926 [main] id 1684 pwdgrp::load: /etc/group
   67   19993 [main] id 1684 pwdgrp::load: strange path_conv problem
   65   20058 [main] id 1684 pwdgrp::load: /etc/group load failed

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: group name problem

2004-09-30 Thread Pierre A. Humblet
On Thu, Sep 30, 2004 at 10:16:46PM +, Jacob Kitzman wrote:
 Hi,
 
 This cygwin stuff is pretty slick!  I'm hitting one snag, though, as I am trying
 to setup sshd for remote access by limited users.
 
 I've made a user dnr which is a member of the group Limited SSHD users (gid
 1006).  After mkpasswd -l and mkgroup -l'ing, I've manually set the gid of user
 dnr to 1006 in /etc/passwd.  Running as Administrator, id yields the expected
 result:
 
 [EMAIL PROTECTED] ~
 $ id dnr
 uid=1004(dnr) gid=1006(Limited SSHD users) groups=1006(Limited SSHD users)
 
 However, when I ssh in to [EMAIL PROTECTED], cygwin doesn't seem to be able to find
 a group with gid 1006.  (And I get the message upon login that your group is
 currently mkgroup)
 
 [EMAIL PROTECTED] ~
 $ id dnr
 uid=1004(dnr) gid=1006(mkgroup) groups=1006(mkgroup)
 
 Is there some local policy I need to set for the group Limited SSHD users? 
 Any ideas for a workaround?

What are the permissions of /etc/group ?

Pierre

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/