|
今天我在看《linux与unix shell编程指南》这本书,看到里面使用group命令一部分,于是在自己的RH8.0上实验,可是当我在console下输入group命令时,出现:command not found。于是我就用whereis命令来查找,找到位置后再执行时,居然发现没有执行权限,于是又用chmod命令加入执行权限。。。。。。。。晕,居然出现了许多的错误信息。。。。不知该怎么办了?哪位能帮我看看啊~~~~~?谢谢(输入及错误输出如下)
[root@localhost /]# group
bash: group: command not found
[root@localhost /]# whereis group
group: /etc/group /usr/share/man/man5/group.5.gz
[root@localhost /]# /etc/group
bash: /etc/group: Permission denied
[root@localhost /]# chmod u+x /etc/group
[root@localhost /]# /etc/group
/etc/group: line 1: root:0:root: command not found
/etc/group: line 2: bin:1:root,bin,daemon: command not found
/etc/group: line 3: daemon:2:root,bin,daemon: command not found
/etc/group: line 4: sys:3:root,bin,adm: command not found
/etc/group: line 5: adm:4:root,adm,daemon: command not found
/etc/group: line 6: tty:5:: command not found
/etc/group: line 7: disk:6:root: command not found
/etc/group: line 8: lp:7:daemon,lp: command not found
/etc/group: line 9: mem:8:: command not found
/etc/group: line 10: kmem:9:: command not found
/etc/group: line 11: wheel:x:10:root: command not found
/etc/group: line 12: mail:x:12:mail,postfix: command not found
/etc/group: line 13: news:x:13:news: command not found
/etc/group: line 14: uucp:x:14:uucp: command not found
/etc/group: line 15: man:x:15:: command not found
/etc/group: line 16: games:x:20:: command not found
/etc/group: line 17: gopher:x:30:: command not found
/etc/group: line 18: dip:x:40:: command not found
/etc/group: line 19: ftp:x:50:: command not found
/etc/group: line 20: lock:x:54:: command not found
/etc/group: line 21: nobody:x:99:: command not found
/etc/group: line 22: users:x:100:: command not found
/etc/group: line 23: ntp:x:38:: command not found
/etc/group: line 24: utmp:x:22:: command not found
/etc/group: line 25: rpc:x:32:: command not found
/etc/group: line 26: floppy:x:19:: command not found
/etc/group: line 27: vcsa:x:69:: command not found
/etc/group: line 28: nscd:x:28:: command not found
/etc/group: line 29: sshd:x:74:: command not found
/etc/group: line 30: rpm:x:37:: command not found
/etc/group: line 31: mailnull:x:47:: command not found
/etc/group: line 32: smmsp:x:51:: command not found
/etc/group: line 33: slocate:x:21:: command not found
/etc/group: line 34: rpcuser:x:29:: command not found
/etc/group: line 35: nfsnobody:x:65534:: command not found
/etc/group: line 36: pcap:x:77:: command not found
/etc/group: line 37: xfs:x:43:: command not found
/etc/group: line 38: wnn:x:49:: command not found
/etc/group: line 39: gdm:x:42:: command not found
/etc/group: line 40: desktop:x:80:: command not found
/etc/group: line 41: postdrop:x:90:: command not found
/etc/group: line 42: postfix:x:89:: command not found
/etc/group: line 43: Fred:x:500:Fred,root: command not found
/etc/group: line 44: smbuser:x:501:: command not found |
|