RE: [Leaf-devel] LDAP chown to dummy

2001-02-10 Thread Mike Noyes

x-flowedAt 07:11 PM 2/9/01 -0800, Steven Peck [EMAIL PROTECTED] wrote:
Mike,

Seeing as I haven't set up a directory yet, is this something I won't have 
to do when I shell in for the first time?

Steven,
Correct. It's only a problem for people that already have content on our site.

-Original Message-
From: Mike Noyes [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [Leaf-devel] LDAP chown to dummy


At 09:14 AM 2/9/01 -0600, [EMAIL PROTECTED] wrote:
 On 9 Feb 2001, at 14:39, Mike Noyes wrote:
 
   Thanks! I just verified that this works. I should have tried the archive
   switch before.
 
 Don't you need the -R switch to recurse?

David,
-a is a shortcut for -dpR

   $ cd /home/groups/leaf/htdocs
   $ mv yourname ..
   $ cp -a ../yourname .
   $ rm -rf ../yourname
   $ cd /home/groups/ftp/pub/leaf/devel
   $ mv yourname ..
   $ cp -a ../yourname .
   $ rm -rf ../yourname
 
 How about this?
 
 #!/bin/ksh
 
 HTTP_HOME=/home/groups/leaf
 FTP_HOME=/home/groups/ftp/pub/leaf/devel
 
 tag () {
 cd $1
 [ ! -f $2 ]  exit 1
 mv $2 ..
 cp -a ../$2 .  rm -rf ../$2
 }
 
 tag $HTTP_HOME $1 || echo http: err!
 tag $FTP_HOME $1 || echo ftp: err!
 
 makes a nice program to put in somewhere...

Yes it does, and I'm glad someone can write things like this. As you 
are  already well aware, I'm probably the most inept admin in the history 
of unix.

Free time has its virtues though. :)

--
Mike Noyes [EMAIL PROTECTED]
http://leaf.sourceforge.net/


___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel
/x-flowed



RE: [Leaf-devel] LDAP chown to dummy

2001-02-10 Thread Mike Noyes

x-flowedAt 06:06 AM 2/10/01 -0800, Mike Noyes [EMAIL PROTECTED]
$ cd /home/groups/leaf/htdocs
$ mv yourname ..
$ cp -a ../yourname .
$ rm -rf ../yourname

Everyone,
I forgot to add this command.

$ chmod -R g-w yourname

$ cd /home/groups/ftp/pub/leaf/devel
$ mv yourname ..
$ cp -a ../yourname .
$ rm -rf ../yourname

$ chmod -R g-w yourname


- chowncp.sh -

I've created a generic shell script that will allow us to chown files. It's 
in my home directory with the name chowncp.sh . After you ssh into shell1:
$ cp ../mhnoyes/chowncp.sh .

Any suggestions for improvement are welcome.

David,
Thank you for suggesting the idea and providing a ksh example.

--
Mike Noyes [EMAIL PROTECTED]
http://leaf.sourceforge.net/


___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel
/x-flowed



RE: [Leaf-devel] LDAP chown to dummy

2001-02-10 Thread Mike Noyes

x-flowedEveryone,
WARNING: The script mentioned below does very little error checking, and 
will only work from the directory where the SOURCE is.

At 11:22 AM 2/10/01 -0800, Mike Noyes [EMAIL PROTECTED] wrote:
- chowncp.sh -

I've created a generic shell script that will allow us to chown files. 
It's in my home directory with the name chowncp.sh . After you ssh into shell1:
$ cp ../mhnoyes/chowncp.sh .

Any suggestions for improvement are welcome.

David,
Thank you for suggesting the idea and providing a ksh example.

--
Mike Noyes [EMAIL PROTECTED]
http://leaf.sourceforge.net/


___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel
/x-flowed



Re: [Leaf-devel] LDAP chown to dummy

2001-02-09 Thread ssrat

On 9 Feb 2001, at 14:39, Mike Noyes wrote:

 Thanks! I just verified that this works. I should have tried the archive 
 switch before.

Don't you need the -R switch to recurse?

 $ cd /home/groups/leaf/htdocs
 $ mv yourname ..
 $ cp -a ../yourname .
 $ rm -rf ../yourname
 $ cd /home/groups/ftp/pub/leaf/devel
 $ mv yourname ..
 $ cp -a ../yourname .
 $ rm -rf ../yourname

How about this?

#!/bin/ksh

HTTP_HOME=/home/groups/leaf
FTP_HOME=/home/groups/ftp/pub/leaf/devel

tag () {
   cd $1
   [ ! -f $2 ]  exit 1
   mv $2 ..
   cp -a ../$2 .  rm -rf ../$2
   }

tag $HTTP_HOME $1 || echo http: err!
tag $FTP_HOME $1 || echo ftp: err!

makes a nice program to put in somewhere...

-- 
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
[EMAIL PROTECTED]

___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel



RE: [Leaf-devel] LDAP chown to dummy

2001-02-09 Thread Steven Peck

Mike,

Seeing as I haven't set up a directory yet, is this something I won't have
to do when I shell in for the first time?

Steven

-Original Message-
From: Mike Noyes [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [Leaf-devel] LDAP chown to dummy


At 09:14 AM 2/9/01 -0600, [EMAIL PROTECTED] wrote:
On 9 Feb 2001, at 14:39, Mike Noyes wrote:

  Thanks! I just verified that this works. I should have tried the archive
  switch before.

Don't you need the -R switch to recurse?

David,
-a is a shortcut for -dpR

  $ cd /home/groups/leaf/htdocs
  $ mv yourname ..
  $ cp -a ../yourname .
  $ rm -rf ../yourname
  $ cd /home/groups/ftp/pub/leaf/devel
  $ mv yourname ..
  $ cp -a ../yourname .
  $ rm -rf ../yourname

How about this?

#!/bin/ksh

HTTP_HOME=/home/groups/leaf
FTP_HOME=/home/groups/ftp/pub/leaf/devel

tag () {
cd $1
[ ! -f $2 ]  exit 1
mv $2 ..
cp -a ../$2 .  rm -rf ../$2
}

tag $HTTP_HOME $1 || echo http: err!
tag $FTP_HOME $1 || echo ftp: err!

makes a nice program to put in somewhere...

Yes it does, and I'm glad someone can write things like this. As you are 
already well aware, I'm probably the most inept admin in the history of
unix.

Free time has its virtues though. :)

--
Mike Noyes [EMAIL PROTECTED]
http://leaf.sourceforge.net/


___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [Leaf-devel] LDAP chown to dummy

2001-02-08 Thread Mike Noyes

x-flowedEveryone,
Don't worry about the chown problem. I'm going to submit a support request 
tonight to fix the ownership problems. Patrick Greenwell (SF support staff) 
suggested this solution.

--
Mike Noyes [EMAIL PROTECTED]
http://leaf.sourceforge.net/


___
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel
/x-flowed