[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Winbind and /home dir mount



Hi there Cliebow. I am looking at your script and cannot seem to make too much sense of it. (Forgive me my scripting skilss are awful). What exactly does this script do? Does it mount your users home directories under linux from a Windows 2000 server with any permissions?

Kin Regards


On 24 Aug 2003 08:35:00 -0400
cliebow <cliebow downeast net> wrote:

> Told you it was dumb.....I have problems with CAPS on some filenames so
> I have to prompt for lower case.otherwise I could user $user.winbind
> reports user glutz as GLUTZ but the home directory is /home/glutz.
> 
> #!/bin/bash
> echo Class of 03 04 05 06 07 08 09 10 11 ? IF you are STAFF enter STAFF 
> read CLASS
> echo And your username on the next line
> read USERNAME
> echo 
> #echo please add your password now
> #read PASSWORD
> #if [ -d /home/$USER/META1 ]; then 
> #:
> #else mkdir /home/$USER/META1  
> #fi
> #if [ -d /home/$USER/META2 ]; then 
> #:
> #else mkdir /home/$USER/META2 
> #fi
> #if [ -d /home/$USER/STAFF ]; then 
> #:
> #else mkdir /home/$USER/STAFF
> #fi
> #################################################################
> if test $CLASS = 03; then smbmount //META1/Students
> /home/$USERNAME/META1 
> elif test $CLASS = 04; then smbmount //META2/Students
> /home/$USERNAME/META2
> elif test $CLASS = STAFF; then smbmount //META2/STAFF
> /home/$USERNAME/STAFF
> elif test $CLASS = 05; then smbmount //META1/Students
> /home/$USERNAME/META1 
> elif test $CLASS = 06; then smbmount //META2/Students
> /home/$USERNAME/META2
> elif test $CLASS = 07; then smbmount //META1/Students
> /home/$USERNAME/META1 
> elif test $CLASS = 08; then smbmount //META2/Students
> /home/$USERNAME/META2
> elif test $CLASS = 09; then smbmount //META1/Students
> /home/$USERNAME/META1 
> elif test $CLASS = 10; then smbmount //META2/Students
> /home/$USERNAME/META2
> elif test $CLASS = 11; then smbmount //META1/Students
> /home/$USERNAME/META1 
> fi
> echo
> echo YOU SHOULD HAVE ACCESS NOW TO ALL YOUR CITRIX DOCUMENTS
> sleep 11
> 
> 
> 
> 
> On Sun, 2003-08-24 at 00:36, John Simovic wrote:
> > can i have a copy of that "dumb" script please?
> > ----- Original Message ----- 
> > From: "cliebow" <cliebow downeast net>
> > To: <k12osn redhat com>
> > Sent: Sunday, August 24, 2003 11:54 AM
> > Subject: Re: [K12OSN] Winbind and /home dir mount
> > 
> > 
> > > i use winbind and mkhomedir to create home directories on a linux
> > > machine then use a dumb script to smbmount win2000 home on that home
> > > directory
> > >
> > > On Sat, 2003-08-23 at 19:46, Cornerstone Christian School wrote:
> > > > Howdy... ories
> > > >
> > > > Has anyone managed to get /home directories created as part of a login
> > > > on a Linux client for a windows based share with a UNC of
> > > > \\server\username$
> > > > I need to be able to create their home directories as they login as
> > > > users will be going between Window based client machines and Linux based
> > > > client machines.
> > > >
> > > > Any and all help would be appreciated. Have googled, but not come up
> > > > with what I need.
> > > >
> > > > TIA
> > > >
> > > > Shauna Ryall
> > > > Cornerstone Christian School
> > > > Abbotsford BC
> > > > Canada
> > > >
> > > >
> > > > _______________________________________________
> > > > K12OSN mailing list
> > > > K12OSN redhat com
> > > > https://www.redhat.com/mailman/listinfo/k12osn
> > > > For more info see <http://www.k12os.org>
> > > >
> > >
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN redhat com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > >
> > >
> > 
> > 
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN redhat com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> > 
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>


-- 
"Every job is a self-portrait of the person who did it"
Anon

**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]