반응형

리눅스 39

리눅스 사용자 환경설정 useradd home 폴더생성

리눅스 사용자 환경설정 useradd home 폴더생성 리눅스에서 사용자를 추가할 경우 기본적으로 설정되어야 할 부분이 있을 경우 3가지 환경 파일을 사용하면 됩니다. 1. /etc/default/useradd2. /etc/login.defs3. /etc/skel/ 1. useradd파일은 계정 생성시 어떤 환경과 어떤 파일들을 참조할지 정의합니다. vi /etc/default/useradd 파일을 열면 위와 같이 초기 화면이 보일 것입니다.#기본 소속 그룹GROUP=100 #홈디렉토리 경로- HOME=/home - INACTIVE 의 값 1이상의 숫자 : 10을 지정하면 패스워드 만료기간이 된 이후에 10일 동안은 패스워드가 유효0 : 패스워드 만료기간이 되자마자 바로 패스워드를 잠궈버림-1 : 이 기..

리눅스 2016.06.29

리눅스 php php-mcrypt 설치 No package php-mcrypt available

리눅스 php php-mcrypt 설치 No package php-mcrypt available 리눅스에 모듈이 있을 경우 yum install php-mcrypt 를 입력하면 php-mcrypt를 설치할 수 있습니다. 하지만 이 모듈이 서버에 존재하지 않을 수 있습니다. 그럴 경우는 다운로드 받아서 설치 해야 합니다. # yum install php-mcrypt Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: p3plmirror01.prod.phx3.secureserver.net * centosplus: p3plmirror01.prod.phx3.secureserver.net * epel: mirrors.so..

리눅스 2016.02.01

리눅스 최근 수정된 파일 쉘 상 변경 파일 찾기 atime mtime ctime

리눅스 쉘 상에서 최근 수정한 파일 찾기 일단 명령어는 find ./ -name "*.php" -mtime -1 -ls 이렇게 하시면 되는데요. 예를 들어 2016년 1월 6일이라면 위 명령어를 사용하면 2016년 1월 5일, 6일 에 수정된 파일을 찾게 됩니다.-mtime 속성에는 +n, n , -n 을 넣을 수 있습니다. 현재 날짜 2016년 1월 6일-n은 현재 날짜를 기준으로 몇일 전에 날짜에 수정된 파일 찾기예) find ./ -name "*.php" -mtime -1 -ls 1월 5일, 6일안에 수정된 날짜를 찾습니다.+n은 지정된 날짜까지만 파일을 찾습니다.예) find ./ -name "*.php" -mtime +1 -ls이렇게 하면 2016년 1월 4일까지에 수정된 날짜를 찾습니다. n은..

리눅스 2016.01.06

리눅스 php-mbstring 설치하기 Call to undefined function mb_substr()

에러1 : Call to undefined function mb_substr() in ~~ 물리적인 주소 에러 에러2 : The mbstring extension is missing. Please check your PHP configuration. 이것은 php-mbstring 모듈을 설치하면 해결 됩니다. yum install php-mbstring -y 위 명령어를 실행하면 php-mbstring 모듈을 설치하게 됩니다. 하지만 위 명령어로 설치가 안될 경우가 있습니다. 1. 먼저 리눅스 박스를 확인 업데이트 확인 yum update Centos 6버전 wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.r..

리눅스 2015.12.08

리눅스 umask 파일/디렉터리 생성 권한주기

리눅스 umask 파일/디렉터리 생성 권한주기 파일권한 형식 r : 읽기권한(4) , w : 쓰기권한(2), x : 실행권한(1) drw-rw-rw-. 1 root root -rw-rw-rw-. 1 root root "d" 디렉토리를 의미함, 없으면 파일 drw-rw-rw-. 1 root root 소유자 권한 부분drw-rw-rw-. 1 root root 그룹 권한 부분 drw-rw-rw-. 1 root root 아무나권한 부분 umask 를 이용하면 파일이나 디렉터리를 생성시 기본으로 권한을 설정할 수 있습니다. 파일 이랑 디렉토리 생성시 기본 권한값파일은 만들때 666의 권한디렉토리는 777권한입니다. umask 의 기본값 0222 , 그 값에서 빼기를 한값이 퍼미션 값입니다.ex) umask 022..

리눅스 2015.11.20

리눅스 특정 명령어 실행 권한 주기 Linux specific commands execute permissions period

리눅스에 보면 find 명령어가 있습니다.그 명령어를 아무나 사용 못하게 하려면You look at the find command on Linux.To let anyone use the command chmod 750 /bin/find 하면 아무나 사용 못합니다.If you do not use anyone. 아무나 사용하게 하려면To use anyone chmod 755 /bin/find 이렇게 하면 됩니다.To do this, you can. more infomationhttp://ccomp.kr/bbs/board.php?bo_table=linux&wr_id=38

리눅스 2015.11.11

리눅스(linux) 바이너리(binary) 실행 막기( no run)

리눅스에서 컴파일된 바이너리 파일을 실행하지 못하게 하는 방법여러가지로 검색을 해보았지만 나오는 것은 chmod에 대한 것 뿐입니다.How to prevent the execution of a compiled binary files in Linux It comes in many ways, but only tried to search for a chmod. chmod를 원하는 것이 아니였는데,eotneunde would not want to chmod, 파일이 777로 되어 있어도 바이너리 파일을 실행하지 못하게 하는 것입니다.방법은 mount시 바이너리 파일을 실행 못하게 해야 하는 것 같다.It is to prevent the execution of binary files, even if files a..

리눅스 2015.11.11

리눅스 시스템 관리 접속한 특정한 사용자에게 혹은 전체 사용자에게 메시지보내기

시스템 관리를하면서 접속한 특정한 사용자에게 혹은 전체 사용자에게 메시지보내기 mesg [y/n]다른 사용자가 나에게 메시지를 보낼 수 있는가 아닌가를설정한다. write [계정명] [터미널]다른 터미널의 사용자에게 메시지를 보낼 때 사용한다.#write kimhs pts/2 wall [메시지]모든 사용자에게 메시지를 보낸다 더 많은 자료는 http://ccomp.kr/bbs/board.php?bo_table=linux&wr_id=36

리눅스 2015.11.11

htaccess RewriteRule Redirection 리다이렉션 짧은주소 Short url address

.htaccess를 이용하면 아파치 환견설정파일인 httpd.conf에서 구현 할 수 있는 것을 구현할 수 있습니다.Using .htaccess, you can implement that can be implemented in the Apache configuration file httpd.conf. 가령 짧은 주소를 만들거나 리다이렉트 시키는 기능입니다.For example, the ability to create or redirect the short address. .htaccess는 숨은 파일이여서 ls 명령어로는 보이지 않아요. I can not see the .htaccess file is a hidden yiyeoseo ls command. $ ls -all 위와 같이 명령어를 리눅스 쉘에 ..

리눅스 2015.10.24
반응형