#!/bin/bashforIin`seq110`;docut-d:-f1/etc/passwd|grep"user$I"2>>/tmp/etc.err||useradduser$Idone
分类:
其他好文 时间:
2015-09-01 00:02:52
阅读次数:
385
第一题 本作业以VIM编写第三题 echo$PATH 此变量可输出命令调用的路径!环境变量! env 输出更详细的环境变量 1、改变全局变量: /etc/profile 此文件夹下的sh在启动时会被自动加载 /etc/profile.d/*.sh 2、改变目标用户环境变量 ~/.bash_profile 3、我们每次定义的自定..
分类:
其他好文 时间:
2015-08-31 23:56:55
阅读次数:
207
用户和组相关权限Linux用户和组的相关的配置文件:/etc/passwd:用户名、UID、基本组等信息/etc/group:组名、GID、组内包含的用户;/etc/shadow:用户密码及相关属性;/etc/gshadow:组的密码及相关属性;用户和组管理的相关命令:useradd、usermod、passwd、userdelgroupadd..
分类:
其他好文 时间:
2015-08-31 23:55:22
阅读次数:
265
Problem Description
In the modern time, Search engine came into the life of everybody like Google, Baidu, etc.
Wiskey also wants to bring this feature to his image retrieval system.
Every image hav...
分类:
其他好文 时间:
2015-08-31 23:47:17
阅读次数:
237
1. 编辑/etc/network/interfaces vim /etc/network/interfaces 2.将以下五项添加到/etc/network/interfaces中 Static declaration (using chosen above): iface inet static...
分类:
系统相关 时间:
2015-08-31 23:28:34
阅读次数:
250
1、服务器新建/etc/rsyncd.conf ->新建/etc/rsyncd.secrets ->运行rsync --daemon或修改/etc/xinetd.d/rsync(修改后,须执行service xinetd restart)vi /etc/rsyncd.conf # Distribu....
分类:
其他好文 时间:
2015-08-31 23:27:14
阅读次数:
237
一、简介 syslog是Linux系统默认的日志守护进程。默认的主配置文件和辅助配置文件分别是/etc/syslog.conf和/etc/sysconfig/syslog文件。通常,syslog 接受来自系统的各种功能的信息,每个信息都包括重要级。/etc/syslog.conf 文件通知 sysl...
分类:
系统相关 时间:
2015-08-31 23:04:12
阅读次数:
224
1.修改配置文件 sudo vim /etc/mysql/my.cnf 把bind-address参数的值改成你的内/外网IP或0.0.0.0,或者直接注释掉这行. 2.登录数据库 mysql -u root -p 输入密码 mysql> use mysql; 3.查询host mysql> select user...
分类:
数据库 时间:
2015-08-31 21:51:32
阅读次数:
179
本文旨在复习Linux中用户管理、权限管理,基本原理,基本命令。知识储备用户是系统资源分配的基本单位[请注意不是最小单位,最小单位应该是进程]一个用户在登录计算机,并取得资源执行A进程整个过程,步骤如下:和用户相关的文件/etc/passwd、/etc/shadow和组相关的文件/etc/gro..
分类:
其他好文 时间:
2015-08-31 19:52:14
阅读次数:
255
IhavethisissueonAWSonsomeservers.WheneverIrunsudotheterminalisstuckdoingseeminglynothing,untilitfinallyspitsoutthiserrormessage.Myterminallookslikethis:ubuntu@(none):~$sudotrue
sudo:unabletoresolvehost(none)WhatcanIdotosolveit?Pleasepostthecontentsof/etc/ho..
分类:
其他好文 时间:
2015-08-31 19:49:50
阅读次数:
234