Skip to content

su ##97

Closed
mebenn wants to merge 0 commit intoOpenIndiana:masterfrom
mebenn:master
Closed

su ##97
mebenn wants to merge 0 commit intoOpenIndiana:masterfrom
mebenn:master

Conversation

@mebenn
Copy link
Contributor

@mebenn mebenn commented Oct 6, 2018

No description provided.

RBAC involves collecting a select number of privileges and bundling these
together as a role. A user can then be assigned one, or several roles.

OpenIndia supports all these frameworks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps, rephrase, like "OpenIndiana supports both mechanisms for granting subset of privileges to a user".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RBAC is work-in-progress and the material already presented will be drastically changed, and a lot more material is required, but for the present text, your suggestion is better. ok

and defaults to vi. If you'd prefer to use another editor, for example emacs,
call visudo as follows: `EDITOR=emacs visudo`

More flexible, however, is assigning one or several commands to a number of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to a group of users

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'group' has such a fixed interpretation that I specifically wanted to avoid using 'group' and its associated Unix connotations, just a collection of users and later form the group:
But this is so small and trivial that I can go with your suggestion. ok

The above example is a simple mechanism in which an account is assigned one, or
more administrative commands in which to carry out administrative
duties. However, this does not scale particularly well. On a system with a small
number of users this system might be sufficient. On a system with several
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'this system might be' => 'this might be'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, an improvements

example, printers attached to the system. A more desirable system would be one
in which this user had the ability to permit users to use a printing device,
remove print jobs from the print spool, add new printers to the system, ...
remove print jobs from the print spool, add new printers to the system,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be ended by '.'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence ends with ",". should end with "."

- A role is accessible via login.
- A role can be accessed by a user only if the user explicitly changes user id,
i.e., su whatever_role
- A special shell is used for all role accounts, i.e., _pkfsh or pfsh.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pfksh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my typo, ok

```

### System shutdown, reboot, ...
### System shutdown, reboot,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'.' in the end of sentence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "," in the end of sentence

@mebenn
Copy link
Contributor Author

mebenn commented Oct 22, 2018

Everything up to RBAC should be to a first iteration complete. The RBAC section needs a lot more work: examples, why it is an improvement over sudo, etc
This is work-in-progress

@pyhalov
Copy link
Contributor

pyhalov commented Oct 23, 2018

Please, rebase on head and squash commits into one.

@pyhalov
Copy link
Contributor

pyhalov commented Nov 8, 2018

please, rebase branch against master

Copy link
Contributor

@pyhalov pyhalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update needs work, including rebase on master.


This can be implemented as follows:

- For each task, create a group (more about groups later)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where? We reference to group description, but do not provide it. Likely, have to remove reference.

example, printers attached to the system. A more desirable system would be one
in which this user had the ability to permit users to use a printing device,
remove print jobs from the print spool, add new printers to the system, ...
remove print jobs from the print spool, add new printers to the system,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence ends with ",". should end with "."

- Role: A special type of user account that can be directly logged into using su
only.
Think of a role as a container to perform administrative tasks.
- Role Shell: (pfksh or ksl) is a special shell and is used to consult the RBAC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ksl -> pfsh ?
"and is used to consult" -> "which consults"

```

### System shutdown, reboot, ...
### System shutdown, reboot,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "," in the end of sentence

@AndWac
Copy link
Contributor

AndWac commented Jun 2, 2021

Your last commit looks suspicious.

@Toasterson
Copy link
Contributor

Looks like a botched rebase or merge. @mebenn can you clean up the history please?

@JMadgwick
Copy link
Contributor

I fear the situation here is getting worse. There are now a lot of conflicts and not all of these are because of rebasing. The original commits were 4+ years ago. It looks like much of that content is still relevant, but will need to be extracted into a new PR.

@mebenn
Copy link
Contributor Author

mebenn commented Dec 20, 2021

Not sure whether it is worth saving the contents; except for the comments from the reviewers, which are good.

This whole sections needs a rewrite as it stands and the material in this PR will not significantly help.

I originally tried to document RBAC which is a wonderful feature, but, I found, tricky to describe. My description became to wordy. Worse, I had to describe peripheral things like sudo, root, users, groups, ....
So I made a PR with some doc on root, sudo, ... just to get feedback.

I think the better approach would be to document the entire block and create one PR off the current head instead of trying to clean up history which will never result in anything of adequate quality.

Unfortunately, this would require me to invest some work to document RBAC before creating a PR: but it will not be completed for some time.

I also had a closer look at the merge conflicts: there are loads of them and cherry picking was not easy. My suggestion is to dump this PR.

@JMadgwick
Copy link
Contributor

That last force push has erased all of the content from this PR. I had been planning to cherry pick some parts. I don't think that is possible now - unless you still have the changes locally?

@mebenn
Copy link
Contributor Author

mebenn commented Jan 22, 2022

Yes, that was intended. I'm rewriting/cleaning-up the Accounts Management section (User, Groups, System & RBAC). That's all todo for me now. As soon as I'm am finished, there will be a fresh PR.
I became somewhat distracted by playing about with processes and services. Solaris 10/Open Solaris had a GUI, smc (if memory serves me, that was the command for Service Management Console, or something similar); but it is not around anymore. (Anyone know if it is in Solaris 11?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants