Portál AbcLinuxu, 14. května 2025 02:45
root
nastavený nějaký divný shell, třeba /bin/false
?
su -
, nebo vás to také hned vykopne?
su -
nebo su root -
, tedy s tou pomlčkou, aby se provedla inicializace prostředí jako po přihlášení?
administrator@master:~$ ssh root@xx.xxx.x.xxx root@xx.xxx.x.xxx's password: Linux master 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Jun 2 20:19:01 2012 from xx.xxx.x.xxx Connection to xx.xxx.x.xxx closed. administrator@master:~$
/tec/passwd
a init skripty shellu pro root
a.
root:x:0:0:root:/root:/bin/bash
a init skripty shellu pro roota mám prosím hledat kde?
Díky
bash
jsou to soubory:
/etc/profile ~/.bash_profile ~/.bash_login ~/.profile
Jun 2 20:36:24 master sshd[2479]: Accepted password for root from xx.xxx.x.xxx port 55338 ssh2 Jun 2 20:36:24 master sshd[2479]: pam_unix(sshd:session): session opened for user root by (uid=0) Jun 2 20:36:24 master sshd[2482]: fatal: safely_chroot: stat("/var/www/root"): No such file or directory Jun 2 20:36:24 master sshd[2479]: pam_unix(sshd:session): session closed for user root
sshd_config
nastaven ChrootDirectory
?
... ChrootDirectory /var/www/%u AllowTcpForwarding no Subsystem sftp internal-sftp Match Group admin ChrootDirectory none AllowTcpForwarding yes ...
/var/www/root
existuje?
root
a nebo pro nějakou skupinu, kde by byl root
? Nebo nebyl root
součástí skupiny admin
, a teď už není?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.