delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/04/13:12:42

X-Spam-Check-By: sourceware.org
Message-ID: <fb34b27b0608041012y8c2fd24j57149216ade5893f@mail.gmail.com>
Date: Fri, 4 Aug 2006 18:12:26 +0100
From: "Mark Fisher" <mark DOT j DOT fisher AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: need assistance w/sftp & home folder creation
In-Reply-To: <599515fa0608040958n1c7d078fi629f79e1fc18e05d@mail.gmail.com>
MIME-Version: 1.0
References: <599515fa0608040958n1c7d078fi629f79e1fc18e05d AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On 8/4/06, MyStiC wrote:
> Also, I am looking for a way to have the initial setup of the users'
> home directories to also create predefined links.  ie /home/user/
> link_1, link_2...  Presently, I am creating these links manually so
> the restricted users, or any user which is unfamiliar with the file
> system, can quickly access public resources.

can't help with the sftp, but one solution to creating the links is
to create a script that checks for them and creates them if they
don't exist. then put it in "/etc/profile.d/" and it will be run when
they run a shell and thus the links will be available to them.
i have several scripts in this area, export.sh, alias.sh, ...
to set common values for each shell.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019