github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/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  }