[ubuntu-it] Samba e autenticazione XP - W98
max
max a maximumdebian.org
Mer 7 Set 2005 11:59:06 UTC
ciao
premetto che di Samba non ne so una cippa, ma a quanto ho capito vuoi
creare un unix degli utenti per autenticarli via smbpasswd, giusto?
se è cosí
prova a:
aggiundi in smb.conf nella zona home la linea "path"
[homes]
create mask = 0700
directory mask = 0700
browseable = no
comment = Home Directories
writeable = yes
path = /home/%U <--- ti manca questa linea
poi crea un utente con useradd o la tool che vuoi e poi con smbpasswd gli assegni una passwd.
Riavvia samba
ora dovresti essere in grado di entrare nella home previa autenticazione.
ciao
MaX
frank wrote:
>Il mio problemino e' il seguente:
>a) Pc con installato winXP Professional e win98 autenticati da un
>dominio NT4
>b) PC con ubuntu hoary aggiornato + samba
>
>Vorrei creare una serie di directory su B a cui si possa accedere da A
>solo dopo l'immissione di nome utente + password.
>Ho provato a seguire la "guida non ufficiale" ma non funziona. Nel
>momento in cui tento il collegamento chiede la username e password ma
>rifiuta il collegamento.
>L'utente in ubuntu esiste, esiste anche in samba ma non permette il
>collegamento.
>Il PC B non e' in dominio (non penso sia necessario; l'autenticazione la
>deve effettuare il PC B stesso!)
>
>In allegato metto il file /etc/samba/smb.conf e /etc/samba/smbusers. Se
>qualche anima buona mi spiega dov'e' l'erorre sarei felice.
>
>Grazie.
>
>PS: rtfm sempre accetti a patto che ci sia un link da seguire.
>
>
>------------------------------------------------------------------------
>
>#
># Sample configuration file for the Samba suite for Debian GNU/Linux.
>#
>#
># This is the main Samba configuration file. You should read the
># smb.conf(5) manual page in order to understand the options listed
># here. Samba has a huge number of configurable options most of which
># are not shown in this example
>#
># Any line which starts with a ; (semi-colon) or a # (hash)
># is a comment and is ignored. In this example we will use a #
># for commentary and a ; for parts of the config file that you
># may wish to enable
>#
># NOTE: Whenever you modify this file you should run the command
># "testparm" to check that you have not many any basic syntactic
># errors.
>#
>
>#======================= Global Settings =======================
>
>[global]
> log file = /var/log/samba/log.%m
> passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n
> socket options = TCP_NODELAY
> obey pam restrictions = yes
> encrypt passwords = yes
> passwd program = /usr/bin/passwd %u
> passdb backend = tdbsam guest
> dns proxy = no
> server string = %h server (Samba, Ubuntu)
> invalid users = root
> workgroup = Bolzo
> os level = 20
> security = user
> username map = /etc/samba/smbusers
> syslog = 0
> panic action = /usr/share/samba/panic-action %d
> max log size = 1000
>
>[homes]
> create mask = 0700
> directory mask = 0700
> browseable = no
> comment = Home Directories
> writeable = yes
>
>[printers]
> comment = All Printers
> browseable = no
> path = /tmp
> printable = yes
> public = no
> writable = no
> create mode = 0700
>
># Windows clients look for this share name as a source of downloadable
># printer drivers
>[print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
> browseable = yes
> read only = yes
> guest ok = no
># Uncomment to allow remote administration of Windows print drivers.
># Replace 'ntadmin' with the name of the group your admin users are
># members of.
>; write list = root, @ntadmin
>
># A sample share for sharing your CD-ROM with others.
>;[cdrom]
>; comment = Samba server's CD-ROM
>; writable = no
>; locking = no
>; path = /cdrom
>; public = yes
>
># The next two parameters show how to auto-mount a CD-ROM when the
># cdrom share is accesed. For this to work /etc/fstab must contain
># an entry like this:
>#
># /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
>#
># The CD-ROM gets unmounted automatically after the connection to the
>#
># If you don't want to use auto-mounting/unmounting make sure the CD
># is mounted on /cdrom
>#
>; preexec = /bin/mount /cdrom
>; postexec = /bin/umount /cdrom
>
>
>[share]
> writeable = yes
> path = /sambashare
>
>[scuola]
> comment = Public Folder
> path = /scuola
> public = no
> writable = yes
> create mask = 0777
> directory mask = 0777
> force user = nobody
> force group = nogroup
>
>
>------------------------------------------------------------------------
>
>system_username = frank
>system_username = quinta
>
>
>
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
Maggiori informazioni sulla lista
ubuntu-it