NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
samtheman
Aug 24, 2015Aspirant
CIFS permissions for the "root" /c share
I had recently been confusing myself with file permission behaviour on an Ultra 6 that I use on a home network and that I use to share files across a few desktops/laptops. I perform most of my op...
StephenB
Aug 25, 2015Guru - Experienced User
Interesting question...
I checked on my Pro, and found there was one share (Photos) that worked the way you wanted - the others didn't.
For some reason Photos had extended ACL set up (I have no idea why or how).
PRO:/c# cd /c
PRO:/c# getfacl Photos
# file: Photos
# owner: admin
# group: admin
user::rwx
user:admin:rwx
group::rwx
group:admin:rwx
mask::rwx
other::rwx
default:user::rwx
default:user:admin:rwx
default:group::rwx
default:group:admin:rwx
default:mask::rwx
default:other::rwx
I created matching ACL on a test share, and then it also worked as you wish.
setfacl -Rm u:admin:rwx Test
setfacl -Rm g:admin:rwx Test
setfacl -Rm m::rwx Test
setfacl -Rm d:u::rwx Test
setfacl -Rm d:u:admin:rwx Test
setfacl -Rm d:g::rwx Test
setfacl -Rm d:g:admin:rwx Test
setfacl -Rm d:o::rwx Test
setfacl -Rm d:m::rwx Test
FWIW, you can remove the ACL with
setfacl -Rb Test
The emoticons above are : followed by o
I hadn't played with ACL before, and I am certainly not an expert on this. So definitely try this yourself on a test share before you go with it. There are some guides - here is one: http://bencane.com/2012/05/27/acl-using-access-control-lists-on-linux/
mdgm-ntgr
Aug 25, 2015NETGEAR Employee Retired
Accessing the c share is intended solely for administrative purposes not for regular adding of files.
- StephenBAug 25, 2015Guru - Experienced User
mdgm wrote:
Accessing the c share is intended solely for administrative purposes not for regular adding of files.Yes. But though I know that's Netgear's intent I still do it from time to time (since it is very convenient to mount the whole volume as a drive letter).
However, I don't need the OP's desired behavior, so I don't intend to explore the setfacl approach further anytime soon.
FWIW, it doesn't change permissions on the c share itself.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!