MCPcopy Create free account
hub / github.com/tailscale/tailcat / defaultPath

Function defaultPath

tailcat_ssh.go:306–311  ·  view source on GitHub ↗

defaultPath returns the default PATH for the given user.

(u *user.User)

Source from the content-addressed store, hash-verified

304
305// defaultPath returns the default PATH for the given user.
306func 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.

Callers 1

sessionHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected