Magnetic_dud Posted June 25, 2014 Report Share Posted June 25, 2014 I did this:1. mkdir /files2. chmod -R 777 /files3. chown btsync:btsync /files4. 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 usersHow can I force btsync to create files with "777" permission bits? Thanks Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 25, 2014 Report Share Posted June 25, 2014 @Magnetic_dud Change the umask for btsync user. BTSync applies umask when creates new files / folders. Quote Link to comment Share on other sites More sharing options...
Magnetic_dud Posted June 26, 2014 Author Report Share Posted June 26, 2014 I tried and I don't know how to change umask for btsync user (I'm not a linux guru, I could only change my user umask) I put this in cron:@hourly chmod -R 777 /files/mystuffugly hack, but... Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 28, 2014 Report Share Posted June 28, 2014 @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. Quote Link to comment Share on other sites More sharing options...
Magnetic_dud Posted June 30, 2014 Author Report Share Posted June 30, 2014 but if I do that I change for the connected account, not for the btsync account Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 30, 2014 Report Share Posted June 30, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.