This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[2]: different mount table per bash session


Received: from epsilon.dmz-eu.st.com (ns1.st.com [164.129.230.8])
        by eux100.sgp.st.com (8.9.3 (PHNE_24419+JAGae58098)/8.9.3) with ESMTP id RAA05828
        for <saber dot zrelli at st dot com>; Mon, 21 Apr 2003 17:04:16 +0200 (METDST)
Received: (from nobody at localhost)
        by epsilon.dmz-eu.st.com (8.11.4/8.11.2) id h3LF4F921205
        for saber dot zrelli at st dot com; Mon, 21 Apr 2003 15:04:15 GMT
Received: by epsilon.dmz-eu.st.com (STMicroelectronics, from userid 0)
        id AA8BA48C4; Mon, 21 Apr 2003 15:04:15 +0000 (GMT)
Received: from alpha.dmz-eu.st.com (localhost [127.0.0.1])
        by epsilon.dmz-eu.st.com (STMicroelectronics) with ESMTP id 697101845
        for <saber dot zrelli at st dot com>; Mon, 21 Apr 2003 15:04:15 +0000 (GMT)
Received: from sources.redhat.com (sources.redhat.com [66.187.233.205])
        by alpha.dmz-eu.st.com (STMicroelectronics) with SMTP id A8FF9DA41
        for <saber dot zrelli at st dot com>; Mon, 21 Apr 2003 15:04:14 +0000 (GMT)
Received: (qmail 20806 invoked by alias); 21 Apr 2003 15:03:42 -0000
Mailing-List: contact cygwin-help at cygwin dot com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-saber dot zrelli=st dot com at cygwin dot com>
List-Subscribe: <mailto:cygwin-subscribe at cygwin dot com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin at cygwin dot com>
List-Help: <mailto:cygwin-help at cygwin dot com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner at cygwin dot com
Mail-Followup-To: cygwin at cygwin dot com
Delivered-To: mailing list cygwin at cygwin dot com
Received: (qmail 20797 invoked from network); 21 Apr 2003 15:03:41 -0000
Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14)
  by sources.redhat.com with SMTP; 21 Apr 2003 15:03:41 -0000
Received: from localhost (pechtcha at localhost)
        by slinky.cs.nyu.edu (8.11.7+Sun/8.11.7) with ESMTP id h3LF3eX15833;
        Mon, 21 Apr 2003 11:03:40 -0400 (EDT)
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 21 Apr 2003 11:03:40 -0400 (EDT)
From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
Reply-To: cygwin at cygwin dot com
To: saber dot zrelli at st dot com
Cc: cygwin at cygwin dot com
Subject: Re: different mount table per bash session
In-Reply-To: <H0000b6d6dcedd95 dot 1050935884 dot eux100 dot sgp dot st dot com at MHS>
Message-ID: <Pine dot GSO dot 4 dot 44 dot 0304211051530 dot 19398-100000 at slinky dot cs dot nyu dot edu>
Importance: Normal
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine dot GSO dot 4 dot 44 dot 0304211051532 dot 19398 at slinky dot cs dot nyu dot edu>
Content-Disposition: INLINE; FILENAME="1.txt"; CREATION-DATE="Mon, 21 Apr 2003 16:38:04 +0200"
     Sorry Igor ,
     my mail program, is very limited  but secure , not like some MS 
     products , in my company use of other mail prg is prohibited.
     
     There is a product called MSYS  ( Cygwin like ) , quite nice , it 
     saves the mount tab in a file.
     i copied it into my working drives and configured the mount tab 
     by a script which fetch the current drive letter nad create the mount 
     table first.
     then i lanch my application using the sh of the current MSYS directory 
     ,wich will use the private mout table.
     temporarly i'm using this solution , but i think tha't using runas is 
     better , so i'm working on.
     
     thank you very much =)
     
     PS : my shift key still don't work ??
     
     
     


______________________________ Reply Separator _________________________________
Subject: Re: different mount table per bash session
Author:  pechtcha at internet/dd dot RFC-822=pechtcha at cs\ dot nyu\ dot edu
Date:    4/21/2003 5:03 PM


Saber,
     
Please honor the Reply-To: -- there is no need to Cc: me, I'm on the list. 
Also, that's a *really* weird method of quoting...  I wonder which mailer 
uses it...
     
Cygwin gets the user information from Windows.  It relies on Windows to do 
the authentication (in case of NT).  Cygwin has an /etc/passwd (and an 
/etc/group), but uses it to store information that Windows doesn't (such 
as the login shell).  Use Windows tools (e.g. "net user") to add users and 
groups.
     
"login" most likely won't work for switching user contexts; for details 
see <http://cygwin.com/ml/cygwin/2001-03/msg00337.html>.  The preferred 
method for switching user contexts is either "ssh user at localhost" with a 
running sshd, the Windows-provided "runas" command (see "runas /?"), or 
"at /interactive ... login user" (see "at /?" for details).
        Igor
P.S. Your "Shift" key is still not fixed.
     
On Mon, 21 Apr 2003 saber dot zrelli at st dot com wrote:
     
     Igor,
     the user that cygwin considers is the windows user ,
     is it possible , to emulate multi user session system with cygwin ; 
     make cygwin consider a /etc/passwd like file.
     allowing user switch using login command ?
     when i see to /bin , i don't see neither adduser , nor addgroup.
     
______________________________ Reply Separator _________________________________
Subject: Re: different mount table per bash session
Author:  pechtcha at internet/dd dot RFC-822=pechtcha at cs\ dot nyu\ dot edu 
Date:    4/21/2003 4:02 PM
     
     
On Fri, 18 Apr 2003 saber dot zrelli at st dot com wrote:
     
> Hi there ,
>
> I'm using cygwin bash to run a certain nmber of processes on separate 
> drives , each time i start a new process i mount it's working drive , 
> but this way all previous processes change their working drive ; cause 
> of the latest mount.
> could some one tell me how could i resolve this problem. 
>
> Tks .
     
Saber,
     
I'm assuming you're only talking about auxiliary mounts, and that the main 
mounts ("/", "/usr/bin", and "/usr/lib") are the same for all bash 
instances.
     
Cygwin only supports two mount tables at a time for each user (one system 
table and one user table).  The system table is shared among all users. 
Aside from the fact that (as Rolf has pointed out) you don't really *need* 
to mount anything, the only way you can get separate mount tables in 
separate bash sessions is by running them as different users.  You could 
use either "ssh" or "at /interactive" to switch user contexts.  Don't 
forget to use "mount -u", or you'll be changing the system mount table.
        Igor
P.S. Your "Shift" key seems to be malfunctioning... 
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_            igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
     
Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II
     
     
--
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/
     
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_            igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
     
Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II
     
     
--
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/
     

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]