LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2012, 08:45 PM   #1
offplanet
Member
 
Registered: Oct 2009
Location: california
Distribution: slackware, android
Posts: 41

Rep: Reputation: 0
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?
 
Old 08-11-2012, 10:14 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS setup to access directory from a remote machine as non-root user suraj278 Linux - Server 3 03-06-2012 09:00 PM
I cannot access the partitions I mounted unless I am root AndrewZorn Linux - General 8 04-09-2006 01:24 AM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 05:52 PM
Only root access for mounted harddisks lord-darkness Linux - Hardware 6 04-12-2004 01:05 PM
can only access mounted partitions as root true_atlantis Linux - Newbie 2 12-25-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration