github.com/Cloud-Foundations/Dominator@v0.3.4/lib/fsutil/makeMutable.go (about) 1 package fsutil 2 3 import ( 4 "os/exec" 5 ) 6 7 func makeMutable(pathname ...string) error { 8 args := make([]string, 0, len(pathname)+2) 9 args = append(args, "-R") 10 args = append(args, "-ai") 11 args = append(args, pathname...) 12 cmd := exec.Command("chattr", args...) 13 return cmd.Run() 14 }