Permissions On Directories


Recommended Posts

I did this:

  • 1. mkdir /files
  • 2. chmod -R 777 /files
  • 3. chown btsync:btsync /files
  • 4. set up a new sync directory inside /files

 

Now, all the files created by the btsync process have "644" permissions, meaning that I can't write them from other users

How can I force btsync to create files with "777" permission bits?

 

Thanks

Link to comment
Share on other sites

@Magnetic_dud

 

The internet advises:

 

Getting down to business, one can change the default Umask value to anything he or she wants, as long as it’s supported, of course. To do that, write a new Umask value in your shell’s configuration file (~/.bashrc for Bash) or in the /etc/profile file.

Link to comment
Share on other sites

That will change umask for all users. If you want to change it for single user only - you need to adjust .bashrc file which is stored in home folder of designated user.

 

This will work only if user runs bash, of course. Alternatively you can make a simple shell script which first - runs umask command, then runs btsync instead of simple btsync startup.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.