Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 组:未找到命令_Linux - Fatal编程技术网

Linux 组:未找到命令

Linux 组:未找到命令,linux,Linux,登录后,我遇到以下错误: Last login: Thu May 30 15:25:49 2013 from -bash: groups: command not found xxx@Dogbert:~$ /usr/bin/groups -bash: /usr/bin/groups: Permission denied xxx@Dogbert:~# su - root@Dogbert:~# ls -la /usr/bin/groups -rwxr-xr-x 1 root root 2

登录后,我遇到以下错误:

Last login: Thu May 30 15:25:49 2013 from 
-bash: groups: command not found

xxx@Dogbert:~$ /usr/bin/groups
-bash: /usr/bin/groups: Permission denied

xxx@Dogbert:~# su -

root@Dogbert:~# ls -la /usr/bin/groups 

-rwxr-xr-x 1 root root 26180 Mai 28 22:21 /usr/bin/groups
有什么想法吗

1简单的可能性(在您提供更多信息之前):

  • 当您的登录脚本使用“groups”(没有说“/usr/bin/groups”)时,当前的$PATH还没有包含/usr/bin