Ask Your Question

group rights log out and back in

asked 2017-04-15 22:21:07 -0500

marek gravatar image

I created a couple new groups in the command line and then added myself to those two groups. And then using Gnome in Fedora 25 I logged out and then back in. I was expecting to have the group rights applied to my account, but that didn't happen.

if I grep my name against /etc/group I see them there. If I type the command, groups I do not have them applied to my account. I thought all I needed to do was log out and back in and those group rights should be applied. But it doesn't seem to be working. Is this a known bug or something else? What am I missing?

edit retag flag offensive close merge delete


What is the output with the cmd groups <username>?

kdg1955 gravatar imagekdg1955 ( 2017-04-16 08:41:15 -0500 )edit

the same groups I already had, but not the new one.

Here is an example of everything...

$ groups marek wheel web backups freenas groupa

$ sudo groupadd -g 1502 groupb $ sudo usermod -a -G groupb marek

[marek@xps-9550 ~]$ groups marek wheel web backups freenas groupa

If I reboot I get the new group. But if merely log out and then log back in from Gnome, I don't. I thought logging out and back in via Gnome would log me out entirely and logging in would have given me the new group upon log in.

Are you able to repeat these steps and does it work for you? Are you getting the new group?

marek gravatar imagemarek ( 2017-04-16 09:36:29 -0500 )edit

What are you trying to access as a member of this group? What fails as a result of you not being in the "proper group", other than the output of the groups command? What do you mean exactly by "If I reboot I get the new group"? It is difficult for us to tell what is what you have entered and what is the result of the command you have entered. I can see no difference between: $ groups marek wheel web backups freenas groupa and [marek@xps-9550 ~]$ groups marek wheel web backups freenas groupa

Are you issuing "groups marek" in each case or only "groups"?

lovepump gravatar imagelovepump ( 2017-04-16 18:07:35 -0500 )edit

This site is screwing up the formatting of my message.

I typed groups at the prompts.

Look my question is simple. I added a group, as I already showed. I then added myself to that groups. I then log out and then log back in and I don't see myself being added to the group. What doesn't make sense to you?

How do I get this site to exactly reproduce the sentence the way I typed it in. It's removes new lines and scrwewing up the formatting. I want it the way I typed it in. I don't want it removing spaces, line breaks or anything else. This is a technical site. The way I typed it in MATTERS

marek gravatar imagemarek ( 2017-04-16 20:39:01 -0500 )edit

I guess a feature. Not sure.
Maybe GNOME don't want to kill your background processes?

kdg1955 gravatar imagekdg1955 ( 2017-04-18 06:59:44 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2017-04-18 10:12:48 -0500

marek gravatar image

KDG1955 I don't understand how to mark your answer as the answer. I think the answer is that you've confirmed that just logging out and back into Gnome isn't a log out at all. I don't know if that's a feature or a bug and frankly I'm really sick of this site as every post has to go through moderation. I can't upvote you. My text formatted is screwed with. This is flat out frustrating to have any kind of conversation here without it taking days rather than minutes. Thanks for your help, I'll go elsewhere where posting isn't such a pain in the ass.

edit flag offensive delete link more

answered 2017-04-17 09:31:53 -0500

marek gravatar image

I don't recall this being the case in previous releases. You see what I am saying then? Using the log out of Gnome isn't actually logging me out. Is this a bug or a feature?

edit flag offensive delete link more

answered 2017-04-17 02:44:04 -0500

kdg1955 gravatar image

Apparently a logout from GNOME is not a linux logout.
You can start a new linux session with cmd $> su - <username>
Or kill your current linux session and login again. But this is not recommended.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-15 22:21:07 -0500

Seen: 74 times

Last updated: Apr 15 '17