diff --git a/base/nfs/cat.go b/base/nfs/cat.go index b36c2632..4c4a5078 100644 --- a/base/nfs/cat.go +++ b/base/nfs/cat.go @@ -68,7 +68,7 @@ func _cat_find(m *ice.Message, name string) io.ReadCloser { return nil } func _cat_list(m *ice.Message, name string) { - if !_cat_right(m, name) { + if m.Warn(!_cat_right(m, name), ice.ErrNotRight) { return // 没有权限 } diff --git a/misc/ssh/connect.go b/misc/ssh/connect.go index ba6cd7b2..92d5cc20 100644 --- a/misc/ssh/connect.go +++ b/misc/ssh/connect.go @@ -169,6 +169,7 @@ func init() { }) }}, tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) { + aaa.UserRoot(m) _ssh_open(m.OptionLoad(m.Option("authfile")), arg...) m.Echo("exit %v@%v:%v\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT)) }},