delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/22/05:48:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Alex Malinovich" <baggend AT howlermonkey DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: Win98 and multiple users
Date: Sun, 22 Jul 2001 04:40:40 -0500
Message-ID: <000a01c11292$5f128920$0800a8c0@TheLoveShack.local>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2505.0000
In-Reply-To: <01C111EE.8F45F5E0.jorgens@coho.net>
Importance: Normal

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 AT sources DOT redhat DOT com 
> [mailto:cygwin-owner AT sources DOT redhat DOT com] On Behalf Of Steve Jorgensen
> Sent: Saturday, July 21, 2001 4:08 PM
> To: cygwin AT 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 AT whoever DOT com]
> Sent:	Saturday, July 21, 2001 1:23 PM
> To:	cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019