• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to secure nfs share ?

    Scheduled Pinned Locked Moved
    General
    1
    1
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • É
      Éric Quinton
      last edited by

      Hello,

      Actually, the folder /images/dev must be with 777 mode, for upload images. At the end of the upload, the folder <mac address> is move to /images, an it’s rename. But the images files keep their rights : everybody can write another image at their places.

      For the moment, I’ve cron this script to change the access rights :
      #!/bin/bash
      RACINE=/opt/fog
      for DOSSIER in find $RACINE -perm 777 -type d|grep -v dev
      do
      chmod -R o-w $DOSSIER
      chown -R fog $DOSSIER
      done

      My NFS server is installed into a second computer.

      Do you have a suggestion to improve that ?

      Thanks,

      Eric.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      205

      Online

      12.1k

      Users

      17.3k

      Topics

      155.3k

      Posts
      Copyright © 2012-2024 FOG Project