2015년 9월 8일 화요일

데비안 리눅스 sudo 설치

데비안에 sudo를 설치 해본다.
설치를 하고 유저를 추가 해줘야한다..

1. sudo 설치
root@*******:/home/********# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 850 kB of archives.
After this operation, 2,694 kB of additional disk space will be used.
Get:1 http://ftp.kr.debian.org/debian/ jessie/main sudo amd64 1.8.10p3-1+deb8u2 [850 kB]
Fetched 850 kB in 3s (217 kB/s)
Selecting previously unselected package sudo.
(Reading database ... 33426 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.10p3-1+deb8u2_amd64.deb ...
Unpacking sudo (1.8.10p3-1+deb8u2) ...
Processing triggers for systemd (215-17+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up sudo (1.8.10p3-1+deb8u2) ...
Processing triggers for systemd (215-17+deb8u2) ...

2. sudo 에 user 추가
root@*******:/home/********sudo adduser ********* sudo
Adding user `*********' to group `sudo' ...
Adding user ********* to group sudo
Done.

3. visudo에 설정
  GNU nano 2.2.6                  File: /etc/sudoers.tmp

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
*****  ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

2015년 9월 3일 목요일

익스체인지 OWA 500 ERROR

마이크로소프트 익스체인지 OWA 이용시 로그인 후 바로 500에러가 발생하면 이렇게 해보자.

1. 원인
    : 폼 기반 인증 서비스가 시작되지 않아서 발생

2. 조치
    :윈도우 > 관리도구 > 서비스 > Microsoft Exchange 폼 기반 인증 서비스 (Microsoft Form-Base Authentication Service)를 "시작(Start)" 한다.

3. 참고 : http://www.winsysadminblog.com/2011/05/blank-page-auth-owa-http-500-when-logging-into-outlook-web-access-running-on-exchange-2010/

virtualbox에 guest os의 network가 불안정한 증상

버추얼박스에 데비안 리눅스를 설치 하는 중간에도, 설치 후 ssh로 연결하고 nagios 를 설치 하고 테스트 하는 중에도 종종 ping이 빠졌다.

아.....이건 뭐지.....버추얼박스랑 데비안이랑 궁합이 안맞나? 전전긍긍.......
이리저리 구글링해서 봤는데 다 쓸때 없는 말이었다..

마침내, 구글링 하다가 하나 찾았는데 호스트 os의 네트워크가 불안하면 그렇다고 하더라고.
그래서 순간 아!! 하고 생각이 났어. 지금 호스트 OS에 NIC 가 2개인데 하나는 정상적으로 연결되어 있고 나머진 게이트웨이를 지정하지 않고 연결된 상태였어...그래서 연결이 오락가락 한거야.. 그래서 게이트웨어 지정안한 NIC를 사용안함으로 하니깐 ping빠지는 것 없이 잘되더라..