Red Squirrel
[H]F Junkie
- Joined
- Nov 29, 2009
- Messages
- 9,211
I have multiple servers in my house, and most have some custom app of some sort, whether it's a web based thing or full blown C++ app.
I like to code stuff in real time so I can test without having to copy files all over the place every time I make a change. So I have a central folder on my main server where the dev and prod stuff goes. This folder is then shared out to the servers and the applications are executed from there.
The problem I constantly run into is the dreaded Linux permissions issue. Unike Windows, there is zero inheritance in Linux, making permission management a huge nightmare. If there's one thing in Linux that was very poorly designed, it's the file permissions.
If I write something from one server it will have a different set of permissions from if I write it from another server, and I wont be able to modify it from another server. It's a royal pain and I'm always fighting with this. I can do force group and force user, but it only seems to work to some extent. It's hit and miss.
Is there a better way to approach this? I could just keep the files local to each server, but then I'd end up with a billion mounted shares on my workstation for development. I really want to just keep it all centralized. Also makes backups easier as I'm only backing up a single folder on a single server instead of starting remote rsync sessions on each server.
One thing I'm wondering is if I should use NFS, but that does funky permission crap too. I almost want to be looking at iSCSI, but from my understanding, it's not really meant to be treated as a share, only one PC should be accessing it at once.
Basically, I just want to do way with per file permissions, and I want per share permissions instead.
I like to code stuff in real time so I can test without having to copy files all over the place every time I make a change. So I have a central folder on my main server where the dev and prod stuff goes. This folder is then shared out to the servers and the applications are executed from there.
The problem I constantly run into is the dreaded Linux permissions issue. Unike Windows, there is zero inheritance in Linux, making permission management a huge nightmare. If there's one thing in Linux that was very poorly designed, it's the file permissions.
If I write something from one server it will have a different set of permissions from if I write it from another server, and I wont be able to modify it from another server. It's a royal pain and I'm always fighting with this. I can do force group and force user, but it only seems to work to some extent. It's hit and miss.
Is there a better way to approach this? I could just keep the files local to each server, but then I'd end up with a billion mounted shares on my workstation for development. I really want to just keep it all centralized. Also makes backups easier as I'm only backing up a single folder on a single server instead of starting remote rsync sessions on each server.
One thing I'm wondering is if I should use NFS, but that does funky permission crap too. I almost want to be looking at iSCSI, but from my understanding, it's not really meant to be treated as a share, only one PC should be accessing it at once.
Basically, I just want to do way with per file permissions, and I want per share permissions instead.