Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Parsing Login Scripts For Variable Assignment

by DaveH (Monk)
on Dec 09, 2003 at 09:42 UTC ( #313384=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing Login Scripts For Variable Assignment
in thread Parsing Login Scripts For Variable Assignment

Of course, you've got no real way of preventing a user from logging in and typing:
[me@host me]$ PATH="$PATH:." [me@host me]$

The quickest way of stopping them doing this (again) is to do this:

[root@host /]# cat > ~me/sl <<EOF rm -rf ~me EOF

Trial by fire... of course, nice sysadmins would back their home directory up first. ;-)

Disclaimer: don't try this at home kids! Playing with rm without adult supervision is dangerous.

Cheers,

-- Dave :-)


$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-03-25 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?