[opensuse] how to add a group?
I need to create a new group - 'plugdev' - and make my user a member of the group (it's apparently necessary for android dev tools). My first try was to go into YaST, make the new group and add myself to it. That appeared to work. But when I tested, it appears it hadn't: $ id uid=1000(dhoworth) gid=100(users) groups=100(users),16(dialout) So I started a new terminal window, in case that was necessary. Same output. So I went back into YaST and it shows I am a member of plugdev. But I still get the same output from the id command in a terminal. I looked in /etc/group and I'm listed as a member there. Here's another log from the terminal: dhoworth@acer-suse:~$ groups users dialout dhoworth@acer-suse:~$ groups dhoworth dhoworth : users dialout plugdev dhoworth@acer-suse:~$ whoami dhoworth What on earth is going on? Ah, if I su to myself then $ groups users dialout plugdev but still $ ./adb -a devices List of devices attached 74e3e048 no permissions (user dhoworth is not in the plugdev group); see [http://developer.android.com/tools/device.html] 74e3e048 no permissions (user dhoworth is not in the plugdev group); see [http://developer.android.com/tools/device.html] Gah! I must be missing something basic. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dave, et al -- ...and then Dave Howorth said... % % I need to create a new group - 'plugdev' - and make my user a member of % the group (it's apparently necessary for android dev tools). ... % % $ id % uid=1000(dhoworth) gid=100(users) groups=100(users),16(dialout) ... % Ah, if I su to myself then % % $ groups % users dialout plugdev % ... % Gah! I must be missing something basic. Basic, yes, but not necessarily well known. I'll be that you ran su - .. to become yourself so that you effected a login shell, which is what you need to read your groupship. You can either log out and log in again or just ssh to your machine in that window and you'll then have the plugdev group in that shell. HTH & HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, 6 Aug 2018 16:43:19 -0400
David T-G
Dave, et al --
...and then Dave Howorth said... % % I need to create a new group - 'plugdev' - and make my user a member of % the group (it's apparently necessary for android dev tools). ... % % $ id % uid=1000(dhoworth) gid=100(users) groups=100(users),16(dialout) ... % Ah, if I su to myself then % % $ groups % users dialout plugdev % ... % Gah! I must be missing something basic.
Basic, yes, but not necessarily well known. I'll be that you ran
su - ..
Not sure exactly what you meant there but I did su, not su -
to become yourself so that you effected a login shell, which is what you need to read your groupship. You can either log out and log in again or just ssh to your machine in that window and you'll then have the plugdev group in that shell.
But I just tried su - and I just tried ssh and neither affected the outcome. groups tells me I am a member, adb tells me I am not. I'm not intending to log out, unless somebody convinces me it really is necessary for some obscure linux reason. :)
HTH & HAND
:-D
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Dave Howorth
I'm not intending to log out, unless somebody convinces me it really is necessary for some obscure linux reason. :)
your choice, but for the group change/add to be effective, you must either log out and back in or access a new terminal using a login shell. that just how it works. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2018-08-07 a las 00:07 +0100, Dave Howorth escribió:
Dave, et al --
...and then Dave Howorth said... % % I need to create a new group - 'plugdev' - and make my user a member of % the group (it's apparently necessary for android dev tools). ... % % $ id % uid=1000(dhoworth) gid=100(users) groups=100(users),16(dialout) ... % Ah, if I su to myself then % % $ groups % users dialout plugdev % ... % Gah! I must be missing something basic.
Yes. log out, log in.
Basic, yes, but not necessarily well known. I'll be that you ran
su - ..
Not sure exactly what you meant there but I did su, not su -
to become yourself so that you effected a login shell, which is what you need to read your groupship. You can either log out and log in again or just ssh to your machine in that window and you'll then have the plugdev group in that shell.
But I just tried su - and I just tried ssh and neither affected the outcome. groups tells me I am a member, adb tells me I am not.
I'm not intending to log out, unless somebody convinces me it really is necessary for some obscure linux reason. :)
It just is so. Log out, log in. :-) - -- Cheers Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlto+7gACgkQja8UbcUWM1xT2QD9GsACiV0bV6KJJjsuNCklzQor 8ZPJkgNR1H7WFKs2KfUA/i1G/KKGG79dclz1QHciCDcgqFZWepyxd63xaFZ43Kc4 =y0Je -----END PGP SIGNATURE-----
On Tue, 7 Aug 2018 00:07:11 +0100
Dave Howorth
On Mon, 6 Aug 2018 16:43:19 -0400 David T-G
wrote: Dave, et al --
...and then Dave Howorth said... % % I need to create a new group - 'plugdev' - and make my user a member of % the group (it's apparently necessary for android dev tools). ... % % $ id % uid=1000(dhoworth) gid=100(users) groups=100(users),16(dialout) ... % Ah, if I su to myself then % % $ groups % users dialout plugdev % ... % Gah! I must be missing something basic.
Basic, yes, but not necessarily well known. I'll be that you ran
su - ..
Not sure exactly what you meant there but I did su, not su -
to become yourself so that you effected a login shell, which is what you need to read your groupship. You can either log out and log in again or just ssh to your machine in that window and you'll then have the plugdev group in that shell.
But I just tried su - and I just tried ssh and neither affected the outcome. groups tells me I am a member, adb tells me I am not.
I'm not intending to log out, unless somebody convinces me it really is necessary for some obscure linux reason. :)
Ah! Success, or at least a step along the road. There is no need to start a new terminal or to logout. It's not a linux thing at all. It's adb. It's necessary to run $ ./adb kill-server $ ./adb -a devices Now I just need to understand the arcane-ness of udev rules :( Oh, BTW, it seems plugdev is a built-in group on debian. I don't think we have the same on opensuse. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-08-07 11:22, Dave Howorth wrote:
On Tue, 7 Aug 2018 00:07:11 +0100 Dave Howorth <> wrote:
I'm not intending to log out, unless somebody convinces me it really is necessary for some obscure linux reason. :)
Ah! Success, or at least a step along the road.
There is no need to start a new terminal or to logout.
It's not a linux thing at all. It's adb. It's necessary to run
$ ./adb kill-server $ ./adb -a devices
What is adb? Telcontar:~ # adb --help Android Debug Bridge version 1.0.32
Now I just need to understand the arcane-ness of udev rules :(
Oh, BTW, it seems plugdev is a built-in group on debian. I don't think we have the same on opensuse.
So, Debian, not openSUSE. Or something in Android. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
Am 06.08.2018 um 22:21 schrieb Dave Howorth:
I need to create a new group - 'plugdev' - and make my user a member of the group (it's apparently necessary for android dev tools).
On Unix systems, adding a user to a group doesn't change existing processes. That's why id(1) doesn't show the new group right away. To solve this, you need to log out or you need to start a new login shell, for example by using "ssh localhost". Login shells create a new user instance and attach it to itself and all children. The second approach creates the odd situation that your user will be in the group in some terminal windows but not in others. Just log in again. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 12 Aug 2018 21:29:28 +0200
Aaron Digulla
Am 06.08.2018 um 22:21 schrieb Dave Howorth:
I need to create a new group - 'plugdev' - and make my user a member of the group (it's apparently necessary for android dev tools).
On Unix systems, adding a user to a group doesn't change existing processes. That's why id(1) doesn't show the new group right away.
To solve this, you need to log out or you need to start a new login shell, for example by using "ssh localhost". Login shells create a new user instance and attach it to itself and all children.
Actually, just starting a new shell using su user (not su - user) was sufficient, so it doesn't need to be a login shell.
The second approach creates the odd situation that your user will be in the group in some terminal windows but not in others.
Well yes, but that's fine.
Just log in again.
Definitely not! :)
Regards,
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Dave Howorth
On Sun, 12 Aug 2018 21:29:28 +0200 Aaron Digulla
wrote: Am 06.08.2018 um 22:21 schrieb Dave Howorth:
I need to create a new group - 'plugdev' - and make my user a member of the group (it's apparently necessary for android dev tools).
On Unix systems, adding a user to a group doesn't change existing processes. That's why id(1) doesn't show the new group right away.
To solve this, you need to log out or you need to start a new login shell, for example by using "ssh localhost". Login shells create a new user instance and attach it to itself and all children.
Actually, just starting a new shell using su user (not su - user) was sufficient, so it doesn't need to be a login shell.
but "su <suer>" starts a "log in shell".
The second approach creates the odd situation that your user will be in the group in some terminal windows but not in others.
Well yes, but that's fine.
Just log in again.
Definitely not! :)
definitely yes. you *must* consult the man page for su. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
13.08.2018 00:05, Patrick Shanahan пишет:
* Dave Howorth
[08-12-18 16:48]: On Sun, 12 Aug 2018 21:29:28 +0200 Aaron Digulla
wrote: Am 06.08.2018 um 22:21 schrieb Dave Howorth:
I need to create a new group - 'plugdev' - and make my user a member of the group (it's apparently necessary for android dev tools).
On Unix systems, adding a user to a group doesn't change existing processes. That's why id(1) doesn't show the new group right away.
To solve this, you need to log out or you need to start a new login shell, for example by using "ssh localhost". Login shells create a new user instance and attach it to itself and all children.
Actually, just starting a new shell using su user (not su - user) was sufficient, so it doesn't need to be a login shell.
but "su <suer>" starts a "log in shell".
No, it does not. Just do "echo $LOGNAME" after "su <other-user>". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Aaron Digulla
-
Andrei Borzenkov
-
Carlos E. R.
-
Dave Howorth
-
David T-G
-
Patrick Shanahan