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]

mkpasswd - mkgroup inconsistency in W2K Professional (cron problem)



Is the generaton of mkpasswd and mkgroup correct? I wonder
why the Administrator is put to group "none", gid 513 ?

This relates to cron problem that I'm trying to debug, what is
the cause of the error and how can I help to fix it?

	//Administrator@W2KPICASSO /cygdrive/g $ cron
	seteuid: Not owner	

According to strace, cron runs uder:
	
	myself->gid: 513,

Jari


///////////////////////////////////////////////////////////////////////
strace cron

...
 (4)
  218  116212 [main] cron 240 _cygwin_istext_for_stdio:  _cifs: get_*_binary
  340  116552 [main] cron 240 setmode_helper: setmode: file was cle now raw
  222  116774 [main] cron 240 setmode: setmode (4</etc/group>, binary) returns t
ext
  218  116992 [main] cron 240 _read: read (4, 0xA012780, 1024) blocking, sigcatc
hers 2
  221  117213 [main] cron 240 _read: non-interruptible read
  224  117437 [main] cron 240 _read: 0 = read (4</etc/group>, 0xA012780, 1024),
bin 4096, errno 0
  247  117684 [main] cron 240 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio
 (4)
  221  117905 [main] cron 240 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio
 says yes
  217  118122 [main] cron 240 setmode_helper: setmode: file was raw now cle
  218  118340 [main] cron 240 setmode: setmode (4</etc/group>, text) returns bin
ary
  219  118559 [main] cron 240 _close: close (4)
  217  118776 [main] cron 240 fhandler_base::close: handle 0x104
  252  119028 [main] cron 240 _close: 0 = close (4)
  238  119266 [main] cron 240 seteuid: myself->gid: 513, gr: 167844992
 2345  121611 [main] cron 240 set_process_privilege: Privilege SeCreateTokenPriv
ilege couldn't be assigned
  262  121873 [main] cron 240 seterrno_from_win_error: /cygnus/netrel/src/cygwin
-1.3.2-1/winsup/cygwin/sec_helper.cc:377 errno 1300
  242  122115 [main] cron 240 geterrno_from_win_error: unknown windows error 130
0, setting errno to 13
  230  122345 [main] cron 240 set_process_privilege: -1 = set_process_privilege
(SeCreateTokenPrivilege, 1)
  764  123109 [main] cron 240 create_token: -1 = create_token ()
  224  123333 [main] cron 240 seteuid: create token failed, try subauthenticatio
n.
 2019  125352 [main] cron 240 set_process_privilege: Privilege SeTcbPrivilege co
uldn't be assigned
  252  125604 [main] cron 240 seterrno_from_win_error: /cygnus/netrel/src/cygwin
-1.3.2-1/winsup/cygwin/sec_helper.cc:377 errno 1300
  227  125831 [main] cron 240 geterrno_from_win_error: unknown windows error 130
0, setting errno to 13
  228  126059 [main] cron 240 set_process_privilege: -1 = set_process_privilege
(SeTcbPrivilege, 1)
 1420  127479 [main] cron 240 internal_getlogin: GetUserName() = Administrator
  287  127766 [main] cron 240 internal_getlogin: Domain: W2KPICASSO, Logon Serve
r: W2KPICASSO
  223  127989 [main] cron 240 internal_getlogin: Cygwins Username: Administrator
  224  128213 [main] cron 240 seteuid: Diffs!!! token: -1, cur: 500, new: 18, or
ig: 500
  229  128442 [main] cron 240 _write: write (2, 0x404D9C, 7)
  219  128661 [main] cron 240 _write: write fh 0x1A02126C, name '/dev/conout' bg
_check 1, bg_eof 0


///////////////////////////////////////////////////////////////////////
//Administrator@W2KPICASSO /cygdrive/g $ mkgroup -l
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-57989841-507921405-1202660629-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:

///////////////////////////////////////////////////////////////////////
//Administrator@W2KPICASSO /cygdrive/g $ mkpasswd -l
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator::500:513:admin,S-1-5-21-57989841-507921405-1202660629-500:/home/Ad
ministrator:/bin/bash
admintest::1001:513:Test Admin,S-1-5-21-57989841-507921405-1202660629-1001:/home
/admintest:/bin/bash
Guest::501:513:,S-1-5-21-57989841-507921405-1202660629-501:/home/Guest:/bin/bash

jaalto::1000:513:Jari Aalto,S-1-5-21-57989841-507921405-1202660629-1000:/home/ja
alto:/bin/bash



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