当我想更改目录的所有者时:
base) merat@HP-Pavilion:/opt/tomcat$ sudo chgrp –R tomcat/opt/tomcat
我懂了:
chgrp:无效组:'-R'
我之前添加了 tomcat 组和用户,但是当我运行此命令时: (base) merat@HP-Pavilion:/opt/tomcat$ id tomcat
我得到 id: 'tomcat': no such user
也适用于团体:
(基础)merat@HP-Pavilion:/opt/tomcat$ 组 tomcat
我有组:'tomcat':没有这样的用户
当我再次添加它时:
(基础)merat@HP-Pavilion:/opt/tomcat$ sudo groupadd tomcat
我得到:groupadd:组“tomcat”已经存在
我该如何解决这个问题?
最佳答案
groups shows you your groups and not all. You could list all groups for example like that:
getent group
If you added yourself to the group, you'll need to logout and login for the change to take effect.
关于java - 我在 ubuntu 18.4 中安装 tomcat 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61003216/