Mwnci isowner() Function

Syntax

isowner(string, string)

Description

The isowner() function returns true if the path points to a file owned by the named user. If the user is not named, then the username of the current process is used.

Example

include("file")
println(isowner("/dev/loop0", "eccles"))
println(isowner("/home/eccles/.profile", "eccles"))
println(isowner("/etc/passwd"))  // If run as user eccles


false
true
false