delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/22/06:06:00

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
Message-ID: <20010722100521.8947.qmail@mail.com>
MIME-Version: 1.0
X-Mailer: MIME-tools 5.41 (Entity 5.404)
From: "Funnytoes Foxwolf" <funnytoes AT whoever DOT com>
To: cygwin AT cygwin DOT com
Date: Sun, 22 Jul 2001 10:05:21 +0000
Subject: RE: Win98 and multiple users

Alex,

Thanks for your thoughts.  Unfortunately, this doesn't fool any programs that use getuid (or id.exe, etc) to work out what settings to use.  It'll get around one or two things, but so many unix utils know about getuid and getpwent to find a user's details, it falls apart..! :-)

Ta.

-- Ft

-----Original Message-----
To: <cygwin at cygwin dot com> 
Subject: RE: Win98 and multiple users 
From: "Alex Malinovich" <baggend at howlermonkey dot net> 
Date: Sun, 22 Jul 2001 04:40:40 -0500 

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"

-- 

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

- Raw text -


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