mirror of https://github.com/jumpserver/jumpserver
placeholder
parent
1952d1ca23
commit
ce99bf2266
|
@ -381,7 +381,6 @@ def sudo_edit(request):
|
|||
else:
|
||||
user_group_id = request.POST.get('user_group_id', '')
|
||||
users_runas = request.POST.get('runas') if request.POST.get('runas') else 'root'
|
||||
print users_runas
|
||||
asset_groups_select = request.POST.getlist('asset_groups_select')
|
||||
cmd_groups_select = request.POST.getlist('cmd_groups_select')
|
||||
comment = request.POST.get('comment', '')
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
<div class="form-group">
|
||||
<label for="group_type" class="col-sm-2 control-label">命令<span class="red-fonts">*</span></label>
|
||||
<div class="col-sm-8">
|
||||
<textarea id='cmd' name='cmd' class="form-control" rows="10" placeholder="命令">{{ cmd }}</textarea>
|
||||
<textarea id='cmd' name='cmd' class="form-control" rows="10" placeholder="/bin/su">{{ cmd }}</textarea>
|
||||
<span class="help-block m-b-none">
|
||||
输入命令一行一个,请写绝对路径如: /bin/su,所有是ALL,排除su是 !/bin/su
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue