Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Okay. I've installed Ubuntu on an old laptop, which I plan to stick in a drawer and never open again, for use as a file and media server, and all is going well except that I'm having some problems with permissions.

I set the Downloads folder so that it's shared through Samba and everyone and their sister has read/write permissions, which is how I want it. However, when a new folder is created inside of it, it does not inherit those permissions. Which is not how I want it.

Some googling has led to what appear to be solutions, except that they're all written for someone who actually knows what they are doing, which is not me. I've got the basics of Ubuntu down, but just barely.

Any chance someone can walk me, step by step, to a permanent solution for this? You'd have my eternal thanks.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I had a similar problem. Bindfs is a solution that should work. I will try to give link to my question. But if that fails, click on my username and browse my questions.

Bindfs answer

share|improve this answer

I'd suggest trying the somewhat cryptic 'setfacl' (set file access control list) command.

setfacl -Rm d:u::rwx,d:g::rwx,d:o::rwx FolderName

The -m option means modify the ACL of your folder. The -R option means do it recursively.

The other symbols stand for the following: d = default

(who to apply the permissions to) u = user g = group o = other

(permissions) r = read w = write x = execute

So in the example above, I've set the default (d) permissions for user (u), group (g) and other (o) to read (r) write (w) and execute (x).

I hope this is of some use.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.