• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

linux samba root permissions

Red Squirrel

No Lifer
I have a user called administrator on all my linux servers, it basically corresponds with the account on my windows boxes, lot of stuff is accessed under that account. I want the administrator account on the linux servers to be treated as root, so when I mount something through samba as administrator, I get full rights no matter what the permissions are (concerned about read, in this case for security reasons the shares would be read only ones). This is so that my backup server can actually access everything, instead of getting a bunch of access denied errors and not being able to back stuff up. I also dont want to have to start doing mass chmods to change ownership.

So is this possible? If yes how do I set it up that way?
 
Or you could setup a seperate 'backup' share that's read only and use 'force user' to set the user to root.
 
So if I make such a share, force user will still work on existing files? Or will it only work when creating files through that share? If it's the first, it does sound like the easiest solution.
 
I did not know that!

Generally that's a good thing. You can do a lot of odd setups by mixing Samba share and filesystem permissions, but generally you just end up confusing yourself weeks or months down the road.

So if I make such a share, force user will still work on existing files? Or will it only work when creating files through that share? If it's the first, it does sound like the easiest solution.

As the smb.conf man pages says, 'force user' sets the user that smbd is run as when you connect to that share, all operations are executed as that user.
 
Back
Top