Re: How to run Cygwin from USB stick without admin access

2008-04-28 Thread Martin Fischer

   Fergus writes:
   Date: Fri, 25 Apr 2008 11:01:20 +0100
   
   ... but was stopped by the necessity to perform
   the mount command with admin rights.
   
   ... Can you say where it breaks down, for you?

Hi Fergus,

thank you for your response. It was three month ago, when I tried your
recipee, so my remembrance migth be a little vague. I don't have a
Cygwin USB stick available at the moment to reproduce the problem I
encountered instantly. But I will sure try it again as soon as
possible.

AFAIR:

  - I wanted to use / test the Cygwin installation from my USB stick
working on W2K under a restricted account (i.e. no admin rigths)

  - A cygwin installation existed on one of the hard disks which had
been performed as admin for all accounts on that system.

  - Trying to unmount the existing cygwin drives, I was told not to
have the needed admin rigths.

I'll be back

Martin
-- 
parozusa at web dot de


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



How to run Cygwin from USB stick without admin access (was: Install cygwin in Win2K as nonadmin...)

2008-04-25 Thread Martin Fischer

   Thorsten Kampe writes:
   Date: Thu, 24 Apr 2008 13:06:02 +0200
   
   * Paul Domaskis (Tue, 22 Apr 2008 16:47:16 -0400)
   I will be using a standalone Win2K machine on which I will likely not
   have admin access.  Will this be a problem, if I choose to install
   only for the account of interest?
   
   No, I use that version exclusively on my machines (because I run Cygwin 
   from my USB stick).
   

Hi,

I tried running Cygwin from USB stick following the instructions of
Fergus Bonhard for CDs analogously
(http://www.cygwin.com/ml/cygwin/2003-07/msg01117.html referred to in
the FAQ), but was stopped by the necessity to perform the mount
command with admin rights.

What is your solution in general and with respect to that detail ?

Cheers

Martin
-- 
parozusa at web dot de


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to run Cygwin from USB stick without admin access

2008-04-25 Thread Fergus

 ... but was stopped by the necessity to perform
 the mount command with admin rights.

Hi, I use Cygwin the whole time from a mobile drive on home, work and 
other people's machines none of which have Cygwin installed (but they 
could have). The principles are the same as for CD-bound systems but 
with much more flexibility (size and write-ability). I'm afraid I have 
never found any difficulty using it on ancient W98 machines, and on 
machines running XP up to SP3 (and even Vista, now with SP1) but have 
never knowingly tried it on W2K. A big chunk of the startup (.cmd or 
.bat) file is devoted to preserving any pre-existing mounts and if you 
don't need to do this the startup file is very brief and straightforward 
(isn't it? in hundreds of contexts on different machines I suppose I 
could even now be missing some obvious difficulty) as follows (where h: 
is your USB drivename):


  @h:\bin\mount -buf h:/bin /usr/bin
  @h:\bin\mount -buf h:/lib /usr/lib
  @h:\bin\mount -buf h:/ /
  @h:\bin\mount -bufc /
  @set SHELL=/bin/bash
  @set HOME=/home/user # OR WHATEVER YOUR $HOME IS
  @start /wait h:\bin\bash
  @set HOME=
  @set SHELL=

This script can be rendered considerably more sophisticated but this 
would be a good starting point if you are bug-hunting. Can you say where 
it breaks down, for you?


Fergus



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to run Cygwin from USB stick without admin access

2008-04-25 Thread Paul Domaskis
Martin Fischer wrote:
 Thorsten Kampe writes:
 * Paul Domaskis (Tue, 22 Apr 2008 16:47:16 -0400)
 I will be using a standalone Win2K machine on which I will likely not
 have admin access.  Will this be a problem, if I choose to install
 only for the account of interest?

 No, I use that version exclusively on my machines (because I run Cygwin
 from my USB stick).

 I tried running Cygwin from USB stick following the instructions of
 Fergus Bonhard for CDs analogously
 (http://www.cygwin.com/ml/cygwin/2003-07/msg01117.html referred to in
 the FAQ), but was stopped by the necessity to perform the mount
 command with admin rights.

 What is your solution in general and with respect to that detail ?

I don't actually do this.  I was just remarking on the coolness that
it could be done (by Thorsten).  See  his follow-up to my expression
of Wow.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/