Skip to main content

Questions tagged [groups]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Accessing folder shared in group not working

I have a user fes33 and I want to share its /home/fes33/Downloads folder to the postgres user by sharing it via the group fes33postgres. (base) fes33@fes33:~$ getent group fes33postgres fes33postgres:...
R Walser's user avatar
  • 101
0 votes
0 answers
153 views

In Ubuntu I get error groups: cannot find name for group ID 1004

I had a group called sknowed. It was group ID 1004. The user admin was a part of this group. I then deleted the group with sudo groupdel sknowed. When I execute groups command, I get a list of groups ...
spreaderman's user avatar
0 votes
0 answers
39 views

how do I change the user that git is running under?

Maybe my question is not quite correctly formulated, but nevertheless: I have an old server A and a new server B with ispmanager panels - I did not personally configure the software. In the old server,...
Alex's user avatar
  • 1
0 votes
0 answers
41 views

sudo doesn't working in Ubuntu 22.04 [duplicate]

I am going to update packages in Ubuntu 22.04 terminal. sudo apt update But I get errors like this. [email protected]:~$ sudo apt update [sudo] password for user: tester is not in the sudoers ...
bigant02's user avatar
  • 101
0 votes
0 answers
137 views

Active Directory Group Membership (refenced in the sudoers file) is Intermittent via SSH

ENVIRONMENT We are operating several Ubuntu 22.04 systems. The systems are added to a Windows Active Directory Domain via the GUI as part of the initial configuration. We have an Active Directory ...
lovetolearn's user avatar
0 votes
0 answers
41 views

How to allow both a user and root to access directory? [duplicate]

How can I make /media/creeper39x/TB-Drive be owned by creeper39x, but root have access? Could I have a group with creeper39x and root in it?? Please help.
Creeper39x's user avatar
1 vote
1 answer
372 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
  • 769
0 votes
1 answer
31 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
45 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
264 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
272 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
88 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
2k 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
61 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
274 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
3 votes
2 answers
5k 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
276 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
  • 33
0 votes
0 answers
499 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
157 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
1 vote
0 answers
513 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
  • 111
2 votes
1 answer
588 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
724 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
458 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
2 votes
1 answer
853 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
  • 343
0 votes
0 answers
223 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
765 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
69 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
685 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
640 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
2k 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
1k 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,636
-1 votes
1 answer
159 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
133 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
3k 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
271 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
5 votes
4 answers
4k 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
866 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
282 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
2k 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
0 votes
2 answers
1k 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
  • 131
1 vote
2 answers
636 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
132 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
366 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
146 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
976 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
161 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
2k 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
3k 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

1
2 3 4 5