This issue is also related with another problem, but I wish to generalize it.
In summary:
- I create a shared folder named homefolders
- I assign this as "root" for home folder users
- I create user1 and OMV creates his folder below homefolders
- I login in CLI as user1 and i launch some commands. The last command creates an hidden folder in the user1 home folder.
- In this folder there is another command, but when I launch it I get "Permission Denied"
- So, from CLI I create a second user, user2, with adduser; its home folder is /home/user2
- I login as user2 and I launch the same commands without problem.
Why user1 has not permissions in its home folder created from OMV and user2 yes?
For more information, the commands are related to the installation of Dropbox and are these:
Code
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
The code of dropboxd is:
Bash
#!/bin/sh
PAR=$(dirname "$(readlink -f "$0")")
exec "$PAR/dropbox-lnx.x86_64-2.10.41/dropboxd" "$@"
My doubt is that from the CLI the home folder user1 is accessible with /media/exadecimal-string/homefolders/user1.
Perhaps the exadecimal-string creates problems in the composition of commands.
Thanks for help