Visualizzazione dei risultati da 1 a 4 su 4

Discussione: mount di una directory

  1. #1

    mount di una directory

    ciao per una questione di permessi sul server ftp, visto che per via del chroot non posso usare un link simbolico avrei bisogno di montare la directory /archivio/ sotto /home/user/

    l'albero delle dir è:

    /
    |-/archivio/
    |-/dev/
    |-/etc/
    |-/home/
    |- ecc...

    l'idea m'è venuta leggendo questo dal sito di proftpd:

    Symlinks

    Symlinks will not work from within a chrooted area. The reason should be clear from a casual inspection of the nature of the chroot command. It is not possible to have a symbolic link to a directory which can"t be reached beacuse it's outside of the current chroot. Work arounds to allow access to other parts of the file system include exporting the part of the filesystem to be accessed from inside the chroot and mounting via NFS, using hard file links or (on Solaris) using lofs to mount the directory via the loopback.

    mount -Flofs /home/data1 /ftp/data1
    mount -Flofs /home/data2 /ftp/data2


    As of the 2.4.x Linux kernel tree it is possible to mount filesystems multiple times and to mount subdirectories of filesystems elsewhere on the filesystem.
    il montaggio con mount -Flofs sarebbe comodissimo, ma va solo su solaris a quanto pare... come posso ottenere la stessa cosa su suse? si parla di montaggio via NFS, come lo posso fare?

    grazie mille!

    Software is like sex, it's better when it's free (Linus Torvald)
    Powered by Suse 10.1


    www.newzaion.com

  2. #2
    trovato!

    mount -v -t nfs indirizzoIP:/archivio/ /home/ftp_user/

    per renderlo automatico all'avvio (in read-only) come devo inserirlo nell'fstab? o essendo via nfs devo inserirlo da qualche altra parte?
    Software is like sex, it's better when it's free (Linus Torvald)
    Powered by Suse 10.1


    www.newzaion.com

  3. #3
    per il mount all'avvio penso che basti specificare l'opzione auto.

  4. #4
    Risolto!

    ho fatto uno script per la bash e l'ho piazzato in /root/.kde/Autostart/ in modo che venga eseguito automaticamente all'avvio del sistema

    codice:
    #!/bin/bash/
    mount -v -t nfs indirizzoIP:/archivio/ /home/ftp_user/
    Software is like sex, it's better when it's free (Linus Torvald)
    Powered by Suse 10.1


    www.newzaion.com

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 © 2024 vBulletin Solutions, Inc. All rights reserved.