LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   setup user access to fuseblk mounted tree by root? (https://www.linuxquestions.org/questions/slackware-14/setup-user-access-to-fuseblk-mounted-tree-by-root-4175421641/)

offplanet 08-11-2012 08:45 PM

setup user access to fuseblk mounted tree by root?
 
/dev/sda2 on /vista type fuseblk (rw,allow_other,blksize=4096,default_permissions)

The vista tree (owned by root) is windows and it also cantains a slackware64 mirror.

I would like to allow a user access and update the mirror.

None of the other trees have room for the mirror.

a 2nd machine is not available so rebuild/repartion are too risky.

What are the options for setting up user access to the mirror?

wildwizard 08-11-2012 10:14 PM

When mounting DOS/Windows filesystems you have a number of options that effect who can access the files and who owns them

uid - sets the user that owns the files/directories
gid - sets the group that owns the files/directories
fmask - sets the access bits on files
dmask - sets the access bits on directories

For the fmask and dmask they are similar to what you would use with chmod however the bits themselves are reversed but the order of user/group/other is the same

eg
1 removes the execute bit
2 removes the write bit
4 removes the read bit

Handy lookup table
Code:

0 = rwx
1 = rw-
2 = r-x
3 = r--
4 = -wx
5 = -w-
6 = --x
7 = ---

So a fmask=000 gives everyone access to read, write and execute
And fmask=177 gives the owner read and write but not execute and everyone else has no access


All times are GMT -5. The time now is 03:46 AM.