Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <05EFF1DC3442D4119E7B00508BCF37AC08784EB7@HDNNTEX01.nextel.com> From: "Bohman, Carl" To: "'cygwin AT cygwin DOT com'" Subject: Difficulties getting who, id, telnet, and reality to agree Date: Tue, 16 Apr 2002 17:15:58 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" I'm relatively new to Cygwin (a great product overall), but I've searched the web, man pages, info documents, FAQ, mail list archives (in many different ways) and am still having difficulties with a few things. ========== Some (possibly) important details: ---------- * Windows 2000 professional * Installed Cygwin while logged in as cbohman (a domain user who is a member of the Administrators group). * Selected installation for "All Users" with default text file type of "Unix". * Installed all of the current Cygwin components listed under the "Full" installation. (Did not install any of the items marked "experimental.") * CYGWIN=tty ntsec * /etc/passwd and /etc/group files were built using mkpasswd and mkgroup and are attached at the bottom of this e-mail. (They have been edited slightly in attempts to address the issues mentioned below.) * One of the specific ways in which /etc/passwd was edited was adding the domain user cbohman to it via the command: mkpasswd -d -u cbohman >> /etc/passwd * inetd is installed and running as a service. ========== Questions: ---------- 1. When I run cygwin.bat, I am automatically logged on. How does Cygwin know who to log me in as? The reason for this question is that it logs me in as Administrator (local machine) even though I am logged onto the machine as cbohman (domain user). I can tell this, because the id command shows the following: $ id uid=26172(Administrator) gid=10513 groups=0(Everyone),544(Administrators),547(Power Users),545(Users) However, the who command properly shows me as being logged in as cbohman. ---------- 2. When I run who with users logged in locally and remotely, I can only see the local users. Running the last command shows me the local and remote users. See the following: $ who cbohman tty0 Apr 16 16:12 $ last | grep still cbohman tty1 REMOTESERVER Tue Apr 16 16:13 still logged in cbohman tty0 CYGWINSERVER Tue Apr 16 16:12 still logged in I know that who uses /var/run/utmp and last uses /var/log/wtmp. A previous message indicated that not all programs let utmp know what's going on. However, a separate message indicated that they had the who command working just fine. What am I doing wrong? ---------- 3. When I telnet in from another computer, id says that I am now logged in as SYSTEM, even though I logged in as cbohman: $ id uid=18(SYSTEM) gid=18(SYSTEM) groups=0(Everyone),544(Administrators) ========== I imagine that all of these questions are somehow related, but I have spent a lot of time trying to find resolutions with minimal success. Any tips or suggestions would be greatly appreciated. --Carl ========== /etc/passwd: ---------- root::0:0:U-Administrator,S-1-5-21-???-???-???-500:/home/root:/bin/bash Everyone:*:0:0:,S-1-1-0:: SYSTEM:*:18:18:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-CYGWINSERVER\Administrator,S-1- 5-21-633210887-1704668488-1440812852-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-CYGWINSERVER\Guest,S-1-5-21-633210887-1 704668488-1440812852-501:/home/Guest:/bin/bash cbohman:unused_by_nt/2000/xp:91708:10513:Bohman, Carl,U-MYDOMAIN\CBohman,S-1-5-21-1836978946-608909286-1136263860-81708:/home /cbohman:/bin/bash ========== /etc/group: ---------- Everyone:S-1-1-0:0: SYSTEM:S-1-5-18:18: None:S-1-5-21-633210887-1704668488-1440812852-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: ========== -- 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/