Giter Site home page Giter Site logo

Comments (5)

souzagaabriel avatar souzagaabriel commented on August 15, 2024

Tentar o pam_mount com DAVFS por exemplo colocar no /etc/security/pam_mount.conf.xml isso:
<volume user="*" uid="1000-1000000" server="https://nextcloud.sj.ifsc.edu.br/remote.php/webdav"
path="files/%(USER)" mountpoint="/media/pessoal/%(USER)/%(USER)" fstype="davfs" options="iocharset=utf8" />

from servicos_kubernetes.

souzagaabriel avatar souzagaabriel commented on August 15, 2024

@ricardoifsc fez vários testes e não encontrou uma foma de usar o PAM_MOUNT com webdav... não funcionou.
A minha sugestão é criarmos um script com um nome intuitivo "montar_nextcloud" e colocarmos no skel:

#!/bin/bash
mount -t davfs nextcloud.sj.ifsc.edu.br/remote.php/webdav /home/%(USER)/nextcloud

from servicos_kubernetes.

souzagaabriel avatar souzagaabriel commented on August 15, 2024

Criei um script e coloquei no /etc/skel.

#!/bin/bash
mkdir nextcloud 2> /dev/null
sudo mount -t davfs https://nextcloud.sj.ifsc.edu.br/remote.php/webdav nextcloud

Tive que botar no modo privilegiado o container para funcionar o mount, dava erro no acesso ao fuse, segue:
a6932f6
78b5529
1da62d8

Ficou funcionando, só tem que confirmar sobre o modo privilegiado, o que implica.

from servicos_kubernetes.

souzagaabriel avatar souzagaabriel commented on August 15, 2024

Tem que verificar um problema de permissão... O mount é feito via sudo, então monta como root e o usuário fica sem permissão. Tem que adicionar opção no mount que dê permissão ao usuário de escrita. Ou alguma forma do usuário ser permanecer dono da pasta.

from servicos_kubernetes.

souzagaabriel avatar souzagaabriel commented on August 15, 2024

Feito, o script ficou assim:

#!/bin/bash
mkdir nextcloud 2> /dev/null
sudo mount -t davfs -o uid=$USER,gid=513 https://nextcloud.sj.ifsc.edu.br/remote.php/webdav nextcloud

from servicos_kubernetes.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.