Change permissions of the users directories

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

Change permissions of the users directories

Postby ownuser » Sun May 13, 2012 10:25 pm

Hi,
I'd like to use ownCloud together with Samba. It should be possible to access the directories and files with Samba and ownCloud.
Samba creates the permissions like user:www-data. Thereby ownCloud is not able to access the files correctly anymore. ownCloud sets the permissions according the "root" directory like www-data:www-data, that causes access problems to Samba.
Therefore I need to change the permissions of ther users directories. Is there any chance to configure ownCloud that it set the permissions like user:www-data?

Thanks for reply!

Regards
ownuser
Beginner
 
Posts: 10
Joined: Mon Apr 09, 2012 12:12 pm

Re: Change permissions of the users directories

Postby bufke » Sat May 19, 2012 12:10 am

You can do this using ACL. That way a file can have more than one users or groups with various permissions. Look up the getfacl and setfacl commands.

As for using Samba, I'm trying to do the same thing. It seems possible but terribly messy. I'm not sure how practical it is. Let me know if you get it working well.
bufke
Newbie
 
Posts: 4
Joined: Sat May 19, 2012 12:05 am

Re: Change permissions of the users directories

Postby ownuser » Tue May 22, 2012 7:05 am

Hi,
thanks for your reply!
I'll check it out and keep you informed!

Regards
ownuser
Beginner
 
Posts: 10
Joined: Mon Apr 09, 2012 12:12 pm

Re: Change permissions of the users directories

Postby ownuser » Sun Jun 17, 2012 9:33 pm

Hi,
it took a while till I had time to test it with ACL. What should I say, it works for me! :D

Thanks a lot for the hint!
ownuser
Beginner
 
Posts: 10
Joined: Mon Apr 09, 2012 12:12 pm


Return to OwnCloud Community Edition 4.x and older

Who is online

Users browsing this forum: No registered users and 7 guests