NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vtjballeng
Sep 14, 2011Aspirant
Dropbox permissions
I recently installed dropbox and crashplan on my readynas and am getting ready to phase out an old server but I am having trouble with the dropbox permissions. I followed the dropbox instructions here:
http://forums.dropbox.com/topic.php?id=9454
So I end up with a /c/dropbox/Dropbox folder with some permissions and user as dropbox. So far I've tried to chown recursively the whole directory as nobody/nogroup and chmod as 777 to try and gain standard permissions. No luck so far. I then did a symlink to a directory established in frontview "db". So I created the db dir in frontview and basically gave it guest / full access then ran ln -s /c/dropbox/Dropbox db. So far I can't get in and use dropbox over the network though it is syncing and working. I was not able to set up Dropbox in frontview because the dir name was already established though there was no "Dropbox" in /c, only "dropbox".
Just to be clear, what I'd like to establish is a folder with permissions I can alter via frontview that controls my dropbox folder so that I can access the dropbox folder over my network and via ftp. Failing that, I'd just like to generally get in and be able to set permissions. I'm really not sure how the readynas and linux permissions interact and want to ask before I go further to figure out the best way to move forward. Any suggestions?
http://forums.dropbox.com/topic.php?id=9454
So I end up with a /c/dropbox/Dropbox folder with some permissions and user as dropbox. So far I've tried to chown recursively the whole directory as nobody/nogroup and chmod as 777 to try and gain standard permissions. No luck so far. I then did a symlink to a directory established in frontview "db". So I created the db dir in frontview and basically gave it guest / full access then ran ln -s /c/dropbox/Dropbox db. So far I can't get in and use dropbox over the network though it is syncing and working. I was not able to set up Dropbox in frontview because the dir name was already established though there was no "Dropbox" in /c, only "dropbox".
Just to be clear, what I'd like to establish is a folder with permissions I can alter via frontview that controls my dropbox folder so that I can access the dropbox folder over my network and via ftp. Failing that, I'd just like to generally get in and be able to set permissions. I'm really not sure how the readynas and linux permissions interact and want to ask before I go further to figure out the best way to move forward. Any suggestions?
3 Replies
Replies have been turned off for this discussion
- sphardy1ApprenticeYou should have created the Dropbox share *before* you installed/configured the dropbox service, and then you would have a folder physically at /c/dropbox that you can use for the service following the link you referenced
As you've already manually created /c/dropbox - rename that (eg to /c/dropbox-), create the dropbox share which will recreate /c/dropbox and then move the contents of /c/dropbox- to /c/dropbox. You should then be able to manipulate network access to the Dropbox share as normal
Remember to stop dropbox during all this - vtjballengAspirantFrontview didn't easily allow me to follow these instructions. With a folder named "dropbox" or "Dropbox" in frontview, it would not allow me to create a user named dropbox. I basically ended up wiping the dropbox sync I previously made. Then I created a dropbox share in frontview after deleting the dropbox users previously created. I re-installed the dropbox service with the username and group name dropbox-cron.
For testing and to give everyone access, I made the frontview permissions guest access allowed and read/write access as the default. Also under Advanced CIFS Permission I have the following set:
Automatically set permissions on new files and folders.
Do not allow ACL changes to be more restrictive than this.
Read/write for group and Read/Write for Everyone for files and folders.
This should set the permissions as 666 at least but they are still being written with the user dropbox-cron, group dropbox-cron with permission 644. This seems to be dropbox specific in the way in which dropbox is writing these files. The only solution I have is to manually do a chown & chmod to my desired permissions or use the frontview advanced option to reset the owner and permissions. I am surprised other users aren't having this permissions issue unless I am missing an option or step somewhere?
Dropbox is now technically working for me but we aren't able to share the way I'd like on the local network with dropbox auto-syncing where network users can edit the files. Right now any file synced down from dropbox to the readynas comes down with 644 permissions and the files cannot be edited until I manually set permissions. We can't share these on each workstation because our dropbox size is now 550GB and this just isn't practical to share across each workstation and laptop.
I could create a cron to re-set permissions but that seems like a silly workaround. - vtjballengAspirantWell, talking to support and thus far the solution is:
$ crontab -e
# m h dom mon dow command
* 5 * * * /bin/chown -hR nobody:nogroup /c/dropbox/Dropbox
* 5 * * * /bin/chmod -R 755 /c/dropbox/Dropbox
:w then :q
The smarter alternative is to set the umask settings in /etc/profile using vim but I see a default set of 022 and am not sure which users this is for. I would like to only set the dropbox-cron user to 755. This cron basically resets the permissions and owner on dropbox once a day and is so far working but clumsy at best.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!