Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 13 su 13
  1. #11
    Niente, non va...

    posto la configurazione del file smb.conf
    [global]

    workgroup = HLAN_SERVER

    # netbios name is the name you will see in "Network Neighbourhood",
    # but defaults to your hostname
    netbios name = mandriva

    # server string is the equivalent of the NT Description field
    server string = Samba Server %v

    # Message command is run by samba when a "popup" message is sent to it.
    # The example below is for use with LinPopUp:
    ; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s

    printcap name = cups
    load printers = yes

    # printcap cache time, so samba will automatically load new cups printers
    printcap cache time = 60

    # It should not be necessary to spell out the print system type unless
    # yours is non-standard. Currently supported print systems include:
    # bsd, sysv, plp, lprng, aix, hpux, qnx, cups
    printing = cups

    # 3. Logging Options:
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log

    # Put a capping on the size of the log files (in Kb).
    max log size = 50

    # Set the log (verbosity) level (0 <= log level <= 10)
    log level = 3

    security = user

    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd

    # The following are needed to allow password changing from Windows to
    # also update the Linux system password.
    # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
    # NOTE2: You do NOT need these to allow workstations to change only
    # the encrypted SMB passwords. They allow the Unix password
    # to be kept in sync with the SMB password.
    unix password sync = Yes
    # You either need to setup a passwd program and passwd chat, or
    # enable pam password change
    ; pam password change = yes
    passwd program = /usr/bin/passwd '%u'
    passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*

    # Unix users can map to different SMB User names
    username map = /etc/samba/smbusers

    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192


    local master = yes

    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    os level = 65

    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    domain master = yes

    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    preferred master = yes

    # 6. Domain Control Options:
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations or Primary Domain Controller for WinNT and Win2k
    domain logons = yes

    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    # logon script = %m.bat
    # run a specific logon batch file per username
    logon script = netlogon.bat

    # Where to store roaming profiles for WinNT and Win2k
    # %L substitutes for this servers netbios name, %u is username
    # You must uncomment the [Profiles] share below
    logon path = \\%L\Profiles\%u

    # Where to store roaming profiles for Win9x. Be careful with this as it also
    # impacts where Win2k finds it's /HOME share
    logon home = \\%L\%u\.profile

    # Aggiunge la home dell'utente sulla macchina samba come unita' di rete condivisa H:
    logon drive = Z:

    # The add user script is used by a domain member to add local user accounts
    # that have been authenticated by the domain controller, or when adding
    # users via the Windows NT Tools (ie User Manager for Domains).

    # Scripts for file (passwd, smbpasswd) backend:
    add user script = /usr/sbin/useradd -s /bin/false '%u'
    delete user script = /usr/sbin/userdel '%s'
    add user to group script = /usr/bin/gpasswd -a '%u' '%g'
    delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
    set primary group script = /usr/sbin/usermod -g '%g' '%u'
    add group script = /usr/sbin/groupadd %g && getent group '%g'|awk -F: '{print $3}'
    delete group script = /usr/sbin/groupdel '%g'

    # Scripts for LDAP backend (assumes nss_ldap is in use on the domain controller,
    # and needs configuration in smbldap_conf.pm
    # add user script = /usr/sbin/smbldap-useradd -m '%u'
    # delete user script = /usr/sbin/smbldap-userdel '%u'
    # add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
    # delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
    # set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
    # add group script = /usr/sbin/smbldap-groupadd '%g' && /usr/sbin/smbldap-groupshow %g|awk '/^gidNumber:/ {print $2}'
    # delete group script = /usr/sbin/smbldap-groupdel '%g'


    # The add machine script is use by a samba server configured as a domain
    # controller to add local machine accounts when adding machines to the domain.
    # The script must work from the command line when replacing the macros,
    # or the operation will fail. Check that groups exist if forcing a group.
    # Script for domain controller for adding machines:
    add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M '%u'
    # Script for domain controller with LDAP backend for adding machines (please
    # configure in /etc/samba/smbldap_conf.pm first):
    # add machine script = /usr/sbin/smbldap-useradd -w -d /dev/null -c 'Machine Account' -s /bin/false '%u'

    name resolve order = wins lmhosts host bcast

    dns proxy = no

    # Enabling internationalization:
    # you can match a Windows code page with a UNIX character set.
    # Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European),
    # 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian),
    # 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul),
    # 950 (Trad. Chin.).
    # UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.),
    # ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.)
    # This is an example for french users:
    dos charset = 850
    unix charset = ISO8859-1


    #============================ Share Definitions ==============================
    [homes]
    path = /home/%u
    browseable = no
    valid users = %S
    read only = no
    guest ok = no
    inherit permissions = yes
    [netlogon]
    path = /home/netlogon
    write list = @admin
    read only = yes
    browseable = no
    [Profiles]
    path = /home/profiles
    browseable = no
    writable = yes
    create mask = 0600
    directory mask = 0700
    [public]
    comment = Area Publica
    path = /home/space
    public = yes
    read only = yes
    browseable = yes
    write list = @users
    [Web Spaces]
    path = /var/www
    comment = Condivisione http
    browseable = yes
    writable = yes
    [Samba Directory]
    path = /etc/samba
    comment = Cartella Samba
    browseable = yes
    writable = no

  2. #12
    qui

    http://www.sistemistiindipendenti.or...hp?storyid=122

    http://www.sistemistiindipendenti.org/pdf/sambaldap.pdf

    dice di attivare

    add machine script = /usr/sbin/smbldap-useradd -w -d /dev/null -c 'Machine Account' -s /bin/false '%u'

  3. #13
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691
    hai provato a farlo con le apposite utility dal centro di controllo di mandriva ?
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.