Questions tagged [groups]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-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
HAYTHEM KRID's user avatar
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 ...
Čamo's user avatar
  • 679
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 ...
chrestomanci's user avatar
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 ...
Zennert's user avatar
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 ...
Mario_7626's user avatar
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 ...
Mario_7626's user avatar
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 ...
nitai amir's user avatar
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 ...
Monitor's user avatar
  • 11
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 ...
Mario Palumbo's user avatar
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 ...
Big_Duck's user avatar
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 ...
Big_Duck's user avatar
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 ...
helperFunction's user avatar
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 ...
Ravi's user avatar
  • 23
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 ...
Abd-Elaziz Sharaf's user avatar
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 ...
bcsta's user avatar
  • 101
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 ...
jamshark70's user avatar
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 ...
Hardy's user avatar
  • 1
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 ...
elgaz's user avatar
  • 11
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/ ...
user1635380's user avatar
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 ...
Wendell Philips's user avatar
-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: ...
Alex Martian's user avatar
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(...
it4545454545's user avatar
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:...
Jimm Chen's user avatar
  • 341
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 (...
Eduardo Reis's user avatar
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 ...
pintaf's user avatar
  • 13
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 ...
DeapSoup's user avatar
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 ...
St. John from Des Moines's user avatar
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. ...
user7389496's user avatar
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 ...
Francis Goudreault's user avatar
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 ...
B.Tanner's user avatar
  • 2,606
-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 ...
AALAP CS's user avatar
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 ...
ktse's user avatar
  • 3
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) ...
Manuel Jordan's user avatar
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 ...
Amadou Kone's user avatar
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 ...
Manuel Jordan's user avatar
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 ...
foobar's user avatar
  • 135
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 ...
Michael Temeschinko's user avatar
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 &...
Diego-MX's user avatar
  • 608
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 ...
Sunny's user avatar
  • 129
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 {} + ...
PolGraphic's user avatar
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-...
haseeb's user avatar
  • 33
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 ...
Silicomancer's user avatar
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 ...
Norm's user avatar
  • 11
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. ...
Bard Elkraem's user avatar
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 ...
Rajivdesham's user avatar
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 ...
Richard Beneš's user avatar
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 ...
NewbLinuxStudent's user avatar
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 ...
Joseph's user avatar
  • 3
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 ...
ritter's user avatar
  • 353
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 ...
Jonathan H's user avatar

1
2 3 4 5