#43 `newgrp -` and not merely `newgrp` in mock quick doc instructions...
Closed: complete 5 years ago by jflory7. Opened 6 years ago by taw.

https://docs.fedoraproject.org/quick-docs/en-US/creating-rpm-packages.html

In order for a new group assignment to take effect after a usermod, you need to either log out and in again or do a newgrp - and not merelynewgrp as described in the document linked to here.

As per the manpage for newgrp:
"""
The newgrp command is used to change the current group ID during a login session. If the optional - flag is given, the user's environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.
""""

Thanks! Have a nice day. -taw


This is a good catch — thanks. In fact, we probably should not recommend "newgrp" at all, since that doesn't quite do what people expect and has unintended consequences. It's an old command which predates the idea that you could be in more than one group at a time (!) and the semantics reflect that.

Metadata Update from @jflory7:
- Issue tagged with: good first issue, help wanted, improvement

5 years ago

Metadata Update from @jflory7:
- Issue assigned to ankursinha
- Issue priority set to: waiting on assignee

5 years ago

Fixed in PR #126. Thanks @ankursinha! :tada:

Closing as complete. :checkered_flag:

Metadata Update from @jflory7:
- Issue close_status updated to: complete
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #126 Merged 5 years ago