su - or su - root in centos linux
时间:2014-07-04
来源:互联网
You reference link is not my case .
My case is :
In non-root account , I can use " su - " to switch to root account.
But the command "su - root " is needed to disabled...
I search you reference link but it is not my case ..
Please suggest another way .....
My case is :
In non-root account , I can use " su - " to switch to root account.
But the command "su - root " is needed to disabled...
I search you reference link but it is not my case ..
Please suggest another way .....
作者: chuikingman 发布时间: 2014-07-04
Extraction of "man su" on CentOS:
引用:SYNOPSIS
su [OPTION]... [-] [[USER] [ARG]...]
and most important,
su [OPTION]... [-] [[USER] [ARG]...]
引用:A mere - implies -l. If USER not given, assumes root.
I don't understand why you use "su -" but want to disable "su - root" at the same time. 作者: foureyesboy 发布时间: 2014-07-04
$ sudo -i
$ sudo su - -s /bin/bash root
$ sudo su - -s /bin/bash root
作者: ykmran 发布时间: 2014-07-04
I do not understand what do you mean ...
I want to know how I can make in normal centos linux .
Only allow "su - " to switch to root .
But it is not allow use "su - root" to switch to root.
How I can make this in normal centos OS ...not need to ask the purpose .....It just want to reproduce ...
I want to know how I can make in normal centos linux .
Only allow "su - " to switch to root .
But it is not allow use "su - root" to switch to root.
How I can make this in normal centos OS ...not need to ask the purpose .....It just want to reproduce ...
作者: chuikingman 发布时间: 2014-07-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28