Tag Archives: root

Freebsd root password lost after mergemaster

if you’re using mergemaster to update FreeBSD, sometime, if you don’t pay attention to diff, you may use the new master.passwd and group to overwrite the old one, then the root password will be missed.

Freebsd will backup master.passwd and group everyday to folder /var/backup. So just copy them back, and run

#pwd_mkdb -p

chkrootkit

这个程序是设计用来检查许多广为人知的rootkit 的
安装
 
#apt-get install chkrootkit
 
运行
[[email protected] chkrootkit-0.34]# chkrootkit
ROOTDIR is /'
Checking
amd’… not found
Checking basename'... not infected
Checking
biff’… not found
Checking chfn'... not infected
Checking
chsh’… not infected
Checking cron'... not infected
Checking
date’… not infected
Checking du'... not infected
Checking
dirname’… not infected
Checking echo'... not infected
Checking
egrep’… not infected
Checking env'... not infected
Checking
find’… not infected
[…]

如何用鼠标右按钮直接以 Root 身份开启文件?

gedit $HOME/.gnome2/nautilus-scripts/Open as root

# 在新增的文件内加入下面这几行

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
    gnome-sudo "gnome-open $uri" &
done

# 保存编辑过的文件 (范例)
#

chmod +x $HOME/.gnome2/nautilus-scripts/Open as root

#

鼠标右按钮点击文件 -> Scripts -> Open as root