Quando si collegano grazie al parametro chroot si ritorvano in /media/Dati/utente* in modo da gestire privatamente i files.
All' interno di questa directory ognuno ha una cartella public che serve a condividere i files tra i due utenti. Il problema è che non riesco a far condividere la cartella public.
In passato utilizzavo questa soluzione ma purtroppo ora non funziona più
http://forum.debianizzati.org/viewtopic.php?f=19&t=43165
Ovvero
- Codice: Seleziona tutto
mount --bind /media/Dati/utente1/public /media/Dati/utente2/public
mount --bind /media/Dati/utente2/public /media/Dati/utente1/public
funziona regolarmente fino al riavvio. Se una volta impartito il comando vado in /etc/mtab trovo le seguenti voci
- Codice: Seleziona tutto
/dev/md2 /media/Dati/utente1/public ext4 rw,relatime,data=ordered 0 0
/dev/md2 /media/Dati/utente2/public ext4 rw,relatime,data=ordered 0 0
se le inserisco in fstab al riavvio (oppure dopo umount/mount) l' utente 1 e l' utente 2 se provano ad accedere alla cartella public si ritrovano in /media/Dati/ e da qui possono accedere a tutto/tutti!!!
Il problema credo che sia il fatto che anzichè effettuare upload/download in /home viene fatto in /media/Dati, ecco come sono strutturati i dischi
- Codice: Seleziona tutto
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md0 during installation
UUID=99189038-dc65-4d5e-9680-18fc36f551a7 / ext4 errors=remount-ro 0 1
# /media/Dati was on /dev/md2 during installation
UUID=c106e2ee-2374-496e-a611-2d406f759b0f /media/Dati ext4 defaults 0 2
# swap was on /dev/md1 during installation
UUID=db8fe711-9a83-494b-bc37-8a203a00dd87 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
- Codice: Seleziona tutto
fdisk -l
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000b1cc2
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 292968447 292966400 139,7G fd Linux raid autodetect
/dev/sda2 292968448 296873983 3905536 1,9G fd Linux raid autodetect
/dev/sda3 296873984 1953523711 1656649728 790G fd Linux raid autodetect
Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x1cf4c15f
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 292968447 292966400 139,7G fd Linux raid autodetect
/dev/sdb2 292968448 296873983 3905536 1,9G fd Linux raid autodetect
/dev/sdb3 296873984 1953523711 1656649728 790G fd Linux raid autodetect
Disk /dev/md0: 139,6 GiB, 149864579072 bytes, 292704256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md1: 1,9 GiB, 1998585856 bytes, 3903488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md2: 789,8 GiB, 848070443008 bytes, 1656387584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Ovviamente il tutto su debian stretch
Qualcuno ha qualche consiglio?