Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > Esame di laboratorio (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (39): « 1 2 3 4 [5] 6 7 8 9 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
=kimi=
.primate.

User info:
Registered: Jan 2006
Posts: 69 (0.01 al dì)
Location: milano
Corso: Informatica
Anno: 1
Time Online: 3:26:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao ragazzi,
scusate qualcuno mi puo spiegare il comando xargs per favore??? non lo capisco molto... neanche il suo utilizzo

14-07-2007 15:23
Click Here to See the Profile for =kimi= Click here to Send =kimi= a Private Message Find more posts by =kimi= Add =kimi= to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
NoWhereMan
.illuminato.

User info:
Registered: Jul 2003
Posts: 222 (0.03 al dì)
Location: Segrate (MI)
Corso: Dottorato in Informatica
Anno:
Time Online: 1 Day, 21:56:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://www.dsy.it/forum/showthread....mber=4#p439883c

14-07-2007 15:38
Click Here to See the Profile for NoWhereMan Click here to Send NoWhereMan a Private Message Visit NoWhereMan's homepage! Find more posts by NoWhereMan Add NoWhereMan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bennyk
.amico.

User info:
Registered: Oct 2003
Posts: 38 (0.00 al dì)
Location: Milano
Corso: Informatica
Anno: ...
Time Online: 1 Day, 1:36:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Lightbulb

Originally posted by n3o
pensate che in linux quel diavolo di programma per trovare i file eseguibili maggiori di 5k si risolve solo così:

find / -type f -size +5 -perm /111 o
find / -type f -size +5 -perm +111 (per versioni vecchie di find)

FINE!!! Ma il find del minix è uno scandalo :evil:

[...]


Io ho provato così (in MINIX):

find / -type f -size +10 -perm -111 | xargs ls -l | sort +6 -nr | head -5

e, seguendo il tuo criterio: "per me un file è eseguibile se lo è per tutti gli utenti" sembra funzionare.

Perchè: "I bit di permesso vengono controllati con il test -perm modalità. Se modalità non ha segno, i bit di permesso dei file devono combaciare perfettamente. Un - che precede i bit significa che tutti i bit di permesso devono essere impostati, ma non fa assunzioni sugli altri; un + è soddisfatto se uno qualsiasi dei bit è impostato."

Last edited by Bennyk on 14-07-2007 at 16:20

14-07-2007 15:52
Click Here to See the Profile for Bennyk Click here to Send Bennyk a Private Message Find more posts by Bennyk Add Bennyk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
NoWhereMan
.illuminato.

User info:
Registered: Jul 2003
Posts: 222 (0.03 al dì)
Location: Segrate (MI)
Corso: Dottorato in Informatica
Anno:
Time Online: 1 Day, 21:56:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

funziona anche

find / -type f -size +10 -perm -1

+1 o /1 non funzionano. -1 significa comunque x a tutti

15-07-2007 06:55
Click Here to See the Profile for NoWhereMan Click here to Send NoWhereMan a Private Message Visit NoWhereMan's homepage! Find more posts by NoWhereMan Add NoWhereMan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
RedAngel86
.illuminato.

User info:
Registered: Jan 2006
Posts: 167 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Dottore
Time Online: 3 Days, 12:12:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non riesco a capire bene come funziona sto -perm, qualkuno potrebbe gentilmente spiegarmelo?

15-07-2007 11:07
Click Here to See the Profile for RedAngel86 Click here to Send RedAngel86 a Private Message Visit RedAngel86's homepage! Find more posts by RedAngel86 Add RedAngel86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

code:
| owner (u) | group (g) | others (o)| +-----------+-----------+-----------+ | r w x | r w x | r w x | | 4 2 1 | 4 2 1 | 4 2 1 |
find / -perm 666
find / -perm a+rw (equivalente, a = all)
trova tutti i file che sono leggibili e modificabili da ogni utente

find / -perm 755
find / -perm u+rwx,g+rx,o+rx (equivalente)
trova tutti i file che sono leggibili, modificabili ed eseguibili da parte del proprietario, e che sono leggibili ed eseguibili dal gruppo e dagli altri

find / -perm -XXX
aggiungendo un meno prima dell'espressione ottale modifico il comportamento del find, indicando che voglio cercare tutti quei file il cui bit interessato è attivato, es:

find / -perm -111
trova tutti i file che hanno il flag "eseguibile" settato per ogni utente

find / -perm -661
trova tutti i file che hanno i flag "leggibile" e "modificabile" settati per il proprietario e il gruppo, e il flag "eseguibile" per gli altri
(gli altri permessi non specificati possono essere settati o no)

__________________
The answer is blowing in the wind...

Last edited by n3o on 16-07-2007 at 12:42

15-07-2007 12:39
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
liver82
.fedelissimo.

User info:
Registered: Sep 2002
Posts: 56 (0.01 al dì)
Location: Milano
Corso:
Anno:
Time Online: 16:03:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao ragazzi forse questo può essere d'aiuto, ho provato a cercare un modo per trovare tutti i file nascosti nel sistema:

find / -type f -name ".*"

la particolarità è l'uso delle virgolette...che non conoscevo. So che per la maggior parte di voi è una cosa banale ma magari qualcuno non lo sapeva. :-)

15-07-2007 12:59
Click Here to See the Profile for liver82 Click here to Send liver82 a Private Message Find more posts by liver82 Add liver82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
collo
.precettore.

User info:
Registered: Oct 2006
Posts: 82 (0.01 al dì)
Location: domodossola
Corso: informatica
Anno: 3fc
Time Online: 1 Day, 0:38:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy

ciao n30 ho provato a creare lo script dell'esercizio che indicava di trovare lo spazio occupato da 1 utente(dai suoi files) ma mi continua a dare errore....sicuri che la sintassi sia corretta????:?:?
l'errore che m da è:
user ....(vuoto cioè nn m stampa niente) takes 0 kb into the system.
WHY??
HELP ME!!
grazie mille

15-07-2007 15:47
Click Here to See the Profile for collo Click here to Send collo a Private Message Find more posts by collo Add collo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se lo copi ESATTAMENTE SPAZI INCLUSI funziona, controlla bene, sarai la ventesima persona che me lo chiede, poi scopro che quasi tutti hanno messo degli spazi in più dove non dovevano esserci! :D

__________________
The answer is blowing in the wind...

15-07-2007 16:57
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
RedAngel86
.illuminato.

User info:
Registered: Jan 2006
Posts: 167 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Dottore
Time Online: 3 Days, 12:12:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie mille n3o

15-07-2007 19:22
Click Here to See the Profile for RedAngel86 Click here to Send RedAngel86 a Private Message Visit RedAngel86's homepage! Find more posts by RedAngel86 Add RedAngel86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
=kimi=
.primate.

User info:
Registered: Jan 2006
Posts: 69 (0.01 al dì)
Location: milano
Corso: Informatica
Anno: 1
Time Online: 3:26:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il proprietario di un processo in esecuzione `e normalmente
diverso dal proprietario del file contente un programma (e
diverso ad ogni esecuzione)
effective UID bit: il processo assume come proprietario il
proprietario del file del programma
SUID root
chmod 4555 file
chmod u+s file

ragazzi qst parte lo trovata sulle slide di monga... qualcuno potrebbe kiarirmi le idee??? soprattutto sul suid root

15-07-2007 20:53
Click Here to See the Profile for =kimi= Click here to Send =kimi= a Private Message Find more posts by =kimi= Add =kimi= to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Un file con SUID bit attivato viene eseguito con i privilegi dell'utente che possiede il file. (non importa chi lo lancia)
Esempio passwd ha come proprietario root ma visto che un qualsiasi utente ha diritto a modificarsi la propria password, il primo ha il SUID attivato in modo da poter essere eseguito da un utente normale con privilegi di root.

__________________
The answer is blowing in the wind...

16-07-2007 11:38
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
=kimi=
.primate.

User info:
Registered: Jan 2006
Posts: 69 (0.01 al dì)
Location: milano
Corso: Informatica
Anno: 1
Time Online: 3:26:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah ok... grazie... quindi nell'esercizio che mi chiede di cercare tutti i file SUID root, cm mi devo muovere???

16-07-2007 12:29
Click Here to See the Profile for =kimi= Click here to Send =kimi= a Private Message Find more posts by =kimi= Add =kimi= to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
imperator
.consigliere.

User info:
Registered: Apr 2004
Posts: 146 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:58:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao a tutti... ho un problema con l'aggiunta di un utente...
in particolare con il comando passwd:
quando lancio il comando e mi chiede di inserire la password la tastiera è come se fosse bloccata, non scrive, l'unico tasto che funziona è l'invio...
qualcuno sa darmi qualche dritta? grazie

16-07-2007 12:34
Click Here to See the Profile for imperator Click here to Send imperator a Private Message Find more posts by imperator Add imperator to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simaldeff
.fedelissimo.

User info:
Registered: Jun 2004
Posts: 41 (0.01 al dì)
Location: Monza
Corso: Informatica
Anno: terzo
Time Online: 7:20:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

confermo una cosa :
prima di tutto ho fatto il test in una cartella in cui ho creato 3 file di cui uno in chmod 755

chmod 755 try.sh
gli altri in 644 (default se si creano con elvis)

con un
find /mnt/[lamiacartella] -type f -perm -1

mi ha trovato il file eseguibile. Poi con la seguente situazione :
chmod 777 try.sh
chmod 676 try2.sh

e usando lo stesso find mi ha trovato sollo quello in 777
conclusione -perm -1 guarda solo il primo numero.

confermo che i +1 +111 /1 /111 sono inutile ... non danno erore ma non danno nessun risultato di ricerca

la domanda e' dunque : Basta che sia eseguibile dall' user o deve essere eseguibile da tutti?

se basta il user allora basta la linea di comando ... seno bisogna fare un script shell che faccia tutti i casi di permesso ... *sigh*

__________________
There is no way to happyness, happyness is the way. -Buddha-

16-07-2007 12:34
Click Here to See the Profile for Simaldeff Click here to Send Simaldeff a Private Message Visit Simaldeff's homepage! Find more posts by Simaldeff Add Simaldeff to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 04:51.    Post New Thread    Post A Reply
Pages (39): « 1 2 3 4 [5] 6 7 8 9 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.120 seconds (51.78% PHP - 48.22% MySQL) con 24 query.