Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installare un samba client
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Su-34
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 110
Location: Sky

PostPosted: Sun Apr 30, 2006 7:40 am    Post subject: Reply with quote

.:deadhead:. wrote:
Il posto deputato a contenere riferimenti a script che si vuol far partire all'avvio o allo spegnimento è
Code:
/etc/conf.d/local[start|stop]
Ti sconsiglio però vivamente di reinventare la ruota: gli script di avvio e stop del demone samba si occupano di tutto e tengono in considerazione delle piccole e grandi modifiche fatte dai devel gentoo al pacchetto. Oltretutto se usi gli script di init di gentoo puoi usare rc-status per conoscere l'effettivo stato di un demone e comandarlo facilmente.


grazie :D
seguiro il tuo consiglio e vedrò di usare solo il comando
Quote:

rc-update add samba default



grazie ancora ragazzi!!
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Mon Jun 19, 2006 9:56 pm    Post subject: Reply with quote

Scusatemi...........

ho seguito un po la vostra discussione e così mi son deciso a compilare il modulo CIFS nel kernel........seguendo un po i consigli di !equilibrium ho inserito in /etc/fstab
la segunte linea
Code:
//192.168.0.1           /home/samba     cifs            rw,user,noauto  0 0


e poi ho provato a montare

Code:
mount /home/samba
mount: unknown filesystem type 'cifs'



Non capisco come mai non mi riconosce cifs.......penso di aver compilato tutto quello che riguardava cifs!!!

Guardando dmesg

Code:
 CIFS VFS: No username specified
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: cifs_mount failed w/return code = -19
 CIFS VFS: cifs_mount failed w/return code = -19
 CIFS VFS: cifs_mount failed w/return code = -6
 CIFS VFS: cifs_mount failed w/return code = -19



Cosa potrei fare?????
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Tue Jun 20, 2006 11:14 am    Post subject: Reply with quote

Dimenticavo.......
il pc 192.168.0.1 ha windowsxp senza password..........

allora non vaete nesuna idea.............vi prego anche la più banale mi puo essere utile!!!
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Tue Jun 20, 2006 1:51 pm    Post subject: Reply with quote

ma scusa cosa vuoi montare del tuo computere in rete?Dalla riga che hai specificato tu stai provando a montare tutto il server in /home/samba... almeno una cartella condivisa ce la devi avere!
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Tue Jun 20, 2006 2:39 pm    Post subject: Reply with quote

Sul pc windowsxp condivido le due partizioni che sono etichettate con C: e D:

come posso fare???

Cosqa dovrei inserire in fstab per montare le intere partizioni di windowsxp????
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Tue Jun 20, 2006 2:53 pm    Post subject: Reply with quote

vaporino wrote:
Cosqa dovrei inserire in fstab per montare le intere partizioni di windowsxp????


Code:
//192.168.0.1/XXXXXXXX           /home/samba     cifs            rw,user,noauto  0 0


gli devi specificare esplicitamente la directory remota che vuoi montare, tutto qua.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Tue Jun 20, 2006 5:12 pm    Post subject: Reply with quote

Grazie Equilibrium!!!
FUNZIONA..........ma se volessi montare tutta l'intera partizione che è condivisa???
Cosa potrei fare???
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Tue Jun 20, 2006 6:28 pm    Post subject: Reply with quote

C:\ e' una partizione..... a ogni lettera un mount_point
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Tue Jun 20, 2006 9:02 pm    Post subject: Reply with quote

Quindi cosa dovrei scrivere in /etc/fstab ???
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Tue Jun 20, 2006 9:31 pm    Post subject: Reply with quote

vaporino wrote:
Quindi cosa dovrei scrivere in /etc/fstab ???
Quando esporti una condivisione gli assegni un nome che verrà visualizzato dagli altri client, dovrai dargli in pasto il nome che assegni alla condivisione
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Wed Jun 21, 2006 6:54 am    Post subject: Reply with quote

vaporino wrote:
Quindi cosa dovrei scrivere in /etc/fstab ???


:cry:

adatta ai tuoi bisogni quello che ha scritto !equilibrium ...
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Wed Jun 21, 2006 12:38 pm    Post subject: Reply with quote

vaporino wrote:
FUNZIONA..........ma se volessi montare tutta l'intera partizione che è condivisa???
Cosa potrei fare???


a parte il fatto che l'ho spiegato sopra, comunque mi pare che Win2000 e WinXP, (se aggiornati alle ultime patch) non permettano l'esportazione della root della partizione, quindi C:\ o D:\ o quello che è, ma solo le sottodirectory.

p.s.: non ho la certezza assoluta di quanto detto (non è che traffico molto con i prodotti MS)
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Wed Jun 21, 2006 1:26 pm    Post subject: Reply with quote

no no !equilibrium ti sbagli, wxp sp2, con tutti gli ultimi aggiornamenti permette ancora di montare in remoto le sue partizioni tramite cifs, sia c:\ che tutte le altre; pero' io hodisattivato la gestione delle condivisioni semplice e passo username e password a mount.

P.S. visto che mi e' parso di capire che usi da un po di tempo cifs sei riuscito a usare l'opzione credentials in /etc/fstab ?
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Wed Jun 21, 2006 3:44 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
no no !equilibrium ti sbagli, wxp sp2, con tutti gli ultimi aggiornamenti permette ancora di montare in remoto le sue partizioni tramite cifs, sia c:\ che tutte le altre; pero' io hodisattivato la gestione delle condivisioni semplice e passo username e password a mount.


l'ultima volta che ho usato WinXP o Win2000 con samba non mi permetteva di condividere la root (C:\, D:\, ecc) ma solo le sottodir, ed erano tutte macchine mie e non gli ho fatto nessun 'hardening' particolare... solo gli updates standard di Windows Update :lol: sarà stato un bug temporaneo di win allora :lol:

MeMyselfAndI wrote:
P.S. visto che mi e' parso di capire che usi da un po di tempo cifs sei riuscito a usare l'opzione credentials in /etc/fstab ?


sì certo, se specifico in fstab un file esterno in cui sono presenti la login/pass dello share, mi autentica senza problemi.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Wed Jun 21, 2006 10:42 pm    Post subject: Reply with quote

Scusate ragazzi ma non mi avete spiegato come montare l'intera partizione c:\ di winxp sp2 !!!

dovrei mettere in /etc/fstab
//192.168.0.1/c:/ ecc

ma non funziona così....quindi???
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Thu Jun 22, 2006 12:27 pm    Post subject: Reply with quote

ma hai condiviso su winxp la cartella c:\ ?

@!equilibrium mi puoi postare una riga di conf funzionante con l'opzione credentials? compresi i permessi sul file? a me restiusce errore.
grazie!
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Thu Jun 22, 2006 5:44 pm    Post subject: Reply with quote

Si ho condiviso l'intera partizione c:\!!!

Che dovrei fare???
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Jun 22, 2006 7:45 pm    Post subject: Reply with quote

vaporino wrote:
Si ho condiviso l'intera partizione c:\!!!

Che dovrei fare???


Se non ricordo male quel sistema operativo prevede anche di poter usare un nome differente per gli share: chiamala pippo.
_________________
Ciao da me!
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Thu Jun 22, 2006 9:20 pm    Post subject: Reply with quote

una volta che una partizione e' condivisa e hai dato i permessi giusti non devi fare altro che montarla sul tuo computer locale, nelle stesso modo che ti e' gia' stato ripetuto piu' e piu' volte!
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Fri Jun 23, 2006 4:29 pm    Post subject: Reply with quote

Scusatemi ragazzi.........sarò cretino io ma non ho ancora capito come fare!!
Per quello che ho capito dovrei mettere in /etc/fstab
Code:

//192.168.0.1/c:          /home/samba     cifs            user=Zalurbs,rw,user,noauto  0 0


Ma non funziona...........mi potete gentilmente dire cosa devo scrivere in fstab per montare l'intera partizione del server winxp sp2 che è etichettata con c:.........

Scusatemi ma sarò rincon........ :cry: :cry:
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Fri Jun 23, 2006 5:36 pm    Post subject: Reply with quote

allora!
il nome della condivisione si chiama c: se si ok altrimenti cambialo in fstab;
che permessi hai messo sulla cartella condivisa? (intendo i permessi della condivisione non quelli in locale)
Back to top
View user's profile Send private message
vaporino
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2006
Posts: 126

PostPosted: Sun Jun 25, 2006 5:34 pm    Post subject: Reply with quote

ok.......dovevo metere la seguente linea

Code:
//192.168.0.1/(C:)           /home/samba     cifs            user=Zalurbs,rw,user,noauto  0 0


Era un problema di parentesi.......
Ma ora non capisco il seguente errore

Code:
mount /home/samba
Password:
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


Che significa???
Back to top
View user's profile Send private message
u238
Guru
Guru


Joined: 04 Mar 2005
Posts: 373

PostPosted: Sun Jun 25, 2006 6:01 pm    Post subject: Reply with quote

ripeto il consiglio di randomaze: lascia perdere ":" e lascia solo "c" ...i due punti secondo me fanno casino.

quindi sotto winzozz condividi C:\ con il nome "c", e sotto fstab metti la riga:
//192.168.0.1/c /home/samba cifs user=Zalurbs,rw,user,noauto 0 0

ciao
Back to top
View user's profile Send private message
silvius
Guru
Guru


Joined: 16 May 2006
Posts: 364

PostPosted: Mon Sep 04, 2006 11:41 am    Post subject: nas & cifs Reply with quote

Devo aver accesso ad una condivisione, la rete è così composta:

LATO SERVER:
Nas lacie con un sistema linux embedded con Kernel 2.4.25
Partizionato con ext3
ip 192.168.1.100
nome condivisione: Share
username=pippo, password=pippo ( lettura+scrittura)

Lato client
Pc con gentoo-source 2.6.17
ip 192.168.1.10
wm: kde3.5

.config
Code:

< > NFS file system support                                               │ │
  │ │   < > NFS server support                                                    │ │
  │ │   < > SMB file system support (to mount Windows shares etc.)                │ │
  │ │   <*> CIFS support (advanced network filesystem for Samba, Window and other │ │
  │ │   [ ]   CIFS statistics                                                     │ │
  │ │   [ ]   CIFS extended attributes                                            │ │
  │ │   [ ]   CIFS Experimental Features (EXPERIMENTAL)                           │ │
  │ │   < > NCP file system support (to mount NetWare volumes)                    │ │
  │ │   < > Coda file system support (advanced network fs)                        │ │
  │ │   < > Andrew File System support (AFS) (Experimental)                       │ │
  │ │   < > Plan 9 Resource Sharing Support (9P2000) (Experimental)       


fstab
Code:

/dev/sda1               /boot           ext2            defaults,noatime        1 2
/dev/sda5               /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      iso9660         noauto,user     0 0
/dev/sdb                /mnt/usb        auto            noauto,users,rw,gid=users,umask=00$
/dev/sdc                /mnt/usb2       auto            noauto,users,rw,gid=users,umask=00$

#NAS
//192.168.1.100/Share   /mnt/CasaNas    cifs            username=admin,password=admin,rw,user, noauto 0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


Se monto con queste conf, ho accesso in sola lettura, ma la cosa strana che l' utente admin non esiste sul nas ( esiste solo per la configurazione del nas con il browser )
un mount mi da:
Code:
//192.168.1.100/Share on /mnt/CasaNas type cifs (rw,noexec,nosuid,nodev,username=admin,password=admin,user=pippo)

da notare che in automatico mi passa come opzione del cifs anche un user=pippo che è l' utente che monta

se nell' fstab inserisco:

Code:
#NAS
//192.168.1.100/Share   /mnt/CasaNas    cifs            username=pippo,password=pippo,rw,user, noauto 0 0


ricevo :
Code:

mount /mnt/CasaNas/
mount: wrong fs type, bad option, bad superblock on //192.168.1.100/Share,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

linux # dmesg | tail
 CIFS VFS: cifs_mount failed w/return code = -13
 CIFS VFS: cifs_mount failed w/return code = -13
 CIFS VFS: cifs_mount failed w/return code = -13
 CIFS VFS: Send error in SETFSUnixInfo = -5
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: No username specified
 CIFS VFS: cifs_mount failed w/return code = -22

Ho provato ad usare user= e pass= a posto di username= e password, ma risultato identico.


Potrebbe essere un problema legato al kernel 2.4 del nas ? ( il quale, PENSO, che non aveva ancora il cifs )
Oppure dimentico qualcosa ?

Saluto
Back to top
View user's profile Send private message
silvius
Guru
Guru


Joined: 16 May 2006
Posts: 364

PostPosted: Mon Sep 04, 2006 10:11 pm    Post subject: Reply with quote

Usando questo mount da root funziona, cioè leggo e scrivo:

Code:
mount -t cifs -o username=admin,password=admin,uid=admin,gid=admin,file_mode=0775,dir_mode=0775 //192.168.1.100/Share /mnt/CasaNas/


Da utente riesco a leggere ma non a scrivere.
Avete consigli ?

Saluto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum