一、user1.每个用户将指派唯一用户ID(UID)root的ID为0普通用户ID从500开始(0-500系统使用)2.用户名和用户ID存在/etc/passwd中3.当用户登陆时系统自动为其分配一个用户家目录4.用户无法读、写、执行其他用的文件二、changingfileownership1.onlyrootcanchangeafile‘sowner2...
分类:
系统相关 时间:
2014-05-08 03:01:10
阅读次数:
665
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951
建立数据库: mysql>create database test;
//建立一个名为"test"的数据库建立数据库表: mysql> create table test -> (name char(16) not
null, -> passwd...
分类:
数据库 时间:
2014-05-07 21:22:19
阅读次数:
378
linux中除了常见的读(r)、写(w)、执行(x)权限以外,还有3个特殊的权限,分别是setuid、setgid和stick
bit1、setuid、setgid先看个实例,查看你的/usr/bin/passwd 与/etc/passwd文件的权限[root@MyLinux ~]#
ls -l /...
分类:
系统相关 时间:
2014-05-07 12:53:07
阅读次数:
365
1.shell介于操作系统与用户之间,负责解释命令行
2./etc/shells 记录了系统支持的有效登录的shell
3./etc/passwd 最后一位可以看到用户默认的shell
4.直接输入shell的名称 可以切换shell
5.shell命令的记录可以用history查看 history -c 清除
历史命令存放在.bash_history文件中
...
分类:
其他好文 时间:
2014-05-07 05:11:21
阅读次数:
244
I make a connection through SSH and then I type:
# x0vncserver --PasswordFile=/home/hello/.vnc/passwd
x0vncserver: unable to open display ""
~ImageCleanup called
the reason is :
...
分类:
其他好文 时间:
2014-05-07 04:23:43
阅读次数:
581
昨天的《纯CSS3文字效果推荐》文章里面推荐了8款纯css实现的文字效果,其中3d文字效果最为流行,限于篇幅仅仅展示了其3D实现原理,没有考虑代码的复用性和可移植性,立体字的纵深感、方向感、错落感如何实现个性定制,立体字阴影动画,彩虹字动画等等,一一道来。...
分类:
Web程序 时间:
2014-05-06 21:02:38
阅读次数:
562
source/etc/profilegroupaddbeamkdir/datauseradd-d/data/weblogic-gbeaweblogicecho‘wls!@#$%‘|passwd--stdinweblogicJAVA_HOME=/data/weblogic/jdk-7u55-linux-x64CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarPATH=$JAVA_HOME/bin:$PATHexportJAVA_HOMECLASS..
分类:
Web程序 时间:
2014-05-06 17:11:45
阅读次数:
430
#find/usr-namepxelinux.0#find/usr/share-namepxe*#find/usr-namepxelinux.?#tail/etc/passwd#find/-userapache#find/-usernamed#df-i#find/-inum1016273--execrm-fr{}\;#find/-size+204800-execrm-fr{}\;#find/etc-nameinit*-okls-l{}\;#find/-size204800#find/-size+204800(..
分类:
其他好文 时间:
2014-05-06 16:44:34
阅读次数:
258
特殊权限SUID:运行某程序时,相应进程的属主是程序文件自身的属主,而不是启动者。chmodu+sFILE如果FILE本身原来就有执行权限,则SUID显示为s,否则显示S。如:chmodu+s/bin/cat如:ls-l/usr/bin/passwd-rwsr-xr-x它默认就有SUID,所以普通用户才能有权限来修改自己的密码。SG..
分类:
系统相关 时间:
2014-05-06 16:33:48
阅读次数:
545