-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t3c will ensure config files are owned by ats #6880
Conversation
To test this I made a copy of $ stat ./README.md
File: ./README.md
Size: 3471 Blocks: 8 IO Block: 4096 regular file
Device: 10303h/66307d Inode: 17697181 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ocket8888) Gid: ( 1000/ocket8888)
Access: 2022-06-08 12:55:22.414520586 -0600
Modify: 2022-06-08 12:55:22.414520586 -0600
Change: 2022-06-08 12:55:22.414520586 -0600
Birth: 2022-06-08 12:55:22.414520586 -0600
$ ./t3c-diff -l '<!--' -m 0664 -u 0 -g 0 -a ./README.md -b ./README.new.md
$ echo $?
0 |
the default value if left blank is 0 if the value is 0 it will use the running process's uid/gid |
* Added option for uid and gid values and checks * added uid/gid to command and diff func * added gid/uid to diff func * added func for ownership check * added change log entry for t3c diff * should not be part of this branch * added uid and gid to usage string * fixed typo * fixed formatting error * added missing variables and flags * running process's uid/gid will be used by defalut * fixed formatting error. * made changes to the help text and removed extraneous space
Closes: #6879
Which Traffic Control components are affected by this PR?
t3c
, formerly ORT)What is the best way to verify this PR?
Build and install rpm, change file owner and group on some config files, queue updates on the cache, run t3c apply in syncds or badass, and verify owner and group have been set back to ats.
PR submission checklist