QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 812|回复: 5

关于使用group命令中出现的一些问题,哪位帮忙看看啊?谢谢

[复制链接]
发表于 2005-2-18 23:33:18 | 显示全部楼层 |阅读模式
今天我在看《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
发表于 2005-2-19 06:49:55 | 显示全部楼层
要root用户
回复

使用道具 举报

发表于 2005-2-19 07:02:10 | 显示全部楼层
得到这个root要 su -
回复

使用道具 举报

 楼主| 发表于 2005-2-19 10:21:20 | 显示全部楼层
ft.....呵呵,看仔细啊~~~偶确实是root@localhost啊~~~~
难道还有必要用个别的帐户登陆,然后再su么?
回复

使用道具 举报

发表于 2005-2-19 10:53:12 | 显示全部楼层
faint.............
/etc/group很明显这是系统的group配置文件嘛。
可执行程序是在/bin /usr/bin /sbin /usr/sbin ....etc
你想做什么? 是显示当前用户的组名吗?
是groups命令。
回复

使用道具 举报

 楼主| 发表于 2005-2-19 16:46:21 | 显示全部楼层
呵呵。。。。偶是新手。。。。忘了/etc下是配置文件了。。。
谢谢大家
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 03:50 , Processed in 0.065224 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表