![]() ![]() #mount -t vboxsf -o rw,dmask=022,fmask=022,uid=$(id -u $1),gid=$(getent group $1 | cut -d: -f3) $1 $1Įcho $1 /home/$1 vboxsf rw,dmask=022,fmask=022,uid=`id -u $1`,gid=`getent group $1 | cut -d: -f3` 0 0 > /etc/fstabĬode: Select all Expand view Collapse view /home/brandon.moore# touch /home/brandon.moore# ls -al x If thenĪdduser -disabled-login -disabled-password -gecos "" $1 I want to be able to have each user's folder mounted in the windows host (from their own home directory.) Is this even possible? I am using ssh which is picky with file and folder permissions.Ĭode: Select all Expand view Collapse view #!/bin/bash The script works fine, and I am able to create the shares with the specified umask, but no matter what umask I use (the umask changes when I change the script) I cannot change permissions in the share. The following is code from an addUser script that is run like addUser username. ![]() It seems that no matter how I mount it, I cannot change permissions of any folders or files in the new share (they keep the mask of the way the share is mounted). I have created a shared folder that I mount in the debian host. I have a debian client on a windows host. Believe it or not, I have searched hard for this seemlingly simple question. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |