cygwin找不到su命令

如题所述

cygwin 时沿用windows账户体系,所以,你用administrator 账户登录 实际上得到的权限已经相当于root(但仍有差距)
实际上win默认可执行文件权限是所有人,根本没必要获取root追问

但是,有时候需要在最高权限和普通权限之间切换,没有su,还得修改配置文件,很麻烦

追答

麻烦您详述下您的使用场景?

追问

比如有的时候需要root权限,就得修改配置文件,而有的时候并不需要root权限,还得把配置文件改回来,相当麻烦。我记得原来cygwin下有su和sudo命令,可是后来不知怎得就没了。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2018-04-13
百度上可以找到答案~
Tom Alsberg wrote:
>
> Hi there... I've got some problem with Cygwin's su command under Windows
> NT. Generally, the problem is that if I try to su to any user (except of the
> same user I'm logged on to), from any user (including Administrator), I get
> the following error message:
>
> su: cannot set user id: Not owner
> [...]
> Has anyone got any idea what the problem might be?

`su' isn't really ported but only compiled, unfortunately.

Corinna

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:[email protected] Hat, Inc.mailto:[email protected]

感谢谷歌翻译
汤姆Alsberg写道:> >你好...我在Cygwin的su命令下有一些问题> NT。一般来说,问题是,如果我尝试索取任何用户(除了>我登录到的同一用户),从任何用户(包括管理员),我得到>以下错误信息:> > su:不能设置用户ID:不是所有者> [...]>有没有人知道问题可能是什么?不幸的是,`su'并没有真正移植,而只是编译完成。科琳娜- Corinna Vinschen请发送关于Cygwin的邮件给Cygwin开发人员 mailto:[email protected]红帽公司邮寄地址:[email protected]
相似回答