public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Doug Wyatt" <dwyatt@sunflower.com>
To: michael.cameron@technologist.com
Cc: cygwin@sources.redhat.com
Subject: Re: newbie: using su
Date: Thu, 31 Aug 2000 02:51:00 -0000	[thread overview]
Message-ID: <200008310950.EAA20904@smtp.sunflower.com> (raw)
In-Reply-To: <000830045627GB.29719@webb1.iname.net>

Hi,

I'm sorry, but I don't know the answers to your questions about juggling
the /etc/passwd file.  My superficial answer would be that when you
logon to the PC, that's who you are, unless you use the ntreskit su.exe.
The /etc/passwd file only provides a unix-like image of the PC's
authentication info for unix tools to use.

I believe the string in the GECOS field is an NT SID.

Regards,
Doug Wyatt

> Okay, so su doesn't work, can I just use brute force? If I ALWAYS want
> to log on as another user (the "owner" of a particular application) and never
> as me (my W2K login for mail etc..)
> 
> What if I remove my entry from /etc/passwd, make a copy of the desired
> users entry in /etc/passwd then change the name in that entry to my user
> name (making sure this entry comes after the real users entry).  I then log
> in as me but am now the first user.  Any side-effects that I should be aware
> of?
> 
> example:
> desireduser::1002:513:The user I want to be,S-1-5-21-1538995194-1560047842-1096501715-1002::/bin/sh
> me::1002:513:trendadm,S-1-5-21-1538995194-1560047842-1096501715-1002::/bin/sh
> 
> 
> Michael
> 
> P.S. What is that entry in the gecos field?




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

  reply	other threads:[~2000-08-31  2:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-30  1:56 michael.cameron
2000-08-31  2:51 ` Doug Wyatt [this message]
2000-08-31  3:15   ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2000-08-30  0:55 michael.cameron
2000-08-29 15:43 michael.cameron
2000-08-30  0:25 ` Doug Wyatt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200008310950.EAA20904@smtp.sunflower.com \
    --to=dwyatt@sunflower.com \
    --cc=cygwin@sources.redhat.com \
    --cc=michael.cameron@technologist.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).