看资料是因为solaris 10 默认限制了root ssh 远程登录
/etc/ssh/sshd_config的两个参数
PermitRootLogin yes
PasswordAuthentication yes
不过还有另外一种方法,一般在/etc/default/login文件中
有 “CONSOLE=/dev/console”
一行,则表明root不能直接登陆,只需注释掉该行,即可以直接登陆。
看资料是因为solaris 10 默认限制了root ssh 远程登录
/etc/ssh/sshd_config的两个参数
PermitRootLogin yes
PasswordAuthentication yes
不过还有另外一种方法,一般在/etc/default/login文件中
有 “CONSOLE=/dev/console”
一行,则表明root不能直接登陆,只需注释掉该行,即可以直接登陆。
当系统在引导菜单的 10 秒倒计时时进入它, 选项, 其编号 4。
1.进入单用户模式
# boot -s
# /sbin/mount -a
然后用passwd 修改密码就OK了
2.如果对console和ttyv都设置是安全限制
单用户进不去有没CD~
前提必须得有台BSD
把忘记密码的硬盘挂到了有root权限的系统上。
先检查文件系统
#fsck -y /dev/ad2s1
挂载到一个目录上
#mount /dev/ad2s1 /mnt
用chroot创建个环境
#chroot /mnt
然后进里面挂载丢失root密码的usr目录
#fsck -y /dev/ad2s1f
#mount /dev/ad2s1f /mnt
设置密码
#/usr/sbin/passwd root
搞定
Here are steps how I got it and solve:
1. I like to compile some sources from the command prompt, so I added to the PATH environment variable - “C:\Program Files\Microsoft Visual Studio 8\VC\Bin”. After that I had to copy some files from “C:Program Files\Microsoft Visual Studio 8\Common7\IDE” to get cl.exe working (one of files was mspdb80.dll).
2. Some time later I tryed to compile a project from MSDev and got C1902 error.
3. With MSDN search I got to this place to see Jonathan Caves’s helpful message about mspdbsrv.exe.
4. I just copied that EXE to VC\Bin and everithing becomes Ok.
5. Now I can compile anything .
Recent Comments