From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Funnytoes Foxwolf" To: cygwin@cygwin.com Subject: RE: Win98 and multiple users Date: Sun, 22 Jul 2001 03:05:00 -0000 Message-id: <20010722100521.8947.qmail@mail.com> X-SW-Source: 2001-07/msg01229.html 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: Subject: RE: Win98 and multiple users From: "Alex Malinovich" 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/