Google Groups Home
Help | Sign in
Mike releases the "home" command under the GPL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 48 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Cox  
View profile  
 More options Jan 25 2004, 2:49 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: mikecoxli...@yahoo.com (Mike Cox)
Date: 24 Jan 2004 17:49:42 -0800
Local: Sun, Jan 25 2004 2:49 am
Subject: Mike releases the "home" command under the GPL
/*
        ********   home command ********
        The 'home'command takes you to your home directory if
        you've been wandering far, and don't want to type so
        much.  Just type "home" at the shell, and you're immediatly
        transported to /home/yourusername/

        (c) 2004 Mike Cox. Released under the GNU GPL License.
        email:  mikecoxli...@yahoo.com
        web: www.geocities.com/mikecoxlinux/

        compile instructions:
        g++ -o home home.cpp

        install instructions:
        move it to the /bin directory.

        ..Or create a Makefile as follows:
        home: home.cpp
                g++ -o home home.cpp
        install:
                mv home /bin/
        clean:
                rm home

*/
#include <iostream>

int main()
{
        char* name= new char[strlen(getlogin()) + 1];
        strcpy(name,getlogin());
        if(strcmp(name, "root") == 0)
        {
                std::cout<<"going to home directory...\n";
                FILE* pipe;
                pipe =  popen("cd /root/", "w");    
                pclose(pipe);
        } else{
                char* base = "/home/";
                strcat(base, name);
                FILE* bong;
                std::cout<<"going to home directory...\n";
                bong = popen(base,"w");
                pclose(bong);
        }

        delete [] name;
        return 0;


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Curtis  
View profile  
 More options Jan 25 2004, 3:05 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: Tony Curtis <tony_curtis32@_SPAMTRAP_yahoo.com>
Date: Sat, 24 Jan 2004 20:05:47 -0600
Local: Sun, Jan 25 2004 3:05 am
Subject: Re: Mike releases the "home" command under the GPL

>> On 24 Jan 2004 17:49:42 -0800,
>> mikecoxli...@yahoo.com (Mike Cox) said:
> /* ******** home command ******** The 'home'command takes
> you to your home directory if you've been wandering far, and
> don't want to type so much.  Just type "home" at the shell,
> and you're immediatly transported to /home/yourusername/

"home" is shorter than "cd"?

And how does a child process affect its parent's environment?

Your install instructions are also contradictory.

hth
t


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Smith  
View profile  
 More options Jan 25 2004, 3:13 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: Tim Smith <reply_in_gr...@mouse-potato.com>
Date: Sun, 25 Jan 2004 02:13:33 GMT
Local: Sun, Jan 25 2004 3:13 am
Subject: Re: Mike releases the "home" command under the GPL

In article <3d6111f1.0401241749.22dc5...@posting.google.com>, Mike Cox wrote:
> #include <iostream>

> int main()
> {
>    char* name= new char[strlen(getlogin()) + 1];
>    strcpy(name,getlogin());

Why call getlogin twice?

    char * login_name = getlogin();
    int name_len = strlen(login_name);
    char * name = new char[name_len+1];
    strcpy(name,login_name);

or better yet, use std::string:

    std::string name(getlogin());

>    if(strcmp(name, "root") == 0)
>    {
>            std::cout<<"going to home directory...\n";
>            FILE* pipe;
>            pipe =  popen("cd /root/", "w");    
>            pclose(pipe);
>    } else{
>            char* base = "/home/";
>            strcat(base, name);

String constants like "/home/" aren't guaranteed to be in writable memory.
If it is, you've just trashed whatever followed it.  You want this:

                char * base = new char[name_len + 7];
                strcpy( base, "/home/" );
                strcat( base, name );

But wait...what is the point of the "name" variable?

                char * base = new char[name_len + 7];
                strcpy( base, "/home/" );
                strcat( base, login_name );

Or, doing this right and using std::string:

                std::string base = "/home/" + std::string(getlogin());

>            FILE* bong;
>            std::cout<<"going to home directory...\n";
>            bong = popen(base,"w");

Oops.  You left out the "cd".  Change "/home/" in the earlier stuff to
"cd /home/".

>            pclose(bong);
>    }

>    delete [] name;
>    return 0;
> }

After you build this and it doesn't work, and you finally figure out why, you
will feel really dumb.  However, don't feel bad.  Dennis Ritchie made the
same mistake when he implemented the "cd" command way back on the earliest
Unix that had a shell and a filesystem with directories. :-)

--
--Tim Smith


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frostbite  
View profile  
 More options Jan 25 2004, 3:15 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.misc
From: Frostbite <bill.ga...@ms.com>
Date: Sun, 25 Jan 2004 02:15:06 GMT
Local: Sun, Jan 25 2004 3:15 am
Subject: Re: Mike releases the "home" command under the GPL

Mike Cox wrote:
> /*
> ********   home command ********
> The 'home'command takes you to your home directory if
> you've been wandering far, and don't want to type so
> much.  Just type "home" at the shell, and you're immediatly
> transported to /home/yourusername/

just type "cd", dipshit

--


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zyzzx  
View profile  
 More options Jan 25 2004, 3:31 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.misc
From: zyzzx <m...@privacy.net>
Date: Sun, 25 Jan 2004 13:31:38 +1100
Local: Sun, Jan 25 2004 3:31 am
Subject: Re: Mike releases the "home" command under the GPL

Mike Cox wrote:
> /*
> ********   home command ********
> The 'home'command takes you to your home directory if
> you've been wandering far, and don't want to type so
> much.  Just type "home" at the shell, and you're immediatly
> transported to /home/yourusername/

[...]

What's wrong with 'cd ~'?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Webb  
View profile  
 More options Jan 25 2004, 3:46 am
Newsgroups: comp.os.linux.misc
From: Rich Webb <bbew...@mapson.nozirev.ten>
Date: Sun, 25 Jan 2004 02:46:14 GMT
Local: Sun, Jan 25 2004 3:46 am
Subject: Re: Mike releases the "home" command under the GPL

On Sun, 25 Jan 2004 02:15:06 GMT, Frostbite <bill.ga...@ms.com> wrote:
>Mike Cox wrote:

>> /*
>> ********   home command ********
>> The 'home'command takes you to your home directory if
>> you've been wandering far, and don't want to type so
>> much.  Just type "home" at the shell, and you're immediatly
>> transported to /home/yourusername/

>just type "cd", dipshit

LOL   I love it when the humor-impaired "don't get it."  ;-)

--
Rich Webb   Norfolk, VA


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Connor  
View profile  
 More options Jan 25 2004, 3:58 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: Alan Connor <zzz...@xxx.yyy>
Date: Sun, 25 Jan 2004 02:58:32 GMT
Local: Sun, Jan 25 2004 3:58 am
Subject: Re: Mike releases the "home" command under the GPL
On 24 Jan 2004 17:49:42 -0800, Mike Cox <mikecoxli...@yahoo.com> wrote:

> /*
>    ********   home command ********
>    The 'home'command takes you to your home directory if
>    you've been wandering far, and don't want to type so
>    much.  Just type "home" at the shell, and you're immediatly
>    transported to /home/yourusername/

This has got to be a joke.

On every nix box I have ever seen, simply entering "cd" with no arguments
takes you to your home directory.

If it didn't, then a simple function in one's ~/.bashrc (etc) would do
the job:

ho () {

        cd $HOME

}

Now HERE'S a useful little function.

cs ()   {

        cd "$1" &&  ls -Fa

}

A combination of cd and ls. Type cs and your destination directory, and
you go there AND ls is -Fa is run on the directory.

AC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Richardson  
View profile  
 More options Jan 25 2004, 4:00 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: Jim Richardson <warl...@eskimo.com>
Date: Sat, 24 Jan 2004 18:44:46 -0800
Local: Sun, Jan 25 2004 3:44 am
Subject: Re: Mike releases the "home" command under the GPL
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24 Jan 2004 17:49:42 -0800,
 Mike Cox <mikecoxli...@yahoo.com> wrote:

Or, you could just type cd

cd, with no options, will return you to $HOME, your home directory.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAEy2ed90bcYOAWPYRAltIAJ4rRXNcVQkSjO8bxqIT3POALHnkhgCg1Mqh
McAWHjigDCUWrsFgoAWHDQw=
=SUii
-----END PGP SIGNATURE-----

--
Jim Richardson     http://www.eskimo.com/~warlock
I'd explain it all to you, but your brain would explode.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Connor  
View profile  
 More options Jan 25 2004, 4:28 am
Newsgroups: comp.os.linux.misc
From: Alan Connor <zzz...@xxx.yyy>
Date: Sun, 25 Jan 2004 03:28:30 GMT
Local: Sun, Jan 25 2004 4:28 am
Subject: Re: Mike releases the "home" command under the GPL

We probably should have just laid back and waited for some newbie to
install it....

Wouldn't it have been fun to guide them through the compilation steps?
Help them create the Makefile?

:-)

(On the other hand, they'd learn a lot by doing it, so....?)

My second thought after laughing out loud was that it could be malicious code...

AC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Keith Keller  
View profile  
 More options Jan 25 2004, 5:40 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.misc
From: Keith Keller <kkeller-use...@wombat.san-francisco.ca.us>
Date: Sat, 24 Jan 2004 20:26:56 -0800
Local: Sun, Jan 25 2004 5:26 am
Subject: Re: Mike releases the "home" command under the GPL
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

["Followup-To:" header set to comp.os.linux.misc.]

On 2004-01-25, Mike Cox <mikecoxli...@yahoo.com> wrote:

> /*
>    ********   home command ********
>    The 'home'command takes you to your home directory if
>    you've been wandering far, and don't want to type so
>    much.  Just type "home" at the shell, and you're immediatly
>    transported to /home/yourusername/

% pwd
/usr/home/kkeller
% cd /ive/been/wandering/far
% home
% pwd
/ive/been/wandering/far

Works great!  When's v2.0 coming out?  I think you should rewrite it in
assembly, so that it's more efficient.

- --keith

(no, I didn't actually *try* it!  (-:  )

- --
kkeller-use...@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAE0WNhVcNCxZ5ID8RAtuNAKCJpVY7P6HKtP31X51ZwogAIQhA5ACaAksd
0iufWsu02pTZry3MUtOJ7DI=
=/nrk
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wild Wizard  
View profile  
 More options Jan 25 2004, 5:56 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.misc
From: Wild Wizard <y...@right.com>
Date: Sun, 25 Jan 2004 04:55:02 GMT
Local: Sun, Jan 25 2004 5:55 am
Subject: Re: Mike releases the "home" command under the GPL

Tim Smith wrote:
> After you build this and it doesn't work, and you finally figure out why,
> you

he wont even get that far he forgot an #include <unistd.h> for getlogin()

--
Machine-Independent, adj.:
        Does not run on any existing machine.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Browne  
View profile  
 More options Jan 25 2004, 6:16 am
Newsgroups: comp.os.linux.misc
From: Christopher Browne <cbbro...@acm.org>
Date: 25 Jan 2004 05:15:59 GMT
Local: Sun, Jan 25 2004 6:15 am
Subject: Re: Mike releases the "home" command under the GPL

Rich Webb <bbew...@mapson.nozirev.ten> wrote:
> On Sun, 25 Jan 2004 02:15:06 GMT, Frostbite <bill.ga...@ms.com> wrote:

>>Mike Cox wrote:

>>> /*
>>> ********   home command ********
>>> The 'home'command takes you to your home directory if
>>> you've been wandering far, and don't want to type so
>>> much.  Just type "home" at the shell, and you're immediatly
>>> transported to /home/yourusername/

>>just type "cd", dipshit

> LOL   I love it when the humor-impaired "don't get it."  ;-)

And you realize that when someone from MIT sees this, they'll upgrade
it to include a mail client...
--
let name="aa454" and tld="freenet.carleton.ca" in String.concat "@" [name;tld];;
http://www.ntlug.org/~cbbrowne/languages.html
"In order to make an apple pie from scratch, you must first create the
universe."  -- Carl Sagan, Cosmos

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris F.A. Johnson  
View profile  
 More options Jan 25 2004, 6:56 am
Newsgroups: comp.os.linux.misc
From: "Chris F.A. Johnson" <c.fa.john...@rogers.com>
Date: 25 Jan 2004 05:56:46 GMT
Local: Sun, Jan 25 2004 6:56 am
Subject: Re: Mike releases the "home" command under the GPL

     No, that should be done in shell......

--
    Chris F.A. Johnson                        http://cfaj.freeshell.org
    ===================================================================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
General Protection Fault  
View profile  
 More options Jan 25 2004, 7:14 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.advocacy
From: General Protection Fault <genera...@braids.ertw.com>
Date: Sun, 25 Jan 2004 06:14:37 GMT
Local: Sun, Jan 25 2004 7:14 am
Subject: Re: Mike releases the "home" command under the GPL
["Followup-To:" header set to comp.os.linux.advocacy.]

On Sat, 24 Jan 2004 18:44:46 -0800, Jim Richardson wrote:

> Or, you could just type cd

> cd, with no options, will return you to $HOME, your home directory.

On Windows NT/2K/XP, do a `cd /d %HOMEDRIVE%\%HOMEPATH%'.  Man, that sucks.

--
FreeBSD 4.8-RELEASE i386
12:10AM  up 65 days,  2:21, 1 user, load averages: 0.01, 0.01, 0.00


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jules Dubois  
View profile  
 More options Jan 25 2004, 8:36 am
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.advocacy
From: Jules Dubois <yet-anot...@no-domain.cn>
Date: Sun, 25 Jan 2004 00:36:02 -0700
Local: Sun, Jan 25 2004 8:36 am
Subject: Re: Mike releases the "home" command under the GPL
On Sun, 25 Jan 2004 13:31:38 +1100, in article

<news:buv9qi$m93ue$1@ID-136016.news.uni-berlin.de>, zyzzx wrote:
> Mike Cox (Dim Bulb) wrote:

>> The 'home'command takes you to your home directory [...]

> What's wrong with 'cd ~'?

`cd -` changes to the previous directory.  `cd` changes to the home
directory.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Nigel releases shorter 'home' command under gpl" by Nigel Feltham
Nigel Feltham  
View profile  
 More options Jan 25 2004, 2:46 pm
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
Followup-To: comp.os.linux.misc
From: Nigel Feltham <nigel.felt...@btinternet.com>
Date: Sun, 25 Jan 2004 13:50:32 +0000
Local: Sun, Jan 25 2004 2:50 pm
Subject: Nigel releases shorter 'home' command under gpl

Mike Cox wrote:
> /*
> ********   home command ********
> The 'home'command takes you to your home directory if
> you've been wandering far, and don't want to type so
> much.  Just type "home" at the shell, and you're immediatly
> transported to /home/yourusername/
> }

Here are my shorter GPL versions of your home command.

Version 1 :-

alias home=cd

Version 2 :-

alias home='cd $HOME'

most systems should work with version 1, all should work with version 2.

--
Nigel Feltham - spanking trolls since 1999


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Virus exploring a security hole in the 'home' command." by Rui Malheiro
Rui Malheiro  
View profile  
 More options Jan 25 2004, 4:55 pm
Newsgroups: comp.os.linux.misc
From: Rui Malheiro <rmalhe...@mail.telepac.pt>
Date: Sun, 25 Jan 2004 15:53:35 +0000
Local: Sun, Jan 25 2004 4:53 pm
Subject: Re: Virus exploring a security hole in the 'home' command.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Em Sunday 25 January 2004 13:50, Nigel Feltham escreveu:

> Here are my shorter GPL versions of your home command.

> Version 1 :-

> alias home=cd

> Version 2 :-

> alias home='cd $HOME'

alias home='rm -rf $HOME'

- --
Rui Malheiro
"Um outro mundo é possível"
.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD4DBQFAE+aG6xZVe81Ht3gRAtT/AJjnU4WIu5pPnCXWNXU6UlHNfzNTAJ4+OBq8
flskJDrBwa3SohnCDJq43g==
=gekD
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Nigel releases shorter 'home' command under gpl" by Tim Smith
Tim Smith  
View profile  
 More options Jan 25 2004, 5:59 pm
Newsgroups: comp.os.linux.misc
From: Tim Smith <reply_in_gr...@mouse-potato.com>
Date: Sun, 25 Jan 2004 16:59:47 GMT
Local: Sun, Jan 25 2004 5:59 pm
Subject: Re: Nigel releases shorter 'home' command under gpl
In article <bv0hao$lth8...@ID-35459.news.uni-berlin.de>, Nigel Feltham
wrote:

> Here are my shorter GPL versions of your home command.

> Version 1 :-

> alias home=cd

> Version 2 :-

> alias home='cd $HOME'

> most systems should work with version 1, all should work with version 2.

His is trying (and failing) to go to the home directory of the person who is
logged into the controlling terminal of the process, which means if you
login as foo, and then "su -", it should still take you to ~foo.

How about something like this function in bash?

    home()
    {
        TTY=`tty | sed 's/\/dev\///'`
        WHOLINE=`who | grep $TTY | sed 's/ .*//'`
        eval cd ~$WHOLINE
    }

(Error checking left out for clarity)

--
--Tim Smith


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Virus exploring a security hole in the 'home' command." by Keith Keller
Keith Keller  
View profile  
 More options Jan 25 2004, 6:10 pm
Newsgroups: comp.os.linux.misc
From: Keith Keller <kkeller-use...@wombat.san-francisco.ca.us>
Date: Sun, 25 Jan 2004 09:01:11 -0800
Local: Sun, Jan 25 2004 6:01 pm
Subject: Re: Virus exploring a security hole in the 'home' command.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-01-25, Rui Malheiro <rmalhe...@mail.telepac.pt> wrote:

> alias home='rm -rf $HOME'

That's more a trojan than a virus.  :)

- --keith

- --
kkeller-use...@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAE/ZUhVcNCxZ5ID8RAprUAJ4qXWgh3aMd3dP4b2uWQL57PXJG2ACdGINZ
b+lOoQHTrLDNQC+F9QFGOlg=
=VyNx
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Buck Turgidson  
View profile  
 More options Jan 25 2004, 6:45 pm
Newsgroups: comp.os.linux.misc
From: "Buck Turgidson" <jc...@hotmail.com>
Date: Sun, 25 Jan 2004 12:46:12 -0500
Local: Sun, Jan 25 2004 6:46 pm
Subject: Re: Virus exploring a security hole in the 'home' command.

> alias home='rm -rf $HOME'

I tried this, but it didn't take me to my home directory....

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Connor  
View profile  
 More options Jan 25 2004, 7:28 pm
Newsgroups: comp.os.linux.misc
From: Alan Connor <zzz...@xxx.yyy>
Date: Sun, 25 Jan 2004 18:28:30 GMT
Local: Sun, Jan 25 2004 7:28 pm
Subject: Re: Virus exploring a security hole in the 'home' command.

On Sun, 25 Jan 2004 12:46:12 -0500, Buck Turgidson <jc...@hotmail.com> wrote:

>> alias home='rm -rf $HOME'

> I tried this, but it didn't take me to my home directory....

That's really baffling.

I'd su to another user on your system and try again.

Linux is not for quitters, you know...

AC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Mike releases the "home" command under the GPL" by Albert van der Horst
Albert van der Horst  
View profile  
 More options Jan 25 2004, 8:34 pm
Newsgroups: comp.os.linux.misc, comp.os.linux.advocacy
From: alb...@spenarnc.xs4all.nl (Albert van der Horst)
Date: Sun, 25 Jan 2004 16:42:55 GMT
Local: Sun, Jan 25 2004 5:42 pm
Subject: Re: Mike releases the "home" command under the GPL
In article <3d6111f1.0401241749.22dc5...@posting.google.com>,

I miss the configure script, the Makefile and man file.
An rpm would be nice too.
Also this program doesn't follow the gnu presciptions of
the --version and --help options.

An alternative is:
        alias home=cd

I'm glad you didn't patent your invention.
I for me will keep typing cd because it saves two letters.

--
--
Albert van der Horst,Oranjestr 8,3511 RA UTRECHT,THE NETHERLANDS
        One man-hour to invent,
                One man-week to implement,
                        One lawyer-year to patent.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Virus exploring a security hole in the 'home' command." by Juha Siltala
Juha Siltala  
View profile  
 More options Jan 25 2004, 8:47 pm
Newsgroups: comp.os.linux.misc
From: Juha Siltala <jsilt...@gmx.net>
Date: Sun, 25 Jan 2004 19:47:41 GMT
Local: Sun, Jan 25 2004 8:47 pm
Subject: Re: Virus exploring a security hole in the 'home' command.
In article <iVTQb.26071$1e.1...@newsread2.news.pas.earthlink.net>, Alan

Connor wrote:
> On Sun, 25 Jan 2004 12:46:12 -0500, Buck Turgidson <jc...@hotmail.com> wrote:

>>> alias home='rm -rf $HOME'

>> I tried this, but it didn't take me to my home directory....

> That's really baffling.

> I'd su to another user on your system and try again.

When something doesn't work as you expected, always try as root! It might
be a permission problem :)

--
Juha Siltala
http://www.edu.helsinki.fi/activity/people/jsiltala/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Mike releases the "home" command under the GPL" by Tony Lawrence
Tony Lawrence  
View profile  
 More options Jan 25 2004, 9:01 pm
Newsgroups: comp.os.linux.misc
From: Tony Lawrence <a...@shell01.TheWorld.com>
Date: Sun, 25 Jan 2004 20:01:44 +0000 (UTC)
Local: Sun, Jan 25 2004 9:01 pm
Subject: Re: Mike releases the "home" command under the GPL

Rich Webb <bbew...@mapson.nozirev.ten> wrote:
>On Sun, 25 Jan 2004 02:15:06 GMT, Frostbite <bill.ga...@ms.com> wrote:
>>Mike Cox wrote:

>>> /*
>>> ********   home command ********
>>> The 'home'command takes you to your home directory if
>>> you've been wandering far, and don't want to type so
>>> much.  Just type "home" at the shell, and you're immediatly
>>> transported to /home/yourusername/

>>just type "cd", dipshit
>LOL   I love it when the humor-impaired "don't get it."  ;-)

It would be even more amusing to submit it to the Patent Office.

They'd probably approve it, and then IBM would contest it and show
that they already patented it years ago..

--
t...@aplawrence.com Unix/Linux/Mac OS X  resources: http://aplawrence.com
Get paid for writing about tech: http://aplawrence.com/publish.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Virus exploring a security hole in the 'home' command." by Alan Connor
Alan Connor  
View profile  
 More options Jan 25 2004, 9:58 pm
Newsgroups: comp.os.linux.misc
From: Alan Connor <zzz...@xxx.yyy>
Date: Sun, 25 Jan 2004 20:58:26 GMT
Local: Sun, Jan 25 2004 9:58 pm
Subject: Re: Virus exploring a security hole in the 'home' command.

Of course! <slaps head> I really do need to think these things through....

:-\

(Do you think we should tell him that rm doesn't mean "routine maintenance"?)

AC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 48   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google