[Win32utils-devel] win32-etc-0.2.2 testing wanted

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Thu Mar 11 20:38:44 EST 2004


See attached test results on Win XP (Home).

----- Original Message ----- 
From: <win32utils-devel at rubyforge.org>
To: <win32utils-devel at rubyforge.org>
Sent: Thursday, March 11, 2004 7:23 PM
Subject: [Win32utils-devel] win32-etc-0.2.2 testing wanted


> I've commited code for win32-etc 0.2.2, which adds the configure_user and
> configure_group methods.  Testing appreciated.  On my home system, I can't
> get configure_user to work, but I haven't any real idea why it fails.  The
> configure_group method seems to work fine, however.
>
> Dan
>
> _________________________________________________________________
> Fast. Reliable. Get MSN 9 Dial-up - 3 months for the price of 1!
> (Limited-time Offer)
http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
>
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\win32utils\win32-etc>..\install.cmd

C:\win32utils\win32-etc>ruby extconf.rb
checking for main() in netapi32.lib... yes
creating Makefile

C:\win32utils\win32-etc>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cl -nologo -MD -Zi -O2b2xg- -G6 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.  -I. -I./.. -I./../missing -c -Tcetc.c
etc.c
        cl -nologo -LD -Feetc.so etc.obj msvcrt-ruby18.lib netapi32.lib  oldnames.lib user32.lib advapi32.lib wsock32.lib  -link -incremental:no -debug -opt:ref -opt:icf -dll -libpath:"c:/ruby/lib" -def:etc-i386-mswin32.def
   Creating library etc.lib and object etc.exp

C:\win32utils\win32-etc>nmake site-install

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

install -c -p -m 0755 etc.so c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/win32

C:\win32utils\win32-etc>cd test

C:\win32utils\win32-etc\test>ruby tc_etc.rb
Loaded suite tc_etc
Started
..............
Finished in 10.265 seconds.

14 tests, 28 assertions, 0 failures, 0 errors

C:\win32utils\win32-etc\test>ruby test.rb

VERSION: 0.2.2

getlogin test
=============
Shashank Date

getpwnam test
=============
#<struct Struct::Passwd name="Guest", uid=501, comment="Built-in account for guest access to the computer/domain", usr_comment="", full_name="", priv="guest", auth_flags=[], password_age=0, home_dir="", parms="", last_logon=1078538516, last_logoff=0, bad_pw_count=0, num_logons=2, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

getpwuid test
=============
#<struct Struct::Passwd name="Guest", uid=501, comment="Built-in account for guest access to the computer/domain", usr_comment="", full_name="", priv="guest", auth_flags=[], password_age=0, home_dir="", parms="", last_logon=1078538516, last_logoff=0, bad_pw_count=0, num_logons=2, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

getgrgid test
=============
#<struct Struct::Group name="None", comment="Ordinary users", gid=513, type="global">

getgrnam test
=============
#<struct Struct::Group name="Guests", comment="Guests have the same access as members of the Users group by default, except for the Guest account which is further restricted", gid=nil, type="local">

group test
==========
#<struct Struct::Group name="Administrators", comment="Administrators have complete and unrestricted access to the computer", gid=nil, type="local">

#<struct Struct::Group name="Guests", comment="Guests have the same access as members of the Users group by default, except for the Guest account which is further restricted", gid=nil, type="local">

#<struct Struct::Group name="Users", comment="Users are prevented from making accidental or intentional system-wide changes.  Thus, Users can run certified applications, but not most legacy applications", gid=nil, type="local">

#<struct Struct::Group name="Debugger Users", comment="Debugger users can debug processes on this machine, both locally and remotely", gid=nil, type="local">

#<struct Struct::Group name="HelpServicesGroup", comment="Group for the Help and Support Center", gid=nil, type="local">

#<struct Struct::Group name="None", comment="Ordinary users", gid=513, type="global">


passwd test
===========
#<struct Struct::Passwd name="Administrator", uid=500, comment="Built-in account for administering the computer/domain", usr_comment="", full_name="", priv="admin", auth_flags=[], password_age=0, home_dir="", parms="", last_logon=0, last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="ASPNET", uid=1013, comment="Account used for running the ASP.NET worker process (aspnet_wp.exe)", usr_comment="Account used for running the ASP.NET worker process (aspnet_wp.exe)", full_name="ASP.NET Machine Account", priv="user", auth_flags=[], password_age=8629732, home_dir="", parms="                                                P\004\032\010\001CtxCfgPresent????\030\010\001CtxCfgFlags1????\022\010\001CtxShadow????*\002\001CtxMinEncryptionLevel?", last_logon=0,
 last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="Guest", uid=501, comment="Built-in account for guest access to the computer/domain", usr_comment="", full_name="", priv="guest", auth_flags=[], password_age=0, home_dir="", parms="", last_logon=1078538516, last_logoff=0, bad_pw_count=0, num_logons=2, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="HelpAssistant", uid=1005, comment="Account for Providing Remote Assistance", usr_comment="", full_name="Remote Desktop Help Assistant Account", priv="guest", auth_flags=[], password_age=13729710, home_dir="", parms="", last_logon=0, last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="Shashank Date", uid=1006, comment="", usr_comment="", full_name="", priv="admin", auth_flags=[], password_age=13735974, home_dir="", parms="", last_logon=1079007403, last_logoff=0, bad_pw_count=0, num_logons=352, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="SUPPORT_388945a0", uid=1002, comment="This is a vendor's account for the Help and Support Service", usr_comment="", full_name="CN=Microsoft Corporation,L=Redmond,S=Washington,C=US", priv="guest", auth_flags=[], password_age=47458110, home_dir="", parms="", last_logon=0, last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="SUPPORT_b326ad0c", uid=1004, comment="This is a vendor's account for the Help and Support Service", usr_comment="", full_name="CN=Compaq Computer Corporation,L=Houston,S=Texas,C=US", priv="guest", auth_flags=[], password_age=37639629, home_dir="", parms="", last_logon=0, last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>

#<struct Struct::Passwd name="VUSR_MYLAPTOP", uid=1012, comment="Account for the Visual Studio Analyzer server components", usr_comment="", full_name="VSA Server Account", priv="guest", auth_flags=[], password_age=13755096, home_dir="", parms="", last_logon=0, last_logoff=0, bad_pw_count=0, num_logons=0, logon_server="\\\\*", country_code=0, workstations="", max_storage=4294967295, code_page=0>


Everything seems ok.
Now run 'nmake site-install' if you wish to install

C:\win32utils\win32-etc\test>ruby test_admin.rb
test_admin.rb:51: syntax error
                :flags       => 0,
                 ^
test_admin.rb:53: syntax error

C:\win32utils\win32-etc\test>


More information about the win32utils-devel mailing list