Você está na página 1de 3

Aula 24/09 (Grupos)

1 parte
[root@LabCettal ~]# /var/www/httpd
-bash: /var/www/httpd: Arquivo ou diretório não encontrado
[root@LabCettal ~]# cd /var/www
[root@LabCettal www]# cd /httpd
-bash: cd: /httpd: Arquivo ou diretório não encontrado
[root@LabCettal www]# cd /html
-bash: cd: /html: Arquivo ou diretório não encontrado
[root@LabCettal www]# cd html/
[root@LabCettal html]# mkdir gestores
[root@LabCettal html]# ls -l
total 20
drwxr-xr-x 2 root root 4096 Set 17 05:40 colaboradores
drwxr-xr-x 2 root root 4096 Set 24 05:28 gestores
-rw-r--r-- 1 root root 70 Set 10 10:25 index.html
drwxr-xr-x 2 root root 4096 Set 17 07:46 publico
drwxr-xr-x 2 root root 4096 Set 17 07:15 seguro
[root@LabCettal html]# mkdir rh
[root@LabCettal html]# cd gestores/
[root@LabCettal gestores]# mkdir rh
[root@LabCettal gestores]# mkdir financeiro
[root@LabCettal gestores]# cd rh/
[root@LabCettal rh]# mcedit arquivo1.dat
[root@LabCettal rh]# mcedit arquivo2.dat
[root@LabCettal rh]# cd ..
[root@LabCettal gestores]# cd financeiro?
-bash: cd: financeiro?: Arquivo ou diretório não encontrado
[root@LabCettal gestores]# cd financeiro/
[root@LabCettal financeiro]# mcedit arquivofin1.dat
[root@LabCettal financeiro]# mcedit arquivofin2.dat
[root@LabCettal financeiro]#
[root@LabCettal financeiro]#
[root@LabCettal financeiro]#
[root@LabCettal financeiro]#
[root@LabCettal financeiro]#
[root@LabCettal financeiro]# ls -la
total 16
drwxr-xr-x 2 root root 4096 Set 24 05:37 .
drwxr-xr-x 4 root root 4096 Set 24 05:36 ..
-rw-r--r-- 1 root root 28 Set 24 05:37 arquivofin1.dat
-rw-r--r-- 1 root root 30 Set 24 05:37 arquivofin2.dat
[root@LabCettal financeiro]# ls -l
total 8
-rw-r--r-- 1 root root 28 Set 24 05:37 arquivofin1.dat
-rw-r--r-- 1 root root 30 Set 24 05:37 arquivofin2.dat
[root@LabCettal financeiro]# pwd
/var/www/html/gestores/financeiro
[root@LabCettal financeiro]# cd ..
[root@LabCettal gestores]# pwd
2 parte
[root@LabCettal gestores]# service httpd restart
Parando o httpd: [FALHOU]
Iniciando o httpd: [ OK ]
[root@LabCettal gestores]# cd /etc/httpd/conf
[root@LabCettal conf]# mcedit groupgestores
[root@LabCettal conf]# rm groupgesores
rm: imposível remover `groupgesores': Arquivo ou diretório não encontrado
[root@LabCettal conf]# ls -l
total 92
-rw-r--r-- 1 root root 34258 Set 17 07:31 httpd.conf
-rw-r--r-- 1 root root 33834 Set 10 10:42 httpd.conf.original
-rw-r--r-- 1 root root 22 Set 17 07:41 httpd.passwd
-rw-r--r-- 1 root root 12958 Dez 3 2009 magic
[root@LabCettal conf]# ls -la
total 100
drwxr-xr-x 2 root root 4096 Set 24 05:52 .
drwxr-xr-x 5 root root 4096 Jul 9 15:49 ..
-rw-r--r-- 1 root root 34258 Set 17 07:31 httpd.conf
-rw-r--r-- 1 root root 33834 Set 10 10:42 httpd.conf.original
-rw-r--r-- 1 root root 22 Set 17 07:41 httpd.passwd
-rw-r--r-- 1 root root 12958 Dez 3 2009 magic
[root@LabCettal conf]# ls -la
total 100
drwxr-xr-x 2 root root 4096 Set 24 05:52 .
drwxr-xr-x 5 root root 4096 Jul 9 15:49 ..
-rw-r--r-- 1 root root 34258 Set 17 07:31 httpd.conf
-rw-r--r-- 1 root root 33834 Set 10 10:42 httpd.conf.original
-rw-r--r-- 1 root root 22 Set 17 07:41 httpd.passwd
-rw-r--r-- 1 root root 12958 Dez 3 2009 magic
[root@LabCettal conf]#
[root@LabCettal conf]# cd /var/www/html/gestores/
[root@LabCettal gestores]# mcedit .htaccess
[root@LabCettal gestores]# cd /etc/httpd/conf/groupgestores
-bash: cd: /etc/httpd/conf/groupgestores: Arquivo ou diretório não encontrado
[root@LabCettal gestores]# cd /etc/httpd/cof
-bash: cd: /etc/httpd/cof: Arquivo ou diretório não encontrado
[root@LabCettal gestores]# cd /etc/httpd/conf
[root@LabCettal conf]# mcedit groupgestores
[root@LabCettal conf]# ls la
ls: impossível acessar la: Arquivo ou diretório não encontrado
[root@LabCettal conf]# la -la
-bash: la: command not found
[root@LabCettal conf]# ls -la
total 104
drwxr-xr-x 2 root root 4096 Set 24 05:59 .
drwxr-xr-x 5 root root 4096 Jul 9 15:49 ..
-rw-r--r-- 1 root root 34 Set 24 06:00 groupgestores
-rw-r--r-- 1 root root 34258 Set 17 07:31 httpd.conf
-rw-r--r-- 1 root root 33834 Set 10 10:42 httpd.conf.original
-rw-r--r-- 1 root root 22 Set 17 07:41 httpd.passwd
-rw-r--r-- 1 root root 12958 Dez 3 2009 magic
[root@LabCettal conf]# htpasswd httpd.passwd gestorrh
New password:
Re-type new password:
Adding password for user gestorrh
[root@LabCettal conf]# htpasswd httpd.passwd gestorfinanceiro
New password:
Re-type new password:
Adding password for user gestorfinanceiro
[root@LabCettal conf]# service httpd restart

Você também pode gostar