Új hozzászólás Aktív témák

  • LetoAtreides

    csendes tag

    válasz sonar #33016 üzenetére

    Itt nézz körül: http://wiki.openwrt.org/doc/uci/samba
    Nálam a samba beállítások:

    /etc/config/samba:
    config samba
    option name 'Router'
    option description 'Megosztott Winchester'
    option workgroup 'MUNKACSOPORT'
    option homes '0'

    config sambashare
    option read_only 'no'
    option guest_ok 'yes'
    option create_mask '0770'
    option dir_mask '0770'
    option name '_SHARED'
    option path '/mnt/_SHARED'

    Ha a sambashare-ben elvileg a option guest_ok értékét no-ra állítom, akkor nem enged be vendég felhasználóként. Továbbá, ha option users-el megadsz felhasználókat, akkor azzal lehet beléni.
    Pl.: option users 'jancsi,juliska'
    Az smbpasswd paranccsal tudsz megadni jelszót jancsinak és juliskának! Elvileg lehet olyat, hogy akik a /etc/passwd-ban vannak benne, azokra adsz meg beléptetést, de ebben nem vagyok biztos! Én magamnak úgy csináltam, hogy smbpasswd -a jancsi. Ez létrehozta a jancsi user-t és be is állított neki jelszót! Ezután, ha az option users-ben megadtam a jancsit, akkor kérte a jelszót és a jancsi/beállított jelszóval be is engedett. Egy /etc/init.d/samba restart parancs kiadása sem árthat.

    A /etc/samba/smb.conf.template fájlom:
    [global]
    netbios name = |NAME|
    display charset = |CHARSET|
    interfaces = |INTERFACES|
    server string = |DESCRIPTION|
    unix charset = |CHARSET|
    workgroup = |WORKGROUP|
    browseable = yes
    deadtime = 30
    domain master = yes
    encrypt passwords = true
    enable core files = no
    guest account = samba
    guest ok = yes
    invalid users = root
    local master = yes
    load printers = no
    map to guest = Bad User
    max protocol = SMB2
    min receivefile size = 16384
    null passwords = yes
    obey pam restrictions = yes
    os level = 20
    passdb backend = smbpasswd
    preferred master = yes
    printable = no
    security = share
    smb encrypt = disabled
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY IPTOS_LOWDELAY
    syslog = 2
    use sendfile = yes
    writeable = yes

    A /etc/samba/smb.conf fájlom:
    [global]
    netbios name = Router
    display charset = UTF-8
    interfaces = 127.0.0.1/8 lo 192.168.1.1/24 br-lan
    server string = Megosztott Winchester
    unix charset = UTF-8
    workgroup = MUNKACSOPORT
    browseable = yes
    deadtime = 30
    domain master = yes
    encrypt passwords = true
    enable core files = no
    guest account = samba
    guest ok = yes
    invalid users = root
    local master = yes
    load printers = no
    map to guest = Bad User
    max protocol = SMB2
    min receivefile size = 16384
    null passwords = yes
    obey pam restrictions = yes
    os level = 20
    passdb backend = smbpasswd
    preferred master = yes
    printable = no
    security = share
    smb encrypt = disabled
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY IPTOS_LOWDELAY
    syslog = 2
    use sendfile = yes
    writeable = yes

    [_SHARED]
    path = /mnt/_SHARED
    read only = no
    guest ok = yes
    create mask = 0770
    directory mask = 0770

    [ Szerkesztve ]

    I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me.

Új hozzászólás Aktív témák