Samba. Директив не виден в Сетевой папке

  • OlZhi 24.11.2021
    /etc/sambo/smb.conf

    [global]
            security = user
            passdb backend = tdbsam
            workgroup = WORKGROUP
            lanman auth = no
            ntlm auth = yes
            client lanman auth = no
    
    [web-data]
            path = /var/www
            browseable = yes
            writable = yes
            write list = student01
            guest ok = no
            valid users = student01
            force user = root
            force group = root
    
    [office]
            path = /home/user/office
            available = yes
            browseable = yes
            writable = yes
            read only = yes
            write list = student01
            guest ok = no
            valid users = student01
            force user = root
            force group = root

    testparm

    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Registered MSG_REQ_POOL_USAGE
    Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[web-data]"
    Processing section "[office]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    
    Press enter to see a dump of your service definitions
    
    # Global parameters
    [global]
            ntlm auth = ntlmv1-permitted
            security = USER
            idmap config * : backend = tdb
    
    [web-data]
            force group = root
            force user = root
            path = /var/www
            read only = No
            valid users = student01
            write list = student01
    
    [office]
            force group = root
            force user = root
            path = /home/user/office
            valid users = student01
            write list = student01

    В сетивике видна папка web-data, но папку office приходиться открывать вручную через ссылку. Как сделать так чтобы была видна в Сети была видна и папка office
  • VadimAndyVadimAndy 24.11.2021
    /etc/samba/smb.conf
  • achirik 26.11.2021
    [office]
    path = /home/user/office
    available = yes
    browseable = yes
    writable = yes
    read only = yes
    write list = student01
    guest ok = no
    valid users = student01
    force user = root
    force group = root

    Зачем тебе эти опции? Если есть browserably & writable. Если одну папку видно, а другую нет, то сделай одинаковые опции и ограничь доступ по пользователям.