delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <2478543e0710120417v49a2318dy7de46211e377cfec@mail.gmail.com> |
Date: | Fri, 12 Oct 2007 07:17:02 -0400 |
From: | "Spencer Bailey" <spencerbaily AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Running two different profiles based on user loggin |
In-Reply-To: | <470F545A.10200@etr-usa.com> |
MIME-Version: | 1.0 |
References: | <2478543e0710120356u3afffbcas42d41d1f7706fa79 AT mail DOT gmail DOT com> <470F545A DOT 10200 AT etr-usa DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
There a 50+ users and the two profiles can change on a monthly basis. I don't want to have to maintain all the .profiles in users directories. Thanks On 10/12/07, Warren Young <warren AT etr-usa DOT com> wrote: > Spencer Bailey wrote: > > > > I've created two different profiles in /etc. profile.1 and profile.2 > > which both contain different aliases etc. Based on the user logging in > > I want to be able to run the correct profile. > > > > Is it possible to put in a check in the /etc/profile that is a certain > > user logs in to run the profile. Like... > > > > ---check for user "fred". If equal to fred > > . /etc/profile.1 > > > > otherwise > > > > . /etc/profile.2 > > Unless you have many users and a nearly even split of users needing one > profile over another, this is better handled in one of the per-user > profiles: > > ~/.profile > ~/.bash_profile > ~/.bashrc > > The differences among these are subtle, but it's a topic for a generic > Unix forum. > > -- > 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |