def chown(file, user)
      # who is the current owner?
      @scripto_uids ||= {}
      @scripto_uids[user] ||= Etc.getpwnam(user).uid
      uid = @scripto_uids[user]
      return if File.stat(file).uid == uid
      FileUtils.chown(uid, uid, file, verbose: verbose?)
    end
def chown(file, user)
      # who is the current owner?
      @scripto_uids ||= {}
      @scripto_uids[user] ||= Etc.getpwnam(user).uid
      uid = @scripto_uids[user]
      return if File.stat(file).uid == uid
      FileUtils.chown(uid, uid, file, verbose: verbose?)
    end
Like chown user:user file. Like all file commands, the operation will be printed
 out if verbose?.