Hudson jobs can be configured to have a post build step which can execute shell commands as an option, accidently or intentionally someone can wipe out the hudson home directory just by running rm command is there a specific set of permission of home directory which will prevent such scenario
Hudson post build step security issue
124 Views Asked by Amit Mawkin At
1
There are 1 best solutions below
Related Questions in SHELL
- passing text with \n as one argument in shell
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- schedule and automate sqoop import/export tasks
- How can launch an external process from java and still be able to interact with this process?
- Linux find files where mtime and ctime are not equal
- Find all files contained into directory named
- Quick way to remove all folders titled CVS in a directory and it's subdirectories?
- shell process not exiting on `exit` inside `$()`
- How to set environment variables with a forward slash in the key
- System 'bash -ic' stuck when I hit ctrl+c
- bash functions returns "command not found"
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- retrieve plaintext password from file using bash command
Related Questions in HUDSON
- Can I schedule a Jenkins Build without CRON or REST API?
- How to get another node's current build's parameters?
- How to convert action method to POST type in Jenkins/Hudson
- What is the best way to handle dev, test and prod enviroment in jenkins?
- How to configure Maven local calling Sonar server?
- Hudson - Send Status Change emails only
- Sugested way of working - Jenkins promotions or artifactory releases will deploy a war
- groovy.lang.MissingPropertyException: Not able to get the manager inside groovy system plugin
- Jenkins BuildResultTrigger doesn't seem to be working
- Remove N day older file from an external location using pom.xml (maven) or Hudson
- Authentication failed
- Error while deploying through hudson in tomcat
- How to detect a possible deadlock in a hudson build?
- SVN in Hudson through a proxy in Windows
- Hudson : warning MSB3245: Could not locate the assembly "nunit.framework"
Related Questions in POST-BUILD
- Delete jenkins project after build
- Post-Builds in TFS Team Build best practice
- How can I retrieve major/minor/build/revision number on build events
- CMake ExternalData custom fetch script
- How could I use references in post build task plugin of hudson
- using a relative path in PostBuild.cmd for postbuild event visual studio
- Where is the logfile located for Xcode Scheme Post-Actions?
- Minify JavaScript and Attach Version Number using VS2010
- What is the right post build Ant target in android generated project file?
- GROOVY: Finding a string from console output if a regexp string found
- Is it possible to set multiple environment variables in one CMD line statement?
- Pass parameter from build step to post-build step in Jenkins
- Execute post build event in VS only when key is pressed
- Developing Jenkins post-build plugin
- TFS 2010 after successfull build running a script
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
On Linux, you will likely be running the Hudson process as the "hudson" user. Using a combination of chown and chmod, you can set the permissions on the hudson application server directory such that the hudson user only has read-access of the Hudson application server directory.
Hudson stores all of its file storage in /var/lib/jenkins by default (if you're using the .deb package).
so basically, make sure that the hudson user has recursive write access of that directory, allow hudson read-only access of the other Hudson installation files, and no access over any other file.