em Posted October 29, 2013 Report Posted October 29, 2013 În urma rul?rii comenzii ls -l primesc urm?torul outputtotal 36drw-r--r-T 2 root admins 4096 2009-12-12 10:10 dir1-rwxr--r-x 2 rst hackers 9845 2010-12-03 04:03 fis1-rwxr--r-- 1 hy hackers 5000 2011-13-03 04:06 fis2-rwxr--r-x 2 ccsir hackers 9845 2012-14-03 04:03 linklrwxrwxrwx 1 rst hackers 4 2006-15-09 04:13 linked -> fis1Cum a?i face s? primi?i acela?i output. Vreau *toate* comenzile.Premiu, domeniu. Fara posturi editate. Quote
sadik Posted October 29, 2013 Report Posted October 29, 2013 (edited) mkdir dir1chown root:admins dir1chmod 1644 dir 1touch -d "2009-12-12 10:10"ln dir1 .dir1-linkdd if=/dev/urandom of=./fis1 bs=9845 count=1chown rst:hackers fis1chmod 745 fis1touch -d "2010-12-03 04:03" fis1ln fis1 .fis1-linkdd if=/dev/urandom of=./fis2 bs=5000 count=1chown hy:hackers fis2chmod 744 fis2touch -d "2011-13-03 04:06" fis2cp fis1 linkchown ccsir:hackers linktouch -d "2013-14-03 04:03" linkln link .link-of-da-madafakin-linkln -s fis1 linkedchmod 777 linkedtouch -d "2006-15-09 04:13" linkedtouch .random_file1touch .random_file2touch .random_file3...touch .random_file27 Edited October 30, 2013 by sadik Quote
em Posted October 29, 2013 Author Report Posted October 29, 2013 Pe aproape. Fisierele link si dir au cifra "2" dup? drepturi. Oare ce inseamn?? De ce te-ai gândit s? creezi 29 de fi?iere? Presupun c? nu ai avut terminal ca s? testezi Quote
sadik Posted October 29, 2013 Report Posted October 29, 2013 Nu am terminal. Lucrez de pe un laptop cu Windows 7 care trebuie reinstalat. 29 de file (*27 dupa edit) pentru ca tie iti da un total de 36. Care inseamna 7 vizible, 2 link-uri ascunse, fisierul ".",fisierul ".." si inca 27 de file ascunse. Am editat postul initial ^^^ Quote
em Posted October 30, 2013 Author Report Posted October 30, 2013 Nope Fisierele link si dir au cifra "2" dup? drepturi. Oare ce inseamn?? Quote
sadik Posted October 30, 2013 Report Posted October 30, 2013 Ok. Am facut hard links in loc de simbolice. Si acum ar trebuie sa iti dea outputul la fel. Quote
sadik Posted October 30, 2013 Report Posted October 30, 2013 ~$ echo "total 36drw-r--r-T 2 root admins 4096 2009-12-12 10:10 dir1-rwxr--r-x 2 rst hackers 9845 2010-12-03 04:03 fis1-rwxr--r-- 1 hy hackers 5000 2011-13-03 04:06 fis2-rwxr--r-x 2 ccsir hackers 9845 2012-14-03 04:03 linklrwxrwxrwx 1 rst hackers 4 2006-15-09 04:13 linked -> fis1"total 36drw-r--r-T 2 root admins 4096 2009-12-12 10:10 dir1-rwxr--r-x 2 rst hackers 9845 2010-12-03 04:03 fis1-rwxr--r-- 1 hy hackers 5000 2011-13-03 04:06 fis2-rwxr--r-x 2 ccsir hackers 9845 2012-14-03 04:03 linklrwxrwxrwx 1 rst hackers 4 2006-15-09 04:13 linked -> fis1Fii atent la combinatia asta: În urma rularii comenzii ls -l primesc urmatorul output Quote
bcman Posted October 30, 2013 Report Posted October 30, 2013 (edited) Simplu. Comanda vdirbcman-test@stargate:~/proiecte$ vdirtotal 28-rw------- 1 bcman-test bcman-test 59 Oct 17 20:17 asdf.cpp.save-rwxrwxr-x 1 bcman-test bcman-test 264 Oct 20 19:28 proxy.py-rw-rw-r-- 1 bcman-test bcman-test 35 Oct 16 18:37 Python-1.py-rwxrwxr-x 1 bcman-test bcman-test 7611 Oct 16 19:28 test-rw-rw-r-- 1 bcman-test bcman-test 84 Oct 16 19:26 test.cpp-rw-rw-r-- 1 bcman-test bcman-test 1728 Oct 16 19:28 test.oSi exemplu cu symlink:total 28-rw------- 1 bcman-test bcman-test 59 Oct 17 20:17 asdf.cpp.savelrwxrwxrwx 1 root root 4 Oct 30 19:12 b -> test-rwxrwxr-x 1 bcman-test bcman-test 264 Oct 20 19:28 proxy.py-rw-rw-r-- 1 bcman-test bcman-test 35 Oct 16 18:37 Python-1.py-rwxrwxr-x 1 bcman-test bcman-test 7611 Oct 16 19:28 test-rw-rw-r-- 1 bcman-test bcman-test 84 Oct 16 19:26 test.cpp-rw-rw-r-- 1 bcman-test bcman-test 1728 Oct 16 19:28 test.o Edited October 30, 2013 by bcman Quote
em Posted October 30, 2013 Author Report Posted October 30, 2013 @sadik, winner. PM pentru domeniu. Quote
shark0der Posted November 4, 2013 Report Posted November 4, 2013 Bre si eu care credeam ca dormiti la ora asta si am timp sa fac totul lejer Printre altele, trucul lui Gecko ar fi mers cu un alias. Quote