The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)

20130716

jboss 4.2.2 files that need execute permissions

i downloaded a "new"/default installation of jboss 4.2.2 to find out which files need execute/executable permission/permissions, so i ran this:
cd /path/to/where/i/extracted/jboss
find . -type f -executable

here's the list (note, "find" searches recursively, but all the executable files are in one folder: bin):
./bin/wsconsume.sh
./bin/shutdown.sh
./bin/wsrunclient.sh
./bin/classpath.sh
./bin/twiddle.sh
./bin/probe.sh
./bin/wsprovide.sh
./bin/run.sh
./bin/jboss_init_suse.sh
./bin/jboss_init_hpux.sh
./bin/jboss_init_redhat.sh
./bin/wstools.sh


12 files

to count the number of executable files, you do this:
find . -type f -executable|wc -l

and fyi, there are 990 readable files:
find . -type f -readable|wc -l

and 227 directories/folders:
find . -type d|wc -l


if you ever need to set the default jboss file permissions you'd do this:
WARNING: BE VERY CAREFUL YOU USE THESE EXACT COMMANDS--**DON'T INSERT EXTRA SPACES ANYWHERE!**
 
sudo find /path/to/where/you/installed/jboss -type f -print0 | sudo xargs -0 chmod 644

sudo find /path/to/where/you/installed/jboss -type d -print0 | sudo xargs -0 chmod 755
 

cd /path/to/where/you/installed/jboss 

chmod +x *.sh


No comments:

Post a Comment