Postate qui per tutte le discussioni legate a Linux in generale.
Moderatore: Staff
Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
masalapianta
Iper Master
Messaggi: 2775 Iscritto il: lun 25 lug 2005, 0:00
Nome Cognome: famoso porco
Kernel: uname -r
Desktop: awesome
Distribuzione: Debian
Località: Roma
Contatta:
Messaggio
da masalapianta » gio 21 set 2006, 11:33
legionario ha scritto:
root@1[root]# ls -l /
total 13
...
drwxrwxrwx 8 root root 1024 2006-09-21 10:54 mnt
...
root@1[root]# ls -l /mnt
total 6
...
drwxrwxrwx 2 root root 1024 2006-09-21 10:49 risorsa
...
che e' /mnt/risorsa??? tu hai scritto "ls: /mnt/samba: Permission denied"; per cortesia posta l'output di "ls -al / && ls -al /mnt" facendo semplicemente copia e incolla dalla shell al browser
senza togliere/modificare/aggiungere nulla
legionario
Linux 3.x
Messaggi: 603 Iscritto il: mer 8 dic 2004, 0:00
Località: Bergamo - Roma
Messaggio
da legionario » gio 21 set 2006, 12:15
Mi devi scusare...la fretta e' una brutta bestia..
Questa e' la situazione prima del montaggio:
root@2[/]# ls -al / && ls -al /mnt/
total 15
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 bin -> /linux/bin
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 boot -> /linux/boot
dr-xr-xr-x 7 root root 2048 2006-01-16 04:44 cdrom
drwxr-xr-x 15 root root 13480 2006-09-21 11:58 dev
drwxr-xr-x 99 root root 5120 2006-09-21 11:58 etc
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 home -> /ramdisk/home
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 lib -> /linux/lib
drwxr-xr-x 18 root root 4096 2006-01-13 11:32 linux
drwxr-xr-x 2 root root 1024 2005-12-18 18:38 media
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 mnt
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 opt -> /linux/opt
dr-xr-xr-x 90 root root 0 2006-09-21 07:57 proc
drwxrwxrwt 5 root root 100 2006-09-21 07:58 ramdisk
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 root -> /ramdisk/root
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 sbin -> /linux/sbin
drwxr-xr-x 10 root root 0 2006-09-21 07:57 sys
lrwxrwxrwx 1 root root 8 2003-09-26 14:49 tmp -> /var/tmp
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 usr -> /linux/usr
lrwxrwxrwx 1 root root 12 2006-09-21 07:58 var -> /ramdisk/var
total 7
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 cloop0
lrwxrwxrwx 1 root root 13 2005-12-18 18:38 ipod -> ../media/ipod
drwxrwxrwx 2 utente gruppo 1024 2006-09-21 12:02 samba
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda1
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda2
drwxrwxrwx 2 root root 1024 2004-03-17 13:44 temp
e questa dopo il montaggio:
root@2[/]# ls -al / && ls -al /mnt/
total 15
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 bin -> /linux/bin
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 boot -> /linux/boot
dr-xr-xr-x 7 root root 2048 2006-01-16 04:44 cdrom
drwxr-xr-x 15 root root 13480 2006-09-21 11:58 dev
drwxr-xr-x 99 root root 5120 2006-09-21 12:09 etc
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 home -> /ramdisk/home
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 lib -> /linux/lib
drwxr-xr-x 18 root root 4096 2006-01-13 11:32 linux
drwxr-xr-x 2 root root 1024 2005-12-18 18:38 media
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 mnt
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 opt -> /linux/opt
dr-xr-xr-x 93 root root 0 2006-09-21 07:57 proc
drwxrwxrwt 5 root root 100 2006-09-21 07:58 ramdisk
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 root -> /ramdisk/root
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 sbin -> /linux/sbin
drwxr-xr-x 10 root root 0 2006-09-21 07:57 sys
lrwxrwxrwx 1 root root 8 2003-09-26 14:49 tmp -> /var/tmp
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 usr -> /linux/usr
lrwxrwxrwx 1 root root 12 2006-09-21 07:58 var -> /ramdisk/var
ls: /mnt/samba: Permission denied
total 6
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 cloop0
lrwxrwxrwx 1 root root 13 2005-12-18 18:38 ipod -> ../media/ipod
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda1
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda2
drwxrwxrwx 2 root root 1024 2004-03-17 13:44 temp
Se provo ad accedere come utente anziche' root, la situazione e' invariata...
Saluti
masalapianta
Iper Master
Messaggi: 2775 Iscritto il: lun 25 lug 2005, 0:00
Nome Cognome: famoso porco
Kernel: uname -r
Desktop: awesome
Distribuzione: Debian
Località: Roma
Contatta:
Messaggio
da masalapianta » gio 21 set 2006, 12:32
legionario ha scritto:
root@2[/]# ls -al / && ls -al /mnt/
total 15
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 bin -> /linux/bin
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 boot -> /linux/boot
dr-xr-xr-x 7 root root 2048 2006-01-16 04:44 cdrom
drwxr-xr-x 15 root root 13480 2006-09-21 11:58 dev
drwxr-xr-x 99 root root 5120 2006-09-21 12:09 etc
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 home -> /ramdisk/home
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 lib -> /linux/lib
drwxr-xr-x 18 root root 4096 2006-01-13 11:32 linux
drwxr-xr-x 2 root root 1024 2005-12-18 18:38 media
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 mnt
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 opt -> /linux/opt
dr-xr-xr-x 93 root root 0 2006-09-21 07:57 proc
drwxrwxrwt 5 root root 100 2006-09-21 07:58 ramdisk
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 root -> /ramdisk/root
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 sbin -> /linux/sbin
drwxr-xr-x 10 root root 0 2006-09-21 07:57 sys
lrwxrwxrwx 1 root root 8 2003-09-26 14:49 tmp -> /var/tmp
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 usr -> /linux/usr
lrwxrwxrwx 1 root root 12 2006-09-21 07:58 var -> /ramdisk/var
ls: /mnt/samba: Permission denied
total 6
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 cloop0
lrwxrwxrwx 1 root root 13 2005-12-18 18:38 ipod -> ../media/ipod
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda1
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda2
drwxrwxrwx 2 root root 1024 2004-03-17 13:44 temp
questo e' molto strano, il messaggio "ls: /mnt/samba: Permission denied" appare come output del comando "ls -al /" e non di "ls -al /mnt" (il che non e' verosimile a meno che la directory samba non stia sotto / anziche' sotto /mnt); sicuro di aver fatto copia e incolla dell'output dei comandi che ti avevo dato senza modificare nulla?
legionario
Linux 3.x
Messaggi: 603 Iscritto il: mer 8 dic 2004, 0:00
Località: Bergamo - Roma
Messaggio
da legionario » gio 21 set 2006, 12:43
Non ho modificato nulla...
E' proprio questa la cosa piu' strana...non l'avevo mai vista prima... succede solo con samba...
Qualche teoria a riguardo?
masalapianta
Iper Master
Messaggi: 2775 Iscritto il: lun 25 lug 2005, 0:00
Nome Cognome: famoso porco
Kernel: uname -r
Desktop: awesome
Distribuzione: Debian
Località: Roma
Contatta:
Messaggio
da masalapianta » gio 21 set 2006, 15:08
legionario ha scritto:
Qualche teoria a riguardo?
magia? un lkm che fa hooking della sys_open? bhooo, bisognerebbe analizzare la cosa; comunque continua a non tornarmi il fatto che l'errore ls lo da quando fai ls -al / e non ls -al /mnt; come se la directory samba stesse in / e non in /mnt; la cosa piu' verosimile e' che tu ti sia sbagliato nel dare i comandi o nel postare l'output.
legionario
Linux 3.x
Messaggi: 603 Iscritto il: mer 8 dic 2004, 0:00
Località: Bergamo - Roma
Messaggio
da legionario » gio 21 set 2006, 19:21
Non ho modificato nulla...riposto l'output dei due comandi che mi hai suggerito...
root@2[/]# ls -al / && ls -al /mnt/
total 15
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 bin -> /linux/bin
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 boot -> /linux/boot
dr-xr-xr-x 7 root root 2048 2006-01-16 04:44 cdrom
drwxr-xr-x 15 root root 13480 2006-09-21 11:58 dev
drwxr-xr-x 99 root root 5120 2006-09-21 12:09 etc
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 home -> /ramdisk/home
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 lib -> /linux/lib
drwxr-xr-x 18 root root 4096 2006-01-13 11:32 linux
drwxr-xr-x 2 root root 1024 2005-12-18 18:38 media
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 mnt
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 opt -> /linux/opt
dr-xr-xr-x 93 root root 0 2006-09-21 07:57 proc
drwxrwxrwt 5 root root 100 2006-09-21 07:58 ramdisk
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 root -> /ramdisk/root
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 sbin -> /linux/sbin
drwxr-xr-x 10 root root 0 2006-09-21 07:57 sys
lrwxrwxrwx 1 root root 8 2003-09-26 14:49 tmp -> /var/tmp
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 usr -> /linux/usr
lrwxrwxrwx 1 root root 12 2006-09-21 07:58 var -> /ramdisk/var
ls: /mnt/samba: Permission denied
total 6
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 cloop0
lrwxrwxrwx 1 root root 13 2005-12-18 18:38 ipod -> ../media/ipod
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda1
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda2
drwxrwxrwx 2 root root 1024 2004-03-17 13:44 temp
Se invece li do separatamente ho questa situazione:
root@2[/]# ls -al /
total 15
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 bin -> /linux/bin
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 boot -> /linux/boot
dr-xr-xr-x 7 root root 2048 2006-01-16 04:44 cdrom
drwxr-xr-x 15 root root 13480 2006-09-21 11:58 dev
drwxr-xr-x 99 root root 5120 2006-09-21 12:09 etc
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 home -> /ramdisk/home
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 lib -> /linux/lib
drwxr-xr-x 18 root root 4096 2006-01-13 11:32 linux
drwxr-xr-x 2 root root 1024 2005-12-18 18:38 media
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 mnt
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 opt -> /linux/opt
dr-xr-xr-x 94 root root 0 2006-09-21 07:57 proc
drwxrwxrwt 5 root root 100 2006-09-21 07:58 ramdisk
lrwxrwxrwx 1 root root 13 2006-09-21 07:58 root -> /ramdisk/root
lrwxrwxrwx 1 root root 11 2003-09-26 14:49 sbin -> /linux/sbin
drwxr-xr-x 10 root root 0 2006-09-21 07:57 sys
lrwxrwxrwx 1 root root 8 2003-09-26 14:49 tmp -> /var/tmp
lrwxrwxrwx 1 root root 10 2003-09-26 14:49 usr -> /linux/usr
lrwxrwxrwx 1 root root 12 2006-09-21 07:58 var -> /ramdisk/var
root@2[/]# ls -al /mnt/
ls: /mnt/samba: Permission denied
total 6
drwxrwxrwx 7 root root 1024 2006-09-21 12:02 .
drwxr-xr-x 11 root root 1024 2006-09-21 07:58 ..
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 cloop0
lrwxrwxrwx 1 root root 13 2005-12-18 18:38 ipod -> ../media/ipod
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda1
drwxrwxrwx 2 root root 1024 2006-09-21 11:58 sda2
drwxrwxrwx 2 root root 1024 2004-03-17 13:44 temp
Come puoi vedere in quest'ultimo caso il contenuto della directory viene presentato in maniera corretta...
Saluti..