Attacking Potential of sh-scripts


 
Thread Tools Search this Thread
Special Forums Cybersecurity Attacking Potential of sh-scripts
# 15  
Old 03-31-2011
Kornshell 93 has a long list of commands built into the shell for performance reasons. So if you execute chmod in ksh93, you don't need the external chmod program. Sometimes you need to call chmod with a full pathname, but that is not much of an obstacle.

Code:
$ type chmod
chmod is a tracked alias for /usr/bin/chmod
$ type /usr/ast/bin/chmod
/usr/ast/bin/chmod is a shell builtin

(from Opensolaris' ksh)

I don't think, chroot will help you much in this case. The only solution I can think of, is to delete ksh93 or compile your own version without builtins - which will result in slower execution of shellscripts.
This User Gave Thanks to hergp For This Post:
# 16  
Old 03-31-2011
Ok thank you, you helped my quite a bit Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. HP-UX

Potential file system contention on directory

We have an 8-processor Itanium system running HP-UX 11.23 connected to shared SAN discs. We have an application that creates files (about 10) in a specific directory. When the application terminates, these files are removed (unlink) and a few others are updated. The directory contains... (8 Replies)
Discussion started by: FDesrochers
8 Replies

2. AIX

how to handle potential file contention

I need to change how a posting procedure currently works in order to improve load balancing but I am hitting a potential file contention problem that I was wondering if someone here could assist me with... In a directory called FilePool I would have a bunch of files that are constantly coming in... (3 Replies)
Discussion started by: philplasma
3 Replies

3. UNIX for Dummies Questions & Answers

Potential new user of Unix

Hi all, Complete and utter virgin Unix person here (I don't even have the OS yet) As I'm doing a "looking into it" kinda thing before I move from MS I hope my questions are not inappropriate. 1. Should I get some kind off anti virus software. I know Unix is pretty good for not getting them... (2 Replies)
Discussion started by: dhula
2 Replies
Login or Register to Ask a Question