public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Win98 and multiple users
@ 2001-07-22  6:17 Funnytoes Foxwolf
  0 siblings, 0 replies; 6+ messages in thread
From: Funnytoes Foxwolf @ 2001-07-22  6:17 UTC (permalink / raw)
  To: cygwin

Steve,

I thought the cygwin heap was, in essence, that virtual machine - it stores persistant data across invokations.  All that needs to happen, as far as I can see, is for the setuid/seteuid/etc/etc calls to set per-process values in the shared memory heap and for getuid/etc... to use that value.  The "uid" concept is completely lacking in Win98, so cygwin's spoofing that already.

-- Ft

-----Original Message-----
To: "cygwin at cygwin dot Com (E-mail)" <cygwin at cygwin dot com> 
Subject: RE: Win98 and multiple users 
From: Steve Jorgensen <jorgens at coho dot net> 
Date: Sat, 21 Jul 2001 14:07:33 -0700 
Reply-To: "jorgens at coho dot net" <jorgens at coho dot net> 


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.


-- 

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Win98 and multiple users
@ 2001-07-24  4:57 Lemke, Michael  ISC 1
  0 siblings, 0 replies; 6+ messages in thread
From: Lemke, Michael  ISC 1 @ 2001-07-24  4:57 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> Steve,
> 
> set up your /etc/passwd file (mkpasswd as suggested 
> in other messages, add passwords with crypt [and vi]) 
> and change "bash ..." in cygwin.bat to "login".
> 
> I didn't try if you really see different users with 
> getuid et al. but you do get the real Unix login 
> procedure.  I am doing this on W98SE.  YMMV.
> 
> Michael
> 
> 
> Steve,
> 
> I thought the cygwin heap was, in essence, that virtual machine - it
> stores persistant data across invokations.  All that needs to happen, as
> far as I can see, is for the setuid/seteuid/etc/etc calls to set
> per-process values in the shared memory heap and for getuid/etc... to
> use that value.  The "uid" concept is completely lacking in Win98, so
> cygwin's spoofing that already.
> 
> -- Ft
> 
> -----Original Message-----
> To: "cygwin at cygwin dot Com (E-mail)" <cygwin at cygwin dot com>
> Subject: RE: Win98 and multiple users
> From: Steve Jorgensen <jorgens at coho dot net>
> Date: Sat, 21 Jul 2001 14:07:33 -0700
> Reply-To: "jorgens at coho dot net" <jorgens at coho dot net>
> 
> 
> 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.
> 
> 
> --
> Michael Lemke  --  Information Services Communication (ISC 1)
> INA Werk Schaeffler oHG,            Tel: +49 (0)9132 - 82 3441
> Industriestr 1-3,                e-mail:   lemkemch@de.ina.com
> D-91074 Herzogenaurach
> 

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Win98 and multiple users
@ 2001-07-22  3:05 Funnytoes Foxwolf
  0 siblings, 0 replies; 6+ messages in thread
From: Funnytoes Foxwolf @ 2001-07-22  3:05 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Win98 and multiple users
  2001-07-21 13:59 Steve Jorgensen
@ 2001-07-22  2:48 ` Alex Malinovich
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Malinovich @ 2001-07-22  2:48 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Win98 and multiple users
@ 2001-07-21 13:59 Steve Jorgensen
  2001-07-22  2:48 ` Alex Malinovich
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Jorgensen @ 2001-07-21 13:59 UTC (permalink / raw)
  To: cygwin@cygwin. Com (E-mail)

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Win98 and multiple users
@ 2001-07-21 13:22 Peter Jones
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Jones @ 2001-07-21 13:22 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-07-24  4:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-22  6:17 Win98 and multiple users Funnytoes Foxwolf
  -- strict thread matches above, loose matches on Subject: below --
2001-07-24  4:57 Lemke, Michael  ISC 1
2001-07-22  3:05 Funnytoes Foxwolf
2001-07-21 13:59 Steve Jorgensen
2001-07-22  2:48 ` Alex Malinovich
2001-07-21 13:22 Peter Jones

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).