User story #3875
closedIn directive editor for file permission, add the possibility to set SUID, SGID and sticky bit
Added by Nicolas PERRON about 11 years ago. Updated over 2 years ago.
Description
In order to simplify the code which permit to have the SUID and SGID on file, we need to implement it into the code of Rudder into the module perm
Updated by Jonathan CLARKE about 11 years ago
- Subject changed from CFEngine integration: Add possibility to set SUID and SGID to files copied to CFEngine integration: Add possibility to set SUID, SGID and sticky bit to files copied
To clarify, the aim here is to edit the "perm" module that is in Scala code, and displayed in a Directive when the variable constraint is "perm". We want to add 3 fields (checkboxes) to it "Set user ID (suid)" and "Set group ID (sgid)" and "Set sticky bit".
The result of the perm module is a octal code, currently something like 777, 740, 640, etc. Adding these checkboxes should add another digit to these numbers, so they would become 2777 (777 + sgid) or 4740 (740 + suid) or 7640 (640 + suid + sgid + sticky). The algo for this is as follows:- If suid, result += 4000
- If sgid, result += 2000
- If sticky, result += 1000
If none of the 3 new fields are ticked (they should default to "no"), it is acceptable to return the result with or without a leading 0 : "740" and "0740" are equivalent.
Updated by François ARMAND about 11 years ago
- Assignee changed from François ARMAND to Nicolas PERRON
Not sure why I'm the assignee for this one ?
Nicolas, have you an idea ?
Updated by Nicolas PERRON about 11 years ago
- Assignee changed from Nicolas PERRON to François ARMAND
François ARMAND wrote:
Not sure why I'm the assignee for this one ?
Nicolas, have you an idea ?
Because you're the lead developper and you know who is the best person to deal with this issue. Am I wrong ?
Updated by François ARMAND about 11 years ago
- Subject changed from CFEngine integration: Add possibility to set SUID, SGID and sticky bit to files copied to In directive editor for file permission, add the possibility to set SUID, SGID and sticky bit
OK, but for now, it wasn't even in the roadmap for 2.8. Let's discuss that before.
Updated by Jonathan CLARKE about 11 years ago
François ARMAND wrote:
OK, but for now, it wasn't even in the roadmap for 2.8. Let's discuss that before.
Unless I'm very much mistaken, this is rather a small change. It's currently implemented through some nastyish CFEngine hacks. Please add it to the roadmap for 2.8 :)
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.8.0~beta1 to 2.8.0~rc1
Updated by Vincent MEMBRÉ about 11 years ago
- Target version changed from 2.8.0~rc1 to Ideas (not version specific)
This won't be done for Rudder 2.8.0
postponed to a later version.
Updated by Nicolas CHARLES over 10 years ago
- Target version changed from Ideas (not version specific) to 2.10.0
I guess it would make sense to add it in 2.10
Updated by Nicolas CHARLES over 10 years ago
Francois,
I had a look at the code, and it seems much more complex that I foresaw, and I'd need your advice.
Do you think it make sence to create a new type Sticky, a bit like Perm, to be sure we don't confuse both, and end up writing rrwxrwxrwx instead of 4rwxrwxrwx ?
if so, how could it nicely fit into the FilePerms and PermSet objects (i'm facing combinatory explosion there)?
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.10.0 to 2.11.0~beta1
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~beta1 to 2.11.0~beta2
Updated by Matthieu CERDA over 10 years ago
- Target version changed from 2.11.0~beta2 to 2.11.0~rc1
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc2 to 2.11.0
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0 to 140
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 140 to 3.0.0~beta1
Updated by Jonathan CLARKE almost 10 years ago
- Target version changed from 3.0.0~beta1 to 3.1.0~beta1
Updated by Benoît PECCATTE over 9 years ago
- Category changed from 14 to Web - Config management
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~beta1 to 3.1.0~rc1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0~rc1 to 3.1.0
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.0 to 3.1.1
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.1.1 to 3.1.2
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.2 to 3.1.3
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.3 to 3.1.4
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.4 to 3.1.5
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.5 to 3.1.6
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.6 to 3.1.7
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.7 to 3.1.8
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.8 to 3.1.9
Updated by Nicolas CHARLES over 8 years ago
- Translation missing: en.field_tag_list set to sponsored
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.9 to 3.1.10
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.10 to 3.1.11
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.11 to 3.1.12
Updated by Nicolas CHARLES over 8 years ago
- Has duplicate User story #8694: The perm input type should include suid bits added
Updated by François ARMAND over 8 years ago
- Related to User story #3141: Implement the SUID and SGID handling in the filePermissions Technique added
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.12 to 3.1.13
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.13 to 3.1.14
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
Updated by Benoît PECCATTE about 7 years ago
- Target version changed from 3.1.25 to 4.1.9
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.9 to 4.1.10
Updated by François ARMAND almost 7 years ago
- Target version changed from 4.1.10 to Ideas (not version specific)
Updated by François ARMAND almost 7 years ago
- Related to User story #6247: Add sticky bit to technique Manage files and folders added
Updated by François ARMAND almost 7 years ago
- Assignee deleted (
François ARMAND)
Updated by François ARMAND over 4 years ago
- Status changed from New to Resolved
uid/gid bits can be set (for some time now).