-
Senior Member
registered user
--Yep, that's pretty much the situation in a nutshell. 
--BTW, "pwd" is the current working directory. If you issue:
' pwd ' in bash, it will tell you where you are. Same as:
' echo $PWD ' == Which is the environment variable.
--If you have "pwd" (actually :$PWD
in your $PATH, it tells bash to look in your current directory for executable files... NOT something you want to do as Root, for the aforementioned reasons. Hard-core *nix purists don't have a $PATH *at all* in root; they issue ' /sbin/ifconfig ' and stuff like that so it ALWAYS gets executed from the right directory. (' man whereis ')
[quote="Flibble"]

Originally Posted by
Hermanh
thanks, the script is running.
did do it. I did not expect that because it runned as knoppix using just
Knoppix user must have pwd in the PATH. Its a really bad idea to do this with root accounts though from a security perspective. I have managed to elevate privilege on a number of *nix boxes (whilst doing authorised pen tests I hasten to add) through this technique. Root has pwd in his path and /tmp is world writable. Stick a script called ls in there and then give him cause to go looking in tmp (fill up disk by stuffing directory full of crap). Poor sap follows standard sysadmin technique and navigates into the directory and runs ls [-alSr] which runs the dropped in script. This usually does something like echo a standard add user line into the /etc/password file and then run the real ls command.
Similar Threads
-
Replies: 5
Last Post: 01-06-2005, 02:29 AM
-
By mzilikazi in forum General Support
Replies: 0
Last Post: 07-28-2004, 08:36 PM
-
By A. Jorge Garcia in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 07-03-2004, 06:22 PM
-
By fabriloup in forum General Support
Replies: 1
Last Post: 09-13-2003, 10:28 AM
-
By Dave_Bechtel in forum General Support
Replies: 0
Last Post: 06-04-2003, 11:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

1969 EAI TR-20 Analog Computer Programming PACE Philbrick Electronic Associates
$35.00

RARE VINTAGE Kontron 80 Psi Compact Microcomputer Computer Germany Early 1980s
$319.99

Vintage Donner Scientific Analog Computer Patch Cords Banana Plugs & Resistor
$75.00

Apple Macintosh Sweep Power Supply Analog Board Plus 128K 512K 630-0102 (260191)
$69.99

VINTAGE 1970s SKIT Scientific Kit for Computer & Electronics SEALED INSIDE Rare
$249.00

Vintage 1970’s Analogic MP2110 10-Bit A/D Converter Computer Circuit Board
$24.99

Vintage Analog Computing Magazines For Atari Computer Owners No 11-20 Acceptable
$75.00

EAI Pace TR-10 Analog Desktop Vintage Computer Electronic Associates Inc
$5555.55

Apple Macintosh 800K Floppy Drive Sony MP-F51W - Reads Discs Bad Eject (260191)
$49.99

Rare Vintage CH Product Mach III Analog Joystick for Apple Mac
$45.00