[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RES: SFTP sem shell, é possível?



Para limitar o nr. de processos o comando
$ ulimit -u <nprocessos>
deve ser usado

eis a sintaxe do ulimit: (saiba mais usando: $ man bash)

ulimit [-SHacdflmnpstuv [limit]]

              -a     All current limits are reported
              -c     The maximum size of core files created
              -d     The maximum size of a process's data segment
              -f     The maximum size of files created by the shell
              -l     The maximum size that may be locked into memory
              -m     The maximum resident set size
              -n     The maximum number of open file descriptors (most systems 
do  not
                     allow this value to be set)
              -p     The pipe size in 512-byte blocks (this may not be set)
              -s     The maximum stack size
              -t     The maximum amount of cpu time in seconds
              -u     The maximum number of processes available to a single user
              -v     The maximum amount of virtual memory available to the shell


sugiro as seguintes permissões
pros diretorios:
770

p/ os arquivos:
660

e quando a dono e grupo:
dono: o proprio usuario
grupo: grupo do usuario que roda o apache (note, nenhum  outro usuario deve
fazer parte deste grupo)

[]s
Vinicius

> Como eu posso limitar o número de processos por usuário?E também, se é no home
dos usuários que ficam o public_html, como façopara impedir então que um usuário
acesse o public_html do outro, se aspermissões estão assim:rwxr-xr-x
/home/usuario1/public_htmlpara o apache poder ter acesso?Att.Jerônimo 

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



Reply to: