윈도우 계정 생성

윈도우 2015. 8. 12. 10:30

1.    신규 계정 생성

net user newuser /add

ð  newuser 계정을 생성한다. (패스워드 없는 상태로 생성)

net user newuser newpass /add

ð  newuser 계정을 생성하면서 패스워드를 newpass로 지정한다.

net user newuser * /add

ð  newuser 계정을 생성하면서 신규 패스워드를 두 번 입력 받는다.

 

2.    기존 계정 패스워드 변경

net user olduser newpass

ð  olduser 계정의 패스워드를 newpass로 변경한다.

net user olduser *

ð  olduser 계정의 신규 패스워드를 두 번 입력 받는다.

 

3.    기존 계정 그룹에 등록/삭제

net localgroup administrators olduser /add

ð  olduser 계정을 administrators 그룹에 등록시킨다.

net localgroup "Remote Desktop Users" olduser /add

ð  olduser 계정을 Remote Desktop Users 그룹에 등록시킨다.

ð  이처럼 띄어쓰기가 포함된 경우 큰따옴표로 묶어준다.

net localgroup administrators olduser /delete

ð  olduser 계정을 administrators 그룹에서 제외시킨다.

 

4.    기존 계정 활성/비활성

net user administrator /active

net user administrator /active:yes

ð  administrator 계정을 활성화 시킨다.

ð  /active의 기본 값은 yes이므로 굳이 :yes를 붙일 필요는 없다.

net user administrator /active:no

ð  administrator 계정을 비활성화 시킨다.

 

5.    기존 계정 만료날짜 설정

net user olduser /expires:2011/06/27

net user olduser /expires:11/06/27

ð  olduser 계정이 2011 6 27 00시부로 만료된다.

ð  6 26 23 59 59초까지는 로그인 가능, 6 27 00시부터 로그인 불가

ð  연도는 4자리, 2자리 모두 표기 가능

net accounts /forcelogoff:5

ð  계정 만료날짜가 설정된 경우, 만료시간 5분 후 강제로 로그오프 됨

ð   olduser 계정은 2011 6 27 00 05분에 강제로 로그오프 됨

 

6.    다음 번 로그온 시 반드시 패스워드 변경하도록 설정

net user olduser /logonpasswordchg:yes

ð  olduser 계정은 다음 번 로그온 시 반드시 패스워드를 변경해야 함

 

7.    패스워드 만료 기간 설정

net accounts /maxpwage:30

ð  30일 지나면 패스워드를 변경해야 함

wmic useraccount where name="olduser" set passwordexpires=true

ð  패스워드 만료 기간 설정에 영향을 받음

ð  신규로 생성한 계정은 기본적으로 이 값이 true이므로 설정할 필요 없음

ð  현재 olduser 계정에 대해 설정된 값을 확인하고 싶다면 아래와 같이 입력

ð  wmic useraccount where name="olduser" get passwordexpires



출처 : http://snoopybox.co.kr/1546

'윈도우' 카테고리의 다른 글

forefront 업데이트 확인  (0) 2015.07.29
iis, 웹페이지 다운 (DCOM 서비스)  (0) 2015.07.15
log  (0) 2015.05.18
윈도우 제품키 cmd 입력  (0) 2015.04.01
윈도우 패스워드 분실시 변경방법  (0) 2015.04.01
Posted by Narusika
,

/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format


/usr/lib/libexpat.so: could not read symbols: File in wrong format




해결책 : # mv /usr/lib/libexpat.so /usr/lib/libexpat.so.bak


               # ln -s /lib64/libexpat.so.0.5.0 /usr/lib/libexpat.so  


               # mv /usr/lib/libdb-4.3.so /usr/lib/libdb-4.3.so.bak


               # ln -s /lib64/libdb-4.3.so /usr/lib/libdb-4.3.so 


에러의 원인은 64비트 환경에서 32비트용 소스를 가져다가 설치하기 때문이다. 컴파일 도구와 관련된 심볼릭 링크 파일을 찾지 못한다고 나오고 있다. 

'리눅스' 카테고리의 다른 글

ftp 계정 생성, 디렉토리 설정  (0) 2015.08.13
sendmail 릴레이  (0) 2015.08.12
centos 7 yum 저장소  (0) 2015.08.11
configure 에러  (1) 2015.08.11
swap 메모리  (0) 2015.07.14
Posted by Narusika
,

centos 7 yum 저장소

리눅스 2015. 8. 11. 16:26

--http://dl.fedoraproject.org/pub/epel/7/x86_64/e/에서 epel-release-7-*.noarch.rpm을 설치한다. 

[root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm 

[root@localhost ~]# yum install epel-release-7-5.noarch.rpm 

--http://rpms.famillecollet.com/enterprise/에서 remi-release-7.rpm을 설치한다. 

[root@localhost ~]# wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 

[root@localhost ~]# yum install remi-release-7.rpm 


yum으로 라이브러리 다운시, 라이브러리가 없는 경우가 있다. 그떄 저장소 추가

'리눅스' 카테고리의 다른 글

sendmail 릴레이  (0) 2015.08.12
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format  (0) 2015.08.12
configure 에러  (1) 2015.08.11
swap 메모리  (0) 2015.07.14
dmidecode 하드웨어 확인 명령어  (0) 2015.07.14
Posted by Narusika
,

configure 에러

리눅스 2015. 8. 11. 15:37

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum install libxslt-devel


configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

yum install net-snmp-devel


configure: error: Please reinstall readline - I cannot find readline.h

yum install readline-devel


configure: error: Cannot find pspell

yum install aspell-devel


checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

yum install unixODBC-devel


configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.

yum install libicu-devel


configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.

yum install libc-client-devel


configure: error: freetype.h not found.

yum install freetype-devel


configure: error: xpm.h not found.

yum install libXpm-devel


configure: error: png.h not found.

yum install libpng-devel


configure: error: vpx_codec.h not found.

yum install libvpx-devel


configure: error: Cannot find enchant

yum install enchant-devel


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

yum install libcurl-devel


configure: error: Cannot find ldap.h

 yum install openldap-devel


make: warning:  Clock skew detected.  Your build may be incomplete.

시간을 동기화 시킨다.



checking for termcap functions library... configure: error: No curses/termcap library found

yum -y install ncurses-devel


configure: error: C++ preprocessor "/lib/cpp" fails sanity check

yum -y install gcc-c++


configure: error: Unable to locate gmp.h

 yum -y install gmp*


configure: error: not found. Please reinstall the expat distribution.

yum -y install expat*


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

 yum -y install curl* 또는 yum -y install curl & yum -y install curl-devel


configure: error: Please reinstall libmcrypt - I cannot find mcrypt.h 

configure: error: Please reinstall libmhash - I cannot find mhash.h

 yum install libmcrypt libmcrypt-devel libmhash libmhash-devel


Configure: error: xml2-config not found. Please check your libxml2 installation

yum install libxml2-devel


Checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's <evp.h>

yum install openssl-devel


Configure: error: Please reinstall the BZip2 distribution

 yum install bzip2-devel


Configure: error: libjpeg.(also) not found.

 yum install libjpeg-devel


Configure: error: libpng.(also) not found.

 yum install libpng-devel


Configure: error: freetype.h not found.

yum install freetype-devel


Configure: error: Cannot find MySQL header files under /usr.

Note that the MySQL client library is not bundled anymore!

 yum install mysql-devel


Configure: error: Please reinstall the ncurses distribution

yum install ncurses-devel


Configure: error: Cannot find pspell

yum install pspell-devel


Configure: error: snmp.h not found. Check your SNMP installation.

 yum install net-snmp-devel


Configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

 yum install libc-client-devel


Configure: error: libXpm.(a|so) not found   에러날때

 yum install xorg-x11-devel

ldconfig -p | grep Xpm

ldconfig -p | grep Xpm

libXpm.so.4 (libc6,x86-64) => /usr/lib64/libXpm.so.4

libXpm.so (libc6,x86-64) => /usr/lib64/libXpm.so


 ln -sf /usr/lib64/libm.so /usr/lib/libm.so

 ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so


 


Configure: error: mcrypt.h not found. Please reinstall libmcrypt.   에러날때

wget http://ftp.linux.co.kr/pub/etc/libmcrypt-2.5.7.tar.gz

    tar zxvfp libmcrypt-2.5.7.tar.gz

    cd libmcrypt-2.5.7

    ./configure && make && make install

 



configure: error: ZLIB extension requires zlib >= 1.0.9

ln -sf /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib/libgssapi_krb5.so

ln -sf /usr/lib64/libkrb5.so.3.3 /usr/lib/libkrb5.so

ln -sf /usr/lib64/libk5crypto.so.3.1 /usr/lib/libk5crypto.so

ln -sf /lib64/libcom_err.so.2 /usr/lib/libcom_err.so

ln -sf /usr/lib64/libgcrypt.so.11 /usr/lib/libgcrypt.so

ln -sf /usr/lib64/libgpg-error.so.0 /usr/lib/libgpg-error.so

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so

ln -sf /usr/lib64/libm.so /usr/lib/libm.so

ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so



configure: error: Kerberos libraries not found.

           Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )

mkdir /usr/kerberos
cd /usr/kerberos
ln -s /usr/lib64 lib



참고 사이트 http://hyperv.tistory.com/entry/apm-config%EC%8B%9C-%EC%97%90%EB%9F%AC


Posted by Narusika
,

정의파일 업데이트 확인 안될때 


https://technet.microsoft.com/ko-kr/forefront/bb508811.aspx

'윈도우' 카테고리의 다른 글

윈도우 계정 생성  (0) 2015.08.12
iis, 웹페이지 다운 (DCOM 서비스)  (0) 2015.07.15
log  (0) 2015.05.18
윈도우 제품키 cmd 입력  (0) 2015.04.01
윈도우 패스워드 분실시 변경방법  (0) 2015.04.01
Posted by Narusika
,

checking "LinuxThreads"... "Not found"

configure: error: This is a linux system and Linuxthreads was not

found. On linux Linuxthreads should be used.  Please install Linuxthreads

(or a new glibc) and try again.  See the Installation chapter in the

Reference Manual for more information.


아래 한줄 입력해주자


echo '/* Linuxthreads */' >> /usr/include/pthread.h


Posted by Narusika
,

php imap 설치

리눅스/php 2015. 7. 20. 07:56

1. configure:error: Cannot find imap library ( libc-client.a). please check your c-client installaion.  


2. configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.


두가지 에러는 imap 관련 에러


 wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz

 tar zxvf imap-2007f.tar.gz

 cd imap-2007f/src/c-client

 cp *.h /usr/local/include/



cd  /usr/local/src/imap-2007f


make lnp SSLTYPE=unix

or

make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4


mkdir /usr/local/imap-2007f/

mkdir /usr/local/imap-2007f/include/

mkdir /usr/local/imap-2007f/lib/

cp c-client/*.h /usr/local/imap-2007f/include/

cp c-client/*.c /usr/local/imap-2007f/lib/

cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a


해당 작업 후 php컴파일 옵션중

--with-imap-ssl=/usr/local/imap-2007f \

--with-imap=/usr/local/imap-2007f \



make가 안되는 경우



osdep.c:106: warning: 'struct pam_response' declared inside parameter list

osdep.c:106: warning: its scope is only this definition or declaration, which is probably not what you want

osdep.c:106: warning: 'struct pam_message' declared inside parameter list

osdep.c: In function 'checkpw_conv':

osdep.c:110: error: invalid application of 'sizeof' to incomplete type 'struct pam_response'

osdep.c:111: error: dereferencing pointer to incomplete type

osdep.c:112: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)

osdep.c:112: error: (Each undeclared identifier is reported only once

osdep.c:112: error: for each function it appears in.)

osdep.c:113: error: invalid use of undefined type 'struct pam_response'

osdep.c:113: error: dereferencing pointer to incomplete type

osdep.c:113: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:114: error: invalid use of undefined type 'struct pam_response'

osdep.c:114: error: dereferencing pointer to incomplete type

osdep.c:116: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)

osdep.c:117: error: invalid use of undefined type 'struct pam_response'

osdep.c:117: error: dereferencing pointer to incomplete type

osdep.c:118: error: invalid use of undefined type 'struct pam_response'

osdep.c:118: error: dereferencing pointer to incomplete type

osdep.c:120: error: 'PAM_TEXT_INFO' undeclared (first use in this function)

osdep.c:121: error: 'PAM_ERROR_MSG' undeclared (first use in this function)

osdep.c:122: error: invalid use of undefined type 'struct pam_response'

osdep.c:122: error: dereferencing pointer to incomplete type

osdep.c:123: error: invalid use of undefined type 'struct pam_response'

osdep.c:123: error: dereferencing pointer to incomplete type

osdep.c:127: error: 'PAM_CONV_ERR' undeclared (first use in this function)

osdep.c: At top level:

osdep.c:138: error: expected ')' before '*' token

osdep.c: In function 'checkpw':

osdep.c:155: error: 'pam_handle_t' undeclared (first use in this function)

osdep.c:155: error: 'hdl' undeclared (first use in this function)

osdep.c:156: error: storage size of 'conv' isn't known

osdep.c:164: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:165: error: 'PAM_RHOST' undeclared (first use in this function)

osdep.c:168: error: 'PAM_ESTABLISH_CRED' undeclared (first use in this function)

osdep.c:184: error: 'checkpw_cleanup' undeclared (first use in this function)

make[3]: *** [osdep.o] Error 1

make[3]: Leaving directory `/home/kit/imap-2007f/c-client'

make[2]: *** [lnp] Error 2

make[2]: Leaving directory `/home/kit/imap-2007f/c-client'

make[1]: *** [OSTYPE] Error 2

make[1]: Leaving directory `/home/kit/imap-2007f'

make: *** [ldb] Error 2


이런식의 메시지가 뜨면서 imap 이 안되는 경우


yum install pam-devel 설치후 다시 make


------------------------------------------------------------------------------------------------------


yum install php-imap   으로 설치하고 모듈을 php.ini 에 

extension=imap.so

해주는 방법이 있다


------------------------------------------------------------------------------------------------------

위처럼해도 안될 경우


yum remove libc-client



ln -s c-client.a /usr/lib64/libc-client.a

ln -s c-client.a /usr/lib/libc-client.a

c-client.a 를 링크걸어주자 


'--with-imap=/usr/local/imap-2007f' \

'--with-imap-ssl=/usr/local/imap-2007f' \

"--with-imap-ssl" \


yum install rpm-build

이건 잘 모르곘,,,

'리눅스 > php' 카테고리의 다른 글

php 에러  (0) 2016.03.10
php-common 설치 오류  (0) 2016.02.17
phpinfo.php 다운로드 될때  (0) 2015.06.30
phpinfo.php  (0) 2015.06.28
Posted by Narusika
,

이벤트뷰어 -> 시스템 -> 오류  DCOM 이라는 인터페이스가 올라와 있지 않았다.

 

services.msc 에서 보면 DCOM Server Process Launcher 가 있는데 이놈이 중지되 있었고,

시작이 되지 않은 상태였다. 리부팅을 해주니 이놈이 올라오고, iis 실행과 함께 웹서비스도 가동이 되었다.

 

왜 리부팅후 가동되는지는 잘 모르겠다. 안되는 이유는 종속성 때문인것 같지만 확실하지 않다.

'윈도우' 카테고리의 다른 글

윈도우 계정 생성  (0) 2015.08.12
forefront 업데이트 확인  (0) 2015.07.29
log  (0) 2015.05.18
윈도우 제품키 cmd 입력  (0) 2015.04.01
윈도우 패스워드 분실시 변경방법  (0) 2015.04.01
Posted by Narusika
,

swap 메모리

리눅스 2015. 7. 14. 22:27

sysctl vm.swappiness    현재 스왑메모리의 활용도 값을 볼 수 있다.


vi /etc/sysctl.conf


맨 아래 줄에 vm.swappiness = 10 이라고 써주면  (echo 10 > /proc/sys/vm/swappines 바로 적용가능)

메모리 사용률이 90%에 도달했을때 프로세스를 옮겨야 한다는 뜻.

기본 스왑활용도는 60이며, 메모리 사용률이 40%에 도달했을때 프로세스를 옮겨야 함을 가리킨다.




스왑(swap)


메모리가 부족하면 예비공간의 역할을 한다.


-장점

메모리가 다 차면 보조공간 제공

더 많은 공간을 사용할 수 있게 드물게 필요한 항목을 옮길 수 있게함

최대 절전 기능 활용 가능


-단점

동적크기 조정 불가 하드디스크 공간을 차지

하드디스크 소모율 증가

하드디스크와 메모리의 속도 차이로 인해 병목현상이 발생




'리눅스' 카테고리의 다른 글

centos 7 yum 저장소  (0) 2015.08.11
configure 에러  (1) 2015.08.11
dmidecode 하드웨어 확인 명령어  (0) 2015.07.14
도메인을 이용해 사용자 디렉토리 접속 방법  (0) 2015.07.01
make 명령어 옵션  (0) 2015.06.28
Posted by Narusika
,

dmidecode -t 2          메인보드 확인

dmidecode -t 16         메모리 확인


dmidecode -t            타입 확인




-t, --type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI type number, or a comma-separated list of type numbers, or a keyword from the following list: bios, system, baseboard, chassis, processor, memory, cache, connector, slot. Refer to the DMI TYPES section below for details.   If  this option is used more than once, the set of displayed entries will be the union of all the given types.  If TYPE is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error.
 
DMI TYPES
       The SMBIOS specification defines the following DMI types:
       Type   Information
       ----------------------------------------
          0   BIOS
          1   System
          2   Base Board  보드명칭
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array  최대지원 메모리
         17   Memory Device  메모리 뱅크수 확인
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System Reset
         24   Hardware Security
         25   System Power Controls
         26   Voltage Probe
         27   Cooling Device
         28   Temperature Probe
         29   Electrical Current Probe
         30   Out-of-band Remote Access
         31   Boot Integrity Services
         32   System Boot
         33   64-bit Memory Error
         34   Management Device
         35   Management Device Component
         36   Management Device Threshold Data
         37   Memory Channel
         38   IPMI Device
         39   Power Supply
         40   Additional Information
         41   Onboard Device
 
# dmidecode -t 2
# dmidecode 2.10
SMBIOS 2.3 present.
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
        Manufacturer: TYAN
        Product Name: TYAN High-End Dual AMD Opteron, S2882
        Version: To be filled by O.E.M.
        Serial Number: To be filled by O.E.M.
 
# dmidecode -t 16
# dmidecode 2.10
SMBIOS 2.3 present.
Handle 0x002B, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Single-bit ECC
        Maximum Capacity: 12 GB
        Error Information Handle: Not Provided
        Number Of Devices: 8



출처 : http://chonnom.com/bbs/board.php?bo_table=B21&wr_id=33

'리눅스' 카테고리의 다른 글

configure 에러  (1) 2015.08.11
swap 메모리  (0) 2015.07.14
도메인을 이용해 사용자 디렉토리 접속 방법  (0) 2015.07.01
make 명령어 옵션  (0) 2015.06.28
awstats 설치  (0) 2015.06.24
Posted by Narusika
,