defaultPath returns the default PATH for the given user.
(u *user.User)
| 304 | |
| 305 | // defaultPath returns the default PATH for the given user. |
| 306 | func defaultPath(u *user.User) string { |
| 307 | if u.Uid == "0" { |
| 308 | return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
| 309 | } |
| 310 | return "/usr/local/bin:/usr/bin:/bin" |
| 311 | } |
| 312 | |
| 313 | // getHostKeys returns the SSH host key signers, generating an ed25519 key |
| 314 | // in ~/.config/tailcat/ssh/ if one doesn't exist. |