Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
0fd7b980
Commit
0fd7b980
authored
Dec 05, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some bug
parent
34ccaeb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
connect.py
connect.py
+2
-2
api.py
jumpserver/api.py
+1
-1
No files found.
connect.py
View file @
0fd7b980
...
...
@@ -458,8 +458,8 @@ class Nav(object):
5) 输入
\033
[32mG/g
\033
[0m
\033
[0m +
\033
[32m组ID
\033
[0m 显示该组下主机.
6) 输入
\033
[32mE/e
\033
[0m 批量执行命令.
7) 输入
\033
[32mU/u
\033
[0m 批量上传文件.
7
) 输入
\033
[32mD/d
\033
[0m 批量下载文件.
7
) 输入
\033
[32mQ/q
\033
[0m 退出.
8
) 输入
\033
[32mD/d
\033
[0m 批量下载文件.
9
) 输入
\033
[32mQ/q
\033
[0m 退出.
"""
print
textwrap
.
dedent
(
msg
)
...
...
jumpserver/api.py
View file @
0fd7b980
...
...
@@ -96,7 +96,7 @@ def get_role_key(user, role):
with
open
(
os
.
path
.
join
(
role
.
key_path
,
'id_rsa'
))
as
fk
:
with
open
(
user_role_key_path
,
'w'
)
as
fu
:
fu
.
write
(
fk
.
read
())
logger
.
debug
(
u"创建新的用户角色key
%
s
"
%
user_role_key_path
)
logger
.
debug
(
u"创建新的用户角色key
%
s
, Owner:
%
s"
%
(
user_role_key_path
,
user
.
username
)
)
chown
(
user_role_key_path
,
user
.
username
)
os
.
chmod
(
user_role_key_path
,
0600
)
return
user_role_key_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment