新手问题!
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
address 192.168.0.35
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
address 192.168.0.35
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
重启再$ less /etc/passwd|grep bash 结果如下:
/bin/rbash: /usr/bin/lesspipe: restricted: cannot specify '/' in command names
root0:0:root:/root:/bin/bash
ubuntu1000:0:ubuntu,,,:/home/ubuntu:/bin/rbash
root0:0:root:/root:/bin/bash 结果如下:
rbash:root0:0:root:/root:/bin/bash: restricted: cannot specify '/' in command names
exp1000:1000:eexpress,,,:/home/exp:/bin/bash 结果如下:
rbash:exp1000:1000:eexpress,,,:/home/exp:/bin/bash:restricted: cannot specify '/' in command names
还是不能sudo?
/bin/rbash: /usr/bin/lesspipe: restricted: cannot specify '/' in command names
root0:0:root:/root:/bin/bash
ubuntu1000:0:ubuntu,,,:/home/ubuntu:/bin/rbash
root0:0:root:/root:/bin/bash 结果如下:
rbash:root0:0:root:/root:/bin/bash: restricted: cannot specify '/' in command names
exp1000:1000:eexpress,,,:/home/exp:/bin/bash 结果如下:
rbash:exp1000:1000:eexpress,,,:/home/exp:/bin/bash:restricted: cannot specify '/' in command names
还是不能sudo?