public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Alex Malinovich" <baggend@howlermonkey.net>
To: <cygwin@cygwin.com>
Subject: RE: Win98 and multiple users
Date: Sun, 22 Jul 2001 02:48:00 -0000	[thread overview]
Message-ID: <000a01c11292$5f128920$0800a8c0@TheLoveShack.local> (raw)
In-Reply-To: <01C111EE.8F45F5E0.jorgens@coho.net>

It sounds like what you want to do is just have different user
'sessions' run by Cygwin. Cygwin uses your /etc/profile file, among
others, to determine who is logged on. You could modify the batch file
that launches the shell to be something along the lines of:

if %1x==x then goto end
if %1==foo then goto foo
if %1==bar then goto bar
goto end
:foo
cd \cygwin\bin
del /y ..\etc\profile.
ren ..\etc\profile.foo profile.
bash --login -i
goto end
:bar
cd \cygwin\bin
del /y ..\etc\profile.
ren ..\etc\profile.bar profile.
bash --login -i
:end

It's been a while since I've changed my preferences, and I'm sure that
there's at least one thing that I'm missing in addition to the profile,
but hopefully the above at least gives you a place to start from.
Assuming that your foo profile had your username set to foo and your
HOME set to /home/foo, and your bar had your HOME set to /home/bar, you
would have your individual profiles to work with within those
directories. (i.e. /home/foo/.bashrc)

-Alex
"insert fancy corporate title here"
"insert witty catch phrase here"

> -----Original Message-----
> From: cygwin-owner@sources.redhat.com 
> [ mailto:cygwin-owner@sources.redhat.com ] On Behalf Of Steve Jorgensen
> Sent: Saturday, July 21, 2001 4:08 PM
> To: cygwin@cygwin. Com (E-mail)
> Subject: RE: Win98 and multiple users
> 
> 
> I'm no Cygwin developer as of yet, but I think I can answer this one. 
>  Cygwin, for the most part, provides a 'nix wrapper around 
> Windows, and 
> uses Windows to do the work.
> 
> NT allows separate processes to run in different user 
> contexts, but Windows 
> 98 does not.  Thus, Windows 98 has no applicable 
> functionality to wrap. 
>  You would need an entire virtual machine with another copy 
> of Windows 
> running another Cygwin to do what you're talking about.
> 
> -----Original Message-----
> From:	Peter Jones [SMTP:funnytoes@whoever.com]
> Sent:	Saturday, July 21, 2001 1:23 PM
> To:	cygwin@cygwin.com
> Subject:	Win98 and multiple users
> 
> I'm not sure how this request will be taken...
> 
> I want to get cygwin to support multiple concurrent 
> _different_ logins 
> under Win98.  I want to have one window logged in as user_a 
> and another 
> logged in as user_b.
> 
> >From reading the archives and website, I can see no 
> _technical_ reason why 
> the cygwin heap can't keep track of separate users (after 
> all, it does 
> exactly that on WinNT).  Equally, I can't see what I need to 
> tweak to get 
> it to work on Win98.
> 
> (If Win98 users were really different users, there would be security 
> implications here.  However, all I really want to do is 
> organise different 
> collections of preferences for my different work mode - 
> without having to 
> log off Win98 to switch.)
> 
> Can anyone give me some pointers..?
> --
> 
> _______________________________________________
> FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
> 
> Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
> http://www.net2phone.com/cgi-bin/link.cgi?143
> 
> 
> --
> 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/
> 
> 
> --
> 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/
> 
> 
> 


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

  reply	other threads:[~2001-07-22  2:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-21 13:59 Steve Jorgensen
2001-07-22  2:48 ` Alex Malinovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-07-24  4:57 Lemke, Michael  ISC 1
2001-07-22  6:17 Funnytoes Foxwolf
2001-07-22  3:05 Funnytoes Foxwolf
2001-07-21 13:22 Peter Jones

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='000a01c11292$5f128920$0800a8c0@TheLoveShack.local' \
    --to=baggend@howlermonkey.net \
    --cc=cygwin@cygwin.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).