import (
"fmt"
"os"
"os/user"
"syscall"
)
func printUserName() {
var file, _ = os.Open("/etc/fstab")
var fi, _ = file.Stat() //Получаем FileInfo файла
var uid = fmt.Sprint(fi.Sys().(*syscall.Stat_t).Uid)
var User, _ = user.LookupId(uid)
fmt.Printf("%v\n", User.Username)
}