Prihlasi sa len root, nie bezny uzivatel
Martin Tiršel
lk na blackpage.eu
Pondělí Leden 18 19:03:11 CET 2010
Zdravim,
tak s tymto som sa zatial nestretol a a ni nevim co s tym. Na jeden stroj
sa prihlasim ako root, ale uz nie ako uzivatel, ani nejde don prepnut.
Najhorsie je, ze ani neviem, co to sposobilo, urobil som bezny update, ale
okrem toho si niesom vedomy nicoho, co by som tam zmenil
ssh operators na 192.168.1.201
operators na 192.168.1.201's password:
Linux pccati1 2.6.30-2-amd64 #1 SMP Mon Dec 7 05:21:45 UTC 2009 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: Mon Jan 18 18:22:49 2010 from 192.168.1.3
Could not chdir to home directory /home/operators: Permission denied
/bin/bash: Permission denied
Connection to 192.168.1.201 closed.
Mam tam 2 uzivatelov s loginom, skusim druhy, vysledok ten samy, skusim
root a ten ok:
ssh root na 192.168.1.201
root na 192.168.1.201's password:
Linux pccati1 2.6.30-2-amd64 #1 SMP Mon Dec 7 05:21:45 UTC 2009 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: Mon Jan 18 18:52:10 2010 from 192.168.1.3
Tak sa skusim prepnut na uzivatela:
pccati1:~# su operators
Cannot execute /bin/bash: Permission denied
Pozeram permissions, vsetko ok:
ls -la /home
total 36
drwxr-xr-x 6 root root 4096 2009-11-20 13:51 .
drwxr-x--- 22 root root 4096 2009-11-19 15:42 ..
...
drwx------ 2 root root 16384 2009-11-19 14:45 lost+found
drwxr-xr-x 24 operators operators 4096 2010-01-18 16:57 operators
ls -la /bin/bash
-rwxr-xr-x 1 root root 924232 2010-01-02 16:40 /bin/bash
Googlil som googlil, nasiel som, ze mal niekto zle prava na lib adresar,
ale to nieje tento pripad:
drwxr-xr-x 12 root root 12288 2010-01-18 15:15 lib
drwxr-xr-x 2 root root 4096 2010-01-13 11:04 lib32
lrwxrwxrwx 1 root root 4 2009-11-19 14:46 lib64 -> /lib
Toto je koniec strace:
pccati1:~# strace su - operators
...
setuid(1003) = 0
chdir("/home/operators") = -1 EACCES (Permission denied)
chdir("/") = -1 EACCES (Permission denied)
open("/usr/share/locale/locale.alias", O_RDONLY) = -1 EACCES (Permission
denied)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/shadow.mo", O_RDONLY) = -1
EACCES (Permission denied)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/shadow.mo", O_RDONLY) = -1
EACCES (Permission denied)
open("/usr/share/locale/en_US/LC_MESSAGES/shadow.mo", O_RDONLY) = -1
EACCES (Permission denied)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/shadow.mo", O_RDONLY) = -1
EACCES (Permission denied)
open("/usr/share/locale/en.utf8/LC_MESSAGES/shadow.mo", O_RDONLY) = -1
EACCES (Permission denied)
open("/usr/share/locale/en/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES
(Permission denied)
write(2, "Unable to cd to '/home/operators"..., 34Unable to cd to
'/home/operators'
) = 34
gettimeofday({1263837555, 985503}, NULL) = 0
sendto(3, "<84>Jan 18 18:59:15 su[13071]: u"..., 86, MSG_NOSIGNAL, NULL,
0) = 86
close(3) = 0
exit_group(1) = ?
Ani miesto na disku nieje zaplnene a uz ma nic nenapada, co to moze
sposobovat :(
--
S pozdravom,
Martin Tiršel
Další informace o konferenci Linux