Scripting - Otago
Scripting
Least Privilege Principle Unix scripting Examples Other solutions
COSC301 Lecture 4: Scripting
!1
Least Privilege Principle
No process or file should be given more privileges than it needs to do its job.
Setuid programs: don't set unless necessary
Run programs under special user id such as www and nobody if possible
Some applications such as httpd can change its user id from root to nobody after opening the privileged port number 80.
Temporary files shouldn't be in /tmp
COSC301 Lecture 4: Scripting
!2
Scripting is...
`Easier' Glue Weakly typed Interpreted
COSC301 Lecture 4: Scripting
!3
Cons of Unix scripting
"Prayerful parsing" I/O is expensive due to process communications
Interpretation slower than compiled code
Interface inconsistency Security: TOCTTOU
rm /tmp/*/* (find /tmp -not-accessedrecently | xargs rm)
COSC301 Lecture 4: Scripting
!4
Who scripts?
Users
Power users
Administrators
Developers
Testers
COSC301 Lecture 4: Scripting
!5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- batch scripting tutorial
- batch scripting cheat sheet
- batch scripting 101
- windows batch scripting cheat sheet
- shell scripting cheat sheet
- shell scripting examples
- bash scripting cheat sheet
- unix shell scripting basics
- powershell scripting tutorial
- unix shell scripting examples
- shell scripting tutorial
- unity scripting reference pdf