Questions tagged [groups]
The groups tag has no usage guidance.
239
questions
-1
votes
0
answers
24
views
about users , groups and sudoers [duplicate]
How to add '(an existing user) to 'sudoers' by adding special group as secondary to the user?
a test task
1
vote
1
answer
125
views
Default group for user when creating files and directories
I have user deployment whos default group is set up to www-data. He also belongs to group xxxxx.
Then I have a cron script under the user deployment which runs php script which generate some dynamic ...
0
votes
1
answer
26
views
Two system services need write access to the same directory - How to correctly set users/groups etc to permit access securely?
I am trying to run two system services, each of which has its own user, and creates files owned by that user, in a directory under /var/lib - The problem is that I need both services to write their ...
0
votes
1
answer
41
views
Giving specific rights
I have the directory called 'sales' and 2 groups called 'Sales' and 'HRM'.
As shown below, I have a list with all directories, and connected groups. Without changing the directory's group, i need to ...
0
votes
1
answer
37
views
Set UID range for specific GUID
I created some groups and I want to create some users to specific guid.
It will something like this:
group1 with uid from 1000 to 1500
group2 with uid from 2000 to 2500
group3 with uid from 3000 to ...
0
votes
0
answers
65
views
Create new users with a default group
I want to create a new user with a group called gfirt with a guid 1111. Firstly, I did groupadd -g 1111 gfirt. Then I add the user test creating a home directory and setting the password. The result ...
0
votes
0
answers
152
views
groups and groups <user> are different even after restart
Hi there I'm new to Linux and I'm very confused. I tried to add my user to docker group to run the docker without sudo as follow: https://docs.docker.com/engine/install/linux-postinstall/ and It ...
0
votes
0
answers
69
views
Is the list of default groups that come with a fresh Ubuntu install documented?
adm _flatpak list render syslog uucp
audio floppy lp root systemd-coredump uuidd
backup ...
1
vote
1
answer
640
views
Reload user groups without reboot and without ugly hacks for use in a bash script
The /etc/sudoers.d/user1 file contains:
%user1 ALL=(user1) NOPASSWD:ALL
Which using the sudo command grants all users of the user1 group (%user1) to login to the user1 user (ALL=(user1)) without the ...
0
votes
1
answer
41
views
How do commands determine whether we have the necessary privileges to perform an action?
Ubuntu newbie here!
I can't seem to figure out what mechanism determines whether to execute a command or to display a 'Permission denied' error.
For example, assuming that we are using a regular user ...
0
votes
1
answer
184
views
Why does adding a user to the sudo group give him access to the sudo command?
Ubuntu newbie here!
As far as I understand groups exist so that file permissions can easily be assigned to many users at once, or to allow specific applications to access files securely, such as with ...
0
votes
2
answers
2k
views
Give read only access to every user for a folder
I am the owner of directory mydir.
I don't have root access.
How can I give only read access to someone so that they can create a local copy of mydir?
Edit: ChatGPT tells me chmod -R o+r mydir should ...
0
votes
1
answer
101
views
accidentally deleted libvirt group, how to restore it
I accidently run the command
sudo groupdel libvirt
and after that my virtual machine qemu stop working says this,
also after deleting group I'm not able to see libvirt in groups command.
how to ...
0
votes
0
answers
45
views
Mounts per user [ ntfs issue ]
Edit
Now I'm sure
I wasn't doning anything wrong
I understood that I could set oartitions from settings > removable storage > removable devices to be mounted automatically or not
this is sessin ...
0
votes
0
answers
365
views
sudo command throwing 'user is not in the sudoers file'
I am on user myuser on Ubuntu and it is only assigned to its own group myuser. sudo -i gives:
user is not in the sudoers file
I cannot log in to a wifi because it is asking for a password and myuser ...
0
votes
0
answers
61
views
Software & Updates wheel privileges
I need to use Software & Updates to enable some sources.
My system says "On some systems, you need to be in a special group (often: wheel) to use this program."
$ sudo usermod -a -G ...
0
votes
0
answers
75
views
Ubuntu user groups : Permission denied
I have admin user , root user and one other user 'www',
I'm using 'www' user for Nginx based solutions, its non admin user. User id 1001.
I have enable ssh login for 'www' user cause for change file ...
1
vote
0
answers
257
views
microk8s not granting me permissions to execute commands
Despite being in the microk8s OS group and having r-x access to the local config files, I am unable to execute microK8s commands that require elevated permissions.
$ groups
gary adm cdrom sudo dip ...
0
votes
0
answers
178
views
i2c devices listed in root group
I created an Ubuntu 18.04 headless image and flashed into eMMC on Nvidia Jetson nano module. After booting up, the i2c devices i2c-0, i2c-1, i2c-101, i2c-2, …, i2c-8 are listed in the folder of /dev/ ...
2
votes
1
answer
252
views
"id" and "id name" get different group id
My ubuntu user name is lr. I use usermod to change my group id
lr@amax$ sudo usermod lr -g ob
When I check with command id
lr@amax$ id
uid=1004(lr) gid=1008(lr) groups=1008(lr)
however when I use ...
-1
votes
1
answer
377
views
Why `group` does not show new group in GUI bash terminal, when showed in text mode console?
Why after I login in I see user account belonging to newly added group, but in X (GUI desktop after starting with startx) in terminal groups does not show that group?
Clear reperformance example: ...
4
votes
1
answer
411
views
Why is there no member in a primary group of the same as group user?
I have default user that i've created when installed ubuntu
ubuntu@primary:~$ id
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),132(...
0
votes
1
answer
499
views
Add myself to a group, and `groups` does NOT reflect it immediately, why?
Execute the two commands, that is, adding current user to tcpdump group, then check the result by querying groups. BUT, groups does not report I'm a member of tcpdump why?
Screenshot from Ubuntu 22.04:...
0
votes
0
answers
98
views
Is it possible to define a administrator to a specific group in linux?
I was given the following task
Designate John Doe as the group administrator;
I am very confused with the meaning of "the group administrator".
Is it possible to give privileges to a user (...
1
vote
1
answer
442
views
Cannot cat files with 640 permission while being part of their group
I've spend hours trying to find why it's not going right, but I give up now so here I am.
My setup/problem: I have a remote VPS to which I connect via SSH (pub/priv keys, no password).
The user is ...
0
votes
0
answers
61
views
Is running a browser as group via sudo dangerous?
Suppose that internet is a group I have created. Is it dangerous to run e.g. Firefox via sudo -g internet firefox? I am 99% sure it's not, but wanted to make sure since I am doing that often and I ...
1
vote
1
answer
570
views
Post upgrade to Ubuntu Studio 22.04, I am now denied access to "Software and Updates"
I have two computers running Ubuntu Studio 22.04, which were each just recently upgraded from 21.10. We'll call them, simply, my "gaming PC" and my [non-gaming] "laptop". And I've ...
0
votes
1
answer
423
views
Modify default user groups
Is there a way to modify the default user groups in Ubuntu 20.04? I mean if a user logs in for the first time (or if a user is created), he is automatically added to groups X, Y and Z for example.
...
1
vote
1
answer
1k
views
linux I want to add permission on two groups
I have my owner (Pierre) and he has all permission on g586 folder, I have my first group (G586) have read permission, I have another groupe name (teacher) have read and execute permission, and other ...
0
votes
1
answer
864
views
Does Kubuntu have a GUI user and group manager?
In kubuntu 18.04 the User Manager in Settings can add and delete users, but that's about it.
I need to modify groups and users so seldomly that I spend more time reading man pages and finding the ...
-1
votes
1
answer
130
views
Have two users collaborate in a directory
Can anyone help me to solve this.its simple.but i have full of doubts.
Create a directory on /mnt/data. 2 users there, Alice and Bob, and both of them are in group admins. Both of the users ...
0
votes
1
answer
101
views
20.04 LTS How to add a user to a group with an OEM install
I want to OEM install Ubuntu 20.04LTS and distribute it with KVM installed.
A user who boots the installed OS must be a member of the "libvirt" group in order to use KVM, but how do I set it ...
1
vote
1
answer
2k
views
/etc/group: why the username does not appear in its own primary group?
According with many tutorials in the /etc/group file is listed all the groups.
Through the cat /etc/group | grep omicron command (omicron is the default custom user created in the Linux installation) ...
0
votes
0
answers
135
views
How do I give one user read/write access to everything another user has access to?
I have a situation where I have to work as user alice, and I need to be able to read, write, and edit directories and files created by bob. I know that I could take a specific directory created by ...
4
votes
4
answers
3k
views
When gpasswd vs usermod/deluser?
About user and groups administration I found in many tutorials that appear:
gpasswd - to add and delete users to a group
usermod/deluser - to add, modify and delete users of a group
What is not very ...
0
votes
0
answers
627
views
Cannot access dir although user belongs in the group
I have a directory named foo that has the following permissions:
ls -dl foo
d---r-x--- 3 foobar staff 96 Sep 1 10:29 foo
While executing groups or id when logged in as foobar I get back a list of ...
6
votes
1
answer
3k
views
Allow a group of users to create and write to files in a given directory [duplicate]
I want to have different users including www-data to work together under a specific path. including updating each others files.
I made a new group webimage
addgroup webimage
and
adduser user1 ...
0
votes
2
answers
183
views
Why does owner user require sudo?
This is a specific configuration that I found about here.
I have two users that share a common folder:
$ ls /home
> drwsrws--- root my-group ... common
> drwxr-xr-x diego diego ... diego
&...
0
votes
0
answers
17
views
Does Ubuntu 18.04 create entries in certain groups for the installer by default [duplicate]
WHat are the groups in which when installing Ubuntu 18.04 or 16.04, the installer is made a member by default.
Is adm one such group? WHat about admin? What about sudo?
If 18.04 has separate default ...
0
votes
2
answers
1k
views
Permission denied despite being in group that owns the directory
I have an directory to which I've set the permissions as follow:
sudo chown -R root:www-users /var/www
sudo find /var/www -type d -exec chmod 2775 {} +
sudo find /var/www -type f -exec chmod 0664 {} +
...
1
vote
1
answer
982
views
unable to fix udev installation,
ubuntu 20 (focal).
if i try to run
sudo apt update && sudo apt upgrade -y
i get following error
Errors were encountered while processing:
udev
xserver-xorg-core
xserver-xorg-video-nvidia-...
1
vote
2
answers
529
views
New Kubuntu 20.04 user accounts without group memberships
I recently experienced strange problems when creating user accounts on freshly installed Kubuntu 20.04 PCs.
The user account created during installation of the OS works as expected. It is member of ...
1
vote
0
answers
117
views
Ubuntu 20.04 LTS - Why am I only in one group?
I am experiencing the same problem as noted at:
Why my linux account only belongs to one group?
I am running 20.04 and GDM. I've also:
Followed every suggestion I could find related to disabling ...
0
votes
0
answers
286
views
Ubuntu 20.10 Lost all files with usermod when added user 1001 to group 1002 accidentally
I was adding a new user {rasa} to my Ubuntu studio 20.10. I was adding rasa uid:1002 gid:1002 groups=rasa (1002)
To the audio group for privileges to change cpu to performance and set jack settings. ...
0
votes
1
answer
128
views
I want to create a shell script wherein each project has set of instructions
I want to create a shell script wherein each project has set of instructions which includes setting different groups to setup for every different clearcase view.
I am facing difficulty as the setview ...
1
vote
1
answer
692
views
Cannot edit file via group permission
there's a system with two users: codera and coderb.
They both belong to group named firma.
However, when one of them creates a file (in /tmp) and changes it's group ownership
to firma, with rw group ...
0
votes
1
answer
117
views
How to add myself to sudoers when accidently remove main user out of the sudo group [duplicate]
I was trying to create a public and private share directory using samba and I ended up accidently relocated my main user to smbshare group and can no longer use sudo commands or log in as root. I will ...
0
votes
2
answers
1k
views
How to allow another user in a group to read a file [duplicate]
I need help in this question please I have tried several times. Create a file, /home/jack/secretf7b079, containing the string secret5cd51b. Make sure the file is owned by jack. Use a group to enable ...
3
votes
1
answer
2k
views
Can't add group to user
For ROCm 4.0 in Ubuntu 20.04 I need to add the 'render' group to the user. I do this with
pete@black:~$ groups
pete adm cdrom sudo dip plugdev lpadmin lxd sambashare
pete@black:~$ sudo usermod -a -G ...
0
votes
1
answer
41
views
Writing to a shared partition
I am aware that there are many questions about write permissions and partitions, but I have followed the instructions that I found to the letter and double checked everything I can think of, and I ...