-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* starting work on fedora.json * missing comma * doh, missing quote * dammit, missing colon * dev branch note * more work on Fedora * missing comma * Fedora users through ftp * Fedora through group 33 * json cleanup * groups done * describe Fedora JSON * git ignore * fix for Fedora JSON validation * use 000-CONFIG for duplicate resolution * update .gitignore * Notes to self before I snooze * silence pylint where it is wrong * fix tab * 120 characters for user comment field * adjusted the Makefile * update TODO * README work * work on readme * readme work * update spec file * version update * script to generate markdown * hacking notes * atypshell support * missing docstring * some code cleanup * lots of code cleanup * work on Fedora compatibility * tweaks * pedantic stuff * goodnight * new json properties for user accounts * work on 000-CONFIG section * adjusted header * set shebang * Updated TODO. Take nap. * add modified property * add metadata to 000-CONFIG * add timestamp for JSON validation * validate 000-CONFIG metadata * more code cleanup * Use 0644 on json * some sys.exit cleanup * cleanup on main() * add adjustable dynamic range support * final tweaks before documentation fix + bug testing * adjust a few things * update the man pages * clarify docstring * tidying up a bit. * note to self * clarifications * man page tweaks * squashed some bugs * fix bug with non-common ID * start recreating markdown * initial markdown cleanup * url typo fix * minor adjustments * update date * update * work on markdown * markown fix * partially done with markdown * finish markdown * update timestamp * update Fedora stuff * pre-merge final cleanup * final tweak
- Loading branch information
1 parent
2f9b0e7
commit 3533a55
Showing
21 changed files
with
2,079 additions
and
713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fubar.py | ||
.fubar.py.swp | ||
fubar.json | ||
.fubar.json.swp | ||
pylint.log | ||
.pylint.log.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Planned Delete Feature | ||
====================== | ||
|
||
With the planned `--delete` feature, what I hope to do is list all | ||
users that use the group being deleted as their primary group and | ||
then switch those users to use `nogroup` as their primary group. | ||
|
||
In most cases that will be a list of one or zero but that can not | ||
be assumed. | ||
|
||
When deleting a user, first delete a group of same name as listed | ||
above, then delete the user but in non-destructive to any files | ||
owned by that user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Hacking | ||
======= | ||
|
||
Largely notes to myself. | ||
|
||
1) Copy the file `functions.py` to `fubar.py` | ||
|
||
2) Edit the file `fubar.py`. In the function `myjson()` change | ||
`jsonfile = 'yjl-sysusers.json'` to `jsonfile = 'fubar.json'` | ||
|
||
3) Further edit `fubar.py`. In the function `main()` change | ||
`if myuid != 0:` to `if myuid == 0:` | ||
|
||
4) Whatever JSON file you want to work with, copy it to | ||
`fubar.json` | ||
|
||
You can test the integrity of the JSON via: | ||
|
||
python3 fubar.py --bootstrap | ||
|
||
You can test what it does when given arguments by: | ||
|
||
python3 fubar.py [options] somename | ||
|
||
When done hacking, remember to run `pylint` on `fubar.py` and fix | ||
what is reasonable, integrate any changes into `functions.py` | ||
(using the `diff` command is useful) other than Steps 2 and 3 above, | ||
and if applicable, merge any JSON changes. | ||
|
||
|
||
New Version Notes | ||
----------------- | ||
|
||
Mostly notes to myself. I have poor short term memory. | ||
|
||
Before pull request merging development into main: | ||
|
||
1) Make sure both man pages reflect any changes. | ||
|
||
2) Make sure to update `Modified:` date in both man pages (line 6). | ||
|
||
3) Make sure to update the Month, year, and version in both man pages | ||
(`.TH` line 10) | ||
|
||
4) run the script `make-docs.sh` (inside the `docs` dir) to regenerate | ||
the markdown pages. | ||
|
||
5) Hand edit the resulting Markdown pages so they look good in both a | ||
console as plain text, and in github markdown web viewer. | ||
|
||
6) Make sure version is correct in `yjl-sysusers.spec` file (the | ||
`%global gitv` in first line) | ||
|
||
7) Make sure version is correct in README.md | ||
|
||
8) Merge into `master` branch | ||
|
||
9) create new tagged release `v` followed by version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
TODO | ||
==== | ||
|
||
Right now it mostly works. | ||
add --delete option --- the argument is there, but it does not actually | ||
do anything yet. | ||
|
||
Need an installer (Makefile) | ||
-------------------------------- | ||
|
||
Right now it mostly works but needs testing. | ||
|
||
It needs to be integrated with gettext for string i18n string | ||
translation. | ||
|
||
Need to fix the bugs referenced in | ||
[yjl-sysusers.8](docs/yjl-sysusers.8.md#bugs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
WARNING | ||
======= | ||
|
||
Fedora | ||
------ | ||
|
||
Fedora JSON is based upon: | ||
|
||
https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/ | ||
(2023-05-28) | ||
|
||
It still needs some useradd metadata and needs to be double-checked. | ||
|
||
I was not able to find published information on what Fedora currently uses | ||
as `SYS_UID_MIN` or `SYS_UID_MAX` so I did not specify that within the | ||
__000-CONFIG__ section. | ||
|
||
Also I do not think it is complete. For example, `apache` is not listed | ||
there but at least historically, a static UID/GID was used in the | ||
Red Hat/Fedora world for `apache`. | ||
|
||
The Fedora JSON file however should be a decent base for someone more | ||
familiar with current Fedora to start with, assuming there is interest. |
Oops, something went wrong.