不重新启动计算机更改ssh监听端口
[ 2007/07/21 21:53 | by ipaddr ]
操作系统linux和Unix都适用。
修改/etc/ssh/sshd_config,将里面的Port改为新端口,比如10022,然后
[code]kill -HUP `cat /var/run/sshd.pid` [/code]
就行了。现有连接自己不会断,因为
kill -HUP `cat /var/run/sshd.pid` 只是HUP监听的那个,已经建立的连接(不同的 pid)不会断。
然后你在现有账号下面exit,在用新的端口登陆就可以了! >>>>>>>
RHEL4.4-x86_64 + Oracle 10.2.0.1安装笔记
[ 2007/07/12 10:37 | by ipaddr ]
RHEL4.4-x86_64 + Oracle 10.2.0.1安装笔记
硬件环境:
由于是安装64位的Linux+Oracle,所以需要64位的CPU;
本文的安装环境为:
CPU:AMD Athlon64 3200+ (939)
Memory: DDR400 1G
Harddisk: IDE 80G
(鱼漂注:此文档参考了网上的资料和Oracle官方文档,并对一些错误和不必要的步骤进行了修正。)
(文档作者:鱼漂[admin.net(at)163.com] 转载请注明,文档最新版本请访问http://www.eit.name/)
>>>>>>>>>>>>>>>>>>>>>
REDHAT linux XDMCP配置
[ 2007/07/10 15:05 | by ipaddr ]
配置XDMCP,可以在WINDOWS下通过XMANAGER等工具访问linux桌面,配置方法如下:
1.修改/etc/X11/xdm/Xaccess文件如下:* # any host can get a login window
(说明:即把这句语句的前面一个#符去掉)
2.修改/etc/X11/gdm/gdm.conf文件
[xdmcp]
Enable=false 改为Enable=1或Enable=true
3.修改 /etc/inittab文件
id:3:initdefault改为id:5:initdefault (有些linux版本已是id:5:initdefault就不需要改)
最后一行改为: x:5:respawn:/usr/bin/gdm
4.修改/etc/X11/xdm/xdm-config文件
在 displayManager.requestPort : 0 前面加上!符号,用于注释这行
(说明:这语句在这文件的最后一行)
5、/etc/X11/xdm/Xservers中将:0 local /usr/X11R6/bin/X 注释掉 #:0 local /usr/X11R6/bin/X
(可以处理此步骤)
6.修改防火墙,防火墙关闭的就不用修改:
/etc/sysconfig/ipchains文件中加入以下语句:
-A input -p udp -s 0/0 -d 0/0 177 -j accept
7、在/etc/hosts中加入相应主机的解析(如不加可能登陆不进界面)
6.重启机器
7.在windows下使用xmanager登录>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Windows2003使用SubInAcl命令批量修改文件的属主
[ 2007/07/07 11:27 | by ipaddr ]
SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain. For example, if a user has moved from one domain (DomainA) to another (DomainB), the administrator can replace DomainA\User with DomainB\User in the security information for the user's files. This gives the user access to the same files from the new domain.
SubInACL enables administrators to do the following:
SubInACL enables administrators to do the following:
- Display security information associated with files, registry keys, or services. This information includes owner, group, permission access control list (ACL), discretionary ACL (DACL), and system ACL (SACL).
- Change the owner of an object.
- Replace the security information for one identifier (account, group, well-known security identifier (SID)) with that of another identifier.
- Migrate security information about objects. This is useful if you have reorganized a network's domains and need to migrate the security information for files from one domain to another.
Windows2003批量修改文件属主,可参考如下命令:
[code]SubInAcl /subdirectories C:\Home /replace=olduser=newuser[/code]