操作系统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,在用新的端口登陆就可以了!

正则表达式学习笔记

[不指定 2007/07/18 17:30 | by ipaddr ]

正则表达式学习笔记

  正则表达式(regular expression)描述了一种字符串匹配的模式,可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。
  列目录时, dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。

  为便于理解和记忆,先从一些概念入手,所有特殊字符或字符组合有一个总表在后面,最后一些例子供理解相应的概念。

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=1Enable=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登录
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:
  • 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]

分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]