DomainUser homedir should be ? => probem: mkpasswd: (434): [31] A device attached to the system is not functioning.

Linda Walsh cygwin@tlinx.org
Tue Jul 13 00:08:00 GMT 2010


I was wondering -- should a Domain user's home directory be set to the local
copy of their profile directory or should it be set to the server copy?  In
some respects, the server dir would be ideal, BUT the whole reason for having a
local copy is performance and reliability (if server goes down, they can still
have a local home dir).  It's also the case that a domain user may log in and
only have the local home dir.

So which should be used?  AT one point (when mkpasswd was working, some time
ago, it assigned "//Bliss/law", but when I log in, if I my initial directory is
set to /users/law.Bliss.  I forget the exact behaviors, but I think doing "cd"
went to a different dir than "cd "$HOME"

I had a question I was trying to solve when I encountered this problem:

When I try running mkpasswd, I get an error instead of expected output.

I tried an strace, but it doesn't show what 'system' call might have failed.
(Trace included below).  cygcheck.out output is attached.


Program output:
/Users/law.BLISS> mkpasswd
SYSTEM:*:18:544:,S-1-5-18::
LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
Administrators:*:544:544:,S-1-5-32-544::
mkpasswd (434): [31] A device attached to the system is not functioning.
/Users/law.BLISS>



Trace is included below:
   43    8678 [main] mkpasswd 20088 pinfo_init: Set nice to 0
   20    8698 [main] mkpasswd 20088 pinfo_init: pid 20088, pgid 20088
   66    8764 [main] mkpasswd 20088 dtable::extend: size 32, fds 0x6122543C
  298    9062 [main] mkpasswd 20088 pwdgrp::load: \etc\passwd curr_lines 11
   37    9099 [main] mkpasswd 20088 pwdgrp::load: \etc\passwd load succeeded
  259    9358 [main] mkpasswd 20088 pwdgrp::load: \etc\group curr_lines 30
   31    9389 [main] mkpasswd 20088 pwdgrp::load: \etc\group load succeeded
   28    9417 [main] mkpasswd 20088 internal_getlogin: SetTokenInformation(TokenPrimaryGroup), This security ID may not be assigned as the primary group of an object.
  174    9591 [main] mkpasswd 20088 cygheap_user::ontherange: what 2, pw 0xC1A2D0
   23    9614 [main] mkpasswd 20088 cygheap_user::ontherange: HOME is already in the environment /users/law.Bliss
   20    9634 [main] mkpasswd 20088 wait_for_sigthread: wait_sig_inited 0x64
18514   28148 [main] mkpasswd 20088 wait_for_sigthread: process/signal handling enabled, state 0x41
   20   28168 [sig] mkpasswd 20088 wait_sig: entering ReadFile loop, my_readsig 0x164, my_sendsig 0x168
  137   28305 [main] mkpasswd 20088 build_argv: argv[0] = 'mkpasswd'
   26   28331 [main] mkpasswd 20088 build_argv: argc 1
  175   28506 [main] mkpasswd 20088 normalize_posix_path: src /dev/tty0
   25   28531 [main] mkpasswd 20088 normalize_posix_path: /dev/tty0 = normalize_posix_path (/dev/tty0)
   22   28553 [main] mkpasswd 20088 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/tty0)
   27   28580 [main] mkpasswd 20088 mount_info::conv_to_win32_path: src_path /dev/tty0, dst \dev\tty0, flags 0x2, rc 0
   24   28604 [main] mkpasswd 20088 build_fh_pc: fh 0x612255BC
   26   28630 [main] mkpasswd 20088 fhandler_pipe::create_selectable: CreateNamedPipe: name \\.\pipe\cygwin-a46ac466ed629d62-tty0-from-master, size 4096
  107   28737 [main] mkpasswd 20088 fhandler_pipe::create_selectable: pipe busy
   25   28762 [main] mkpasswd 20088 fhandler_base::set_flags: flags 0x10000, supplied_bin 0x0
   21   28783 [main] mkpasswd 20088 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   18   28801 [main] mkpasswd 20088 fhandler_base::set_flags: filemode set to binary
   43   28844 [main] mkpasswd 20088 fhandler_tty_slave::open: (521): tty output_mutex: waiting 500 ms
   21   28865 [main] mkpasswd 20088 fhandler_tty_slave::open: (521): tty output_mutex: acquired
   26   28891 [main] mkpasswd 20088 tty::create_inuse: cygtty.slave_alive.0 0x178
   21   28912 [main] mkpasswd 20088 fhandler_tty_slave::open: (524): tty output_mutex released
   32   28944 [main] mkpasswd 20088 open_shared: name cygpid.19828, n 19828, shared 0x30000 (wanted 0x0), h 0x17C
   25   28969 [main] mkpasswd 20088 client_request_attach_tty::client_request_attach_tty: created: pid = 20088, master_pid = 19076, from_master = 448, to_master = 456
   74   29043 [main] mkpasswd 20088 transport_layer_pipes::connect: Try to connect to named pipe: \\.\pipe\cygwin-a46ac466ed629d62-lpc
  132   29175 [main] mkpasswd 20088 transport_layer_pipes::connect: Try to connect to named pipe: \\.\pipe\cygwin-a46ac466ed629d62-lpc
  163   29338 [main] mkpasswd 20088 fhandler_tty_slave::open: duplicated from_master 0x1C0->0x184 from tty_owner
   20   29358 [main] mkpasswd 20088 fhandler_tty_slave::open: duplicated to_master 0x1C8->0x188 from tty_owner
   23   29381 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::open: console_count 1, amount 1, no ctty, avoid_freeing_console 0
   32   29413 [main] mkpasswd 20088 fhandler_console::need_invisible: invisible_console 0
   24   29437 [main] mkpasswd 20088 fhandler_tty_slave::open: /dev/tty0 opened, usecount 1
   21   29458 [main] mkpasswd 20088 _pinfo::set_ctty: old no ctty
   20   29478 [main] mkpasswd 20088 _pinfo::set_ctty: attaching ctty /dev/tty0 sid 20088, pid 20088, pgid 20088, tty->pgid 12956, tty->sid 19324
   30   29508 [main] mkpasswd 20088 open_shared: name cygpid.19324, n 19324, shared 0x30000 (wanted 0x0), h 0x17C
   23   29531 [main] mkpasswd 20088 _pinfo::set_ctty: cygheap->ctty 0x0, arch 0x61225814
   18   29549 [main] mkpasswd 20088 _pinfo::set_ctty: ctty NULL
   19   29568 [main] mkpasswd 20088 init_cygheap::manage_console_count: _pinfo::set_ctty: console_count 2, amount 1, ctty /dev/tty0, avoid_freeing_console 0
   19   29587 [main] mkpasswd 20088 _pinfo::set_ctty: /dev/tty0 ctty, usecount 2
   87   29674 [main] mkpasswd 20088 normalize_posix_path: src /dev/tty0
   22   29696 [main] mkpasswd 20088 normalize_posix_path: /dev/tty0 = normalize_posix_path (/dev/tty0)
   18   29714 [main] mkpasswd 20088 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/tty0)
   19   29733 [main] mkpasswd 20088 mount_info::conv_to_win32_path: src_path /dev/tty0, dst \dev\tty0, flags 0x2, rc 0
   20   29753 [main] mkpasswd 20088 build_fh_pc: fh 0x61225AB4
   19   29772 [main] mkpasswd 20088 fhandler_tty_slave::open: copied fhandler_tty_slave archetype
   21   29793 [main] mkpasswd 20088 fhandler_base::set_flags: flags 0x10001, supplied_bin 0x0
   18   29811 [main] mkpasswd 20088 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   17   29828 [main] mkpasswd 20088 fhandler_base::set_flags: filemode set to binary
   19   29847 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::open<arch>: console_count 3, amount 1, ctty /dev/tty0, avoid_freeing_console 0
   18   29865 [main] mkpasswd 20088 fhandler_tty_slave::open: /dev/tty0 opened, usecount 3
   18   29883 [main] mkpasswd 20088 _pinfo::set_ctty: old ctty /dev/tty0
   19   29902 [main] mkpasswd 20088 _pinfo::set_ctty: attaching ctty /dev/tty0 sid 19324, pid 20088, pgid 20088, tty->pgid 12956, tty->sid 19324
   29   29931 [main] mkpasswd 20088 open_shared: name cygpid.19324, n 19324, shared 0x30000 (wanted 0x0), h 0x17C
  191   30122 [main] mkpasswd 20088 normalize_posix_path: src /dev/tty0
   26   30148 [main] mkpasswd 20088 normalize_posix_path: /dev/tty0 = normalize_posix_path (/dev/tty0)
   19   30167 [main] mkpasswd 20088 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/tty0)
   28   30195 [main] mkpasswd 20088 mount_info::conv_to_win32_path: src_path /dev/tty0, dst \dev\tty0, flags 0x2, rc 0
   21   30216 [main] mkpasswd 20088 build_fh_pc: fh 0x61225D5C
   20   30236 [main] mkpasswd 20088 fhandler_tty_slave::open: copied fhandler_tty_slave archetype
   20   30256 [main] mkpasswd 20088 fhandler_base::set_flags: flags 0x10001, supplied_bin 0x0
   19   30275 [main] mkpasswd 20088 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   18   30293 [main] mkpasswd 20088 fhandler_base::set_flags: filemode set to binary
   18   30311 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::open<arch>: console_count 4, amount 1, ctty /dev/tty0, avoid_freeing_console 0
   19   30330 [main] mkpasswd 20088 fhandler_tty_slave::open: /dev/tty0 opened, usecount 4
   19   30349 [main] mkpasswd 20088 _pinfo::set_ctty: old ctty /dev/tty0
   19   30368 [main] mkpasswd 20088 _pinfo::set_ctty: attaching ctty /dev/tty0 sid 19324, pid 20088, pgid 20088, tty->pgid 12956, tty->sid 19324
   32   30400 [main] mkpasswd 20088 open_shared: name cygpid.19324, n 19324, shared 0x30000 (wanted 0x0), h 0x17C
   56   30456 [main] mkpasswd 20088 fhandler_console::need_invisible: invisible_console 0
   20   30476 [main] mkpasswd 20088 dll_crt0_1: user_data->main 0x401CF0
   19   30495 [main] mkpasswd 20088 __set_errno: void dll_crt0_1(void*):936 val 0
  210   30705 [main] mkpasswd 20088 isatty: 1 = isatty (1)
  954   31659 [main] mkpasswd 20088 fhandler_base::fstat: here
   34   31693 [main] mkpasswd 20088 time: 1278964460 = time (0)
   25   31718 [main] mkpasswd 20088 fstat64: 0 = fstat (1, 0x28A358)
   47   31765 [main] mkpasswd 20088 isatty: 1 = isatty (1)
  124   31889 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(C1AC70, 28)
   20   31909 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   20   31929 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
SYSTEM:*:18:544:,S-1-5-18::
   22   31951 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
  140   32091 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(C1AC70, 61)
   24   32115 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   25   32140 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
   23   32163 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
  124   32287 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(C1AC70, 65)
   21   32308 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   20   32328 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
   21   32349 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
  616   32965 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(C1AC70, 41)
   25   32990 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   35   33025 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
Administrators:*:544:544:,S-1-5-32-544::
   28   33053 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
17961   51014 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(404200, 10)
   51   51065 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   41   51106 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
mkpasswd (   34   51140 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
   64   51204 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(28799D, 3)
   20   51224 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   21   51245 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
434   32   51277 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
   69   51346 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(40420C, 4)
   20   51366 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   24   51390 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
): [   26   51416 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
   55   51471 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(28799E, 2)
   20   51491 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   20   51511 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
31   22   51533 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
   60   51593 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(404213, 2)
   22   51615 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   21   51636 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
]    21   51657 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
   59   51716 [main] mkpasswd 20088 fhandler_tty_slave::write: tty0, write(287ACC, 53)
   20   51736 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: waiting -1 ms
   20   51756 [main] mkpasswd 20088 fhandler_tty_slave::write: (709): tty output_mutex: acquired
A device attached to the system is not functioning.
   22   51778 [main] mkpasswd 20088 fhandler_tty_slave::write: (752): tty output_mutex released
  445   52223 [main] mkpasswd 20088 close: close (0)
   22   52245 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::close: console_count 3, amount -1, ctty /dev/tty0, avoid_freeing_console 0
   22   52267 [main] mkpasswd 20088 fhandler_tty_slave::close: /dev/tty0 closed, usecount 3
   21   52288 [main] mkpasswd 20088 fhandler_tty_slave::close: just returning because archetype usecount is != 0
   21   52309 [main] mkpasswd 20088 close: 0 = close (0)
  335   52644 [main] mkpasswd 20088 close: close (1)
   20   52664 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::close: console_count 2, amount -1, ctty /dev/tty0, avoid_freeing_console 0
   22   52686 [main] mkpasswd 20088 fhandler_tty_slave::close: /dev/tty0 closed, usecount 2
   20   52706 [main] mkpasswd 20088 fhandler_tty_slave::close: just returning because archetype usecount is != 0
   22   52728 [main] mkpasswd 20088 close: 0 = close (1)
  282   53010 [main] mkpasswd 20088 close: close (2)
   20   53030 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::close: console_count 1, amount -1, ctty /dev/tty0, avoid_freeing_console 0
   27   53057 [main] mkpasswd 20088 fhandler_tty_slave::close: /dev/tty0 closed, usecount 1
   23   53080 [main] mkpasswd 20088 fhandler_tty_slave::close: just returning because archetype usecount is != 0
   20   53100 [main] mkpasswd 20088 close: 0 = close (2)
  168   53268 [main] mkpasswd 20088 do_exit: do_exit (0), exit_state 1
   24   53292 [main] mkpasswd 20088 void: 0x0 = signal (20, 0x1)
   20   53312 [main] mkpasswd 20088 void: 0x0 = signal (1, 0x1)
   20   53332 [main] mkpasswd 20088 void: 0x0 = signal (2, 0x1)
   22   53354 [main] mkpasswd 20088 void: 0x0 = signal (3, 0x1)
   23   53377 [main] mkpasswd 20088 init_cygheap::close_ctty: closing cygheap->ctty 0x61225814
   26   53403 [main] mkpasswd 20088 init_cygheap::manage_console_count: fhandler_tty_slave::close: console_count 0, amount -1, ctty /dev/tty0, avoid_freeing_console 0
   20   53423 [main] mkpasswd 20088 fhandler_tty_slave::close: /dev/tty0 closed, usecount 0
   20   53443 [main] mkpasswd 20088 fhandler_tty_slave::close: closing last open /dev/tty0 handle
   22   53465 [main] mkpasswd 20088 fhandler_tty_common::close: tty0 <0x184,0x188> closing
   43   53508 [main] mkpasswd 20088 sigproc_terminate: entering
   20   53528 [main] mkpasswd 20088 sig_send: sendsig 0x168, pid 20088, signal -42, its_me 1
   26   53554 [main] mkpasswd 20088 sig_send: Not waiting for sigcomplete.  its_me 1 signal -42
   22   53576 [main] mkpasswd 20088 sig_send: returning 0x0 from sending signal -42
  -17   53559 [sig] mkpasswd 20088 wait_sig: saw __SIGEXIT
   46   53605 [main] mkpasswd 20088 proc_terminate: nprocs 0
   35   53640 [main] mkpasswd 20088 proc_terminate: leaving
  -14   53626 [sig] mkpasswd 20088 wait_sig: signal thread exiting
   51   53677 [main] mkpasswd 20088 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156001
   20   53697 [main] mkpasswd 20088 __to_clock_t: total 00000000 0000000F
   47   53744 [main] mkpasswd 20088 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0
   25   53769 [main] mkpasswd 20088 __to_clock_t: total 00000000 00000000
  202   53971 [main] mkpasswd 20088 pinfo::exit: Calling ExitProcess n 0x0, exitcode 0x0
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck2.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100713/bb03a8d5/attachment.ksh>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list