Project

General

Profile

Actions

User story #3875

closed

In 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.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Web - Config management
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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


Subtasks 1 (0 open1 closed)

User story #3876: Add the SUID and SGID into the perm module of RudderRejectedActions

Related issues 5 (1 open4 closed)

Related to Rudder - User story #3115: Technique "Download From A Shared Folder": Add possibility to set SUID and SGID to files copiedReleasedNicolas PERRON2013-08-21Actions
Related to Rudder - Bug #5325: Technique "Set the permissions on files": We can't set the SUID/SGIDReleasedJonathan CLARKE2014-07-29Actions
Related to Rudder - User story #3141: Implement the SUID and SGID handling in the filePermissions TechniqueReleasedNicolas CHARLES2013-01-07Actions
Related to Rudder - User story #6247: Add sticky bit to technique Manage files and foldersNewActions
Has duplicate Rudder - User story #8694: The perm input type should include suid bitsRejected2016-07-15Actions
Actions #1

Updated by Nicolas PERRON about 11 years ago

This is the continuity of #3115

Actions #2

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.

See: http://linux.die.net/man/1/chmod

Actions #3

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 ?

Actions #4

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 ?

Actions #5

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.

Actions #6

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 :)

Actions #7

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.8.0~beta1 to 2.8.0~rc1
Actions #8

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.

Actions #9

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

Actions #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)?

Actions #11

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.10.0 to 2.11.0~beta1
Actions #12

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0~beta1 to 2.11.0~beta2
Actions #13

Updated by Matthieu CERDA over 10 years ago

  • Target version changed from 2.11.0~beta2 to 2.11.0~rc1
Actions #14

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Actions #15

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0~rc2 to 2.11.0
Actions #16

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0 to 140
Actions #17

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 140 to 3.0.0~beta1
Actions #18

Updated by Jonathan CLARKE almost 10 years ago

  • Target version changed from 3.0.0~beta1 to 3.1.0~beta1
Actions #19

Updated by Benoît PECCATTE over 9 years ago

  • Category changed from 14 to Web - Config management
Actions #20

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.1.0~beta1 to 3.1.0~rc1
Actions #21

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.1.0~rc1 to 3.1.0
Actions #22

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.1.0 to 3.1.1
Actions #23

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.1.1 to 3.1.2
Actions #24

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.1.2 to 3.1.3
Actions #25

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.1.3 to 3.1.4
Actions #26

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.1.4 to 3.1.5
Actions #27

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 3.1.5 to 3.1.6
Actions #28

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 3.1.6 to 3.1.7
Actions #29

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.7 to 3.1.8
Actions #30

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.8 to 3.1.9
Actions #31

Updated by Nicolas CHARLES over 8 years ago

  • Translation missing: en.field_tag_list set to sponsored
Actions #32

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.9 to 3.1.10
Actions #33

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.10 to 3.1.11
Actions #34

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.11 to 3.1.12
Actions #35

Updated by Nicolas CHARLES over 8 years ago

  • Has duplicate User story #8694: The perm input type should include suid bits added
Actions #36

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
Actions #37

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.12 to 3.1.13
Actions #38

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.13 to 3.1.14
Actions #39

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #40

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #41

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #42

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #43

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #44

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #45

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #46

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #47

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #48

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #49

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #50

Updated by Benoît PECCATTE about 7 years ago

  • Target version changed from 3.1.25 to 4.1.9
Actions #51

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.9 to 4.1.10
Actions #52

Updated by François ARMAND almost 7 years ago

  • Target version changed from 4.1.10 to Ideas (not version specific)
Actions #53

Updated by François ARMAND almost 7 years ago

  • Related to User story #6247: Add sticky bit to technique Manage files and folders added
Actions #54

Updated by François ARMAND almost 7 years ago

  • Assignee deleted (François ARMAND)
Actions #55

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).

Actions

Also available in: Atom PDF