메뉴 건너뛰기

2015.07.16 19:09

centos 7 계정추가

조회 수 8598 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

centos 7 계정추가

 

useradd 추가할아이디

passwd 추가한아이디 (엔터를 누르면 비밀번호를 입력 할 수 있다.) 

 

test001 이라는 계정을 추가해 보도록 하겠다.

[root@localhost ~]# useradd test001
[root@localhost ~]# passwd test001
test001 사용자의 비밀 번호 변경 중
새  암호:
새  암호 재입력:
passwd: 모든 인증 토큰이 성공적으로 업데이트 되었습니다.

 

외부에서 홈페이지에 접속할 수 있게 권한을 변경해 주어야 합니다.

계정을 추가하면 /home/추가한아이디/

디렉토리가 자동으로 생성된다.

즉 /home/test001/ 이라는 디렉토리가 자동으로 생성되었다는 것이다.

 

[root@localhost ~]# cd /home 

디렉토리가 있는지, 권한은 어떤지 살펴본다.

[root@localhost home]# ls -al
drwxr-xr-x.  6 root      root        64  2월 18 00:10 .
drwxr-xr-x. 17 root      root      4096  2월 12 09:55 ..
drwx------.  3 test001   test001     74  2월 18 00:10 test001 

 

참고

r:읽을수 있다.

w:쓰기가 가능하다.

x:실행이 가능하다.

 

drwx------ 의미는? (소유자는 읽고,쓰고,실행이 가능하지만, 그룹과 손님은 접근 불가 상태)

d다음에 3자리는 소유자, 그 다음 3자리는 그룹, 마지막 3자리는 guest(손님)

 

test001 디렉토리에 권한을 711로 바꾼다.
[root@localhost home]# chmod 711 test001 

바뀌어 지었는지 확인해 보자. x 가 2개 생겼으면 ok.

[root@localhost home]# ls -al
drwxr-xr-x.  6 root      root        64  2월 18 00:10 .
drwxr-xr-x. 17 root      root      4096  2월 12 09:55 ..
drwx--x--x.  3 test001   test001     74  2월 18 00:10 test001
[root@localhost home]#


  1. No Image

    CentOS 7 에 아파치(httpd) 설치

    Date2015.07.16 Views10302
    Read More
  2. No Image

    CentOS 7 에 php 설치하기

    Date2015.07.16 Views7663
    Read More
  3. No Image

    centos 7 계정추가

    Date2015.07.16 Views8598
    Read More
  4. No Image

    CentOS 7 Subversion(SVN)

    Date2015.07.17 Views7648
    Read More
  5. No Image

    CentOS 7 FTP Server 설치

    Date2015.07.17 Views7701
    Read More
  6. centos 7 APM 최신버전 설치 ( mariadb 10.4 / apache 2.4.39 / php 7.3.8 )

    Date2024.02.07 Views46
    Read More
  7. No Image

    CentOS 5.1 + APM(apache 2.2.x + php 5.2.x + mysql5.0.x + Zend 3.0.x) 설치

    Date2016.03.18 Views8686
    Read More
  8. No Image

    centos 4.x 데몬

    Date2014.02.27 Views6875
    Read More
  9. No Image

    CentOS 32Bit 운영체제에서 메모리 4G인식 시키는 방법

    Date2014.02.27 Views7103
    Read More
  10. No Image

    cdrom 마운트 하기

    Date2014.03.26 Views7102
    Read More
  11. No Image

    bitnami Redmine stack 업그레이드기 (1.2.x -> 2.0.x)

    Date2017.07.05 Views6835
    Read More
  12. bind , 네임서버 구축 ( CentOS 6.x)

    Date2016.04.22 Views7089
    Read More
  13. No Image

    bash 스크립트에서 네트워크 정보 확인하기

    Date2014.02.27 Views14276
    Read More
  14. No Image

    APM 소스 설치

    Date2014.02.27 Views7735
    Read More
  15. No Image

    APM 소스 설치

    Date2014.02.27 Views8068
    Read More
  16. No Image

    apache에서 전송 속도 제한하기

    Date2014.02.27 Views6940
    Read More
  17. No Image

    apachec rewrite 사용하기 // www 강제 사용 // HTTP to HTTPS // 특정경로만 HTTP

    Date2016.12.30 Views7081
    Read More
  18. No Image

    apache2 트래픽 모듈 mod_cband 사용법

    Date2019.02.14 Views1129
    Read More
  19. No Image

    APACHE, OHS 400 웹로직 연동후 특정 작업에 400 error

    Date2016.12.30 Views8645
    Read More
  20. No Image

    apache, mod_ssl 설치 (apache 1.3.37버전)

    Date2014.02.27 Views7667
    Read More
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved