Skip to main content

Questions tagged [users]

Anything related with user accounts and user management on Unix-like systems.

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

usermod and groupmod inconsistency for removing multiple users/groups

I don't understand why usermod has a -r option that can be used in combination with -G to remove groups that the user belongs to, but groupmod doesn't have an option to remove multiple users from a ...
Neox's user avatar
  • 111
1 vote
0 answers
11 views

Group owner cannot write to file despite group permissions [duplicate]

I'm working on Ubuntu 20.04. I have a system user/group systembob and a system user alice. alice is a member of the systembob group, and has been for quite some time: $ getent group systembob ...
Borea Deitz's user avatar
0 votes
2 answers
36 views

When to useradd

I'm writing a daemon in C which needs to do some things as a separate user from root. I will call this user "testuser". My program is installed by its makefile. My question is thus, when ...
spinosarus123's user avatar
-1 votes
3 answers
63 views

Raspberry Pi 5 Unable to redirect script output to file

I'm using a Pi5 to run raspotify (a service that allows you to connect spotify from another device) it also starts a script "MyScript". I want to redirect the output from MyScript to a file ...
Martin Duckett's user avatar
0 votes
1 answer
33 views

User accessible directory that is guaranteed to be tmpfs?

As in the title, I'm looking for a user accessible directory that is guaranteed to be tmpfs. /tmp is not even guaranteed to be wiped between reboots, so it's out. /run is guaranteed to be tmpfs, and ...
jaskij's user avatar
  • 180
5 votes
1 answer
634 views

When exactly is ~/snap created?

I have a remote backup setup. This uses a dedicated ssh user. Let's call the user rsyncbak-ubuntu-vm I started testing this on Ubuntu. Inside the home directory of rsyncbak-ubuntu-vm, Ubuntu ...
sourcejedi's user avatar
  • 51.1k
0 votes
0 answers
8 views

How to reintegrate my users from a backup to a new system fresh installed?

I have had to reinstall my system - it is a Debian but my question addresses any distribution. I have disconnected the hard drive where my /homeis settled to avoid any risk when reinstalling the ...
lalebarde's user avatar
  • 265
0 votes
1 answer
28 views

is the default group "users" specific?

The group "users" comes with every Linux distribution. Does it have a specific role? Or default privileges attached to?
lalebarde's user avatar
  • 265
-1 votes
1 answer
67 views

Why/When to use passwd -d? [closed]

According with man passwd exists the following information: -d, --delete Delete a user's password (make it empty). This is a quick way to disable a password for an account. It will set the named ...
Manuel Jordan's user avatar
0 votes
0 answers
41 views

How to remove residual user and group fwupd-refresh after purging fwupd from Linux Mint 21.3?

I have removed fwupd from my system by running: sudo apt-get purge 'fwupd*' I am unsure why, but there seem to be some residual user & group named fwupd-refresh. $ id fwupd-refresh uid=128(fwupd-...
Vlastimil Burián's user avatar
0 votes
0 answers
32 views

How to get a Linux VM to pass MSAL SSO authentication?

I have a React app that uses the Microsoft Authentication Library (MSAL) to identify users. It works just fine on my Windows machine; however, for a variety of reasons, I'm trying to get a Linux VM ...
EJoshuaS - Stand with Ukraine's user avatar
0 votes
0 answers
40 views

What caused USER to have "root" as OWNER and GROUP instead of the user's name? How do I change it?

/home (machine 1) PERMISSION | OCTAL | OWNER GROUP NAME drwxr-xr-x | 755 | root root . drwxr-xr-x | 755 | root root .. drwxr-xr-x | ...
SystemTheory's user avatar
0 votes
1 answer
32 views

running as root but $USER returning regular user?

So I was going to run a shell script but it's not working since it needs to be run as root. Thing is I'm logged in as root using the su command. how is this possible? root@polo-E15301:/home/polo/...
guu1's user avatar
  • 3
0 votes
1 answer
40 views

Linux multi-server user access

Our organization has a private network of Linux servers. This network is air gapped from the internet and we have limited personal access to the network and servers. Each server has a standard user ...
ClancyTheCoder's user avatar
0 votes
0 answers
23 views

Custom home directory leads to permission error when logging in with "su -l"

When I create a user with a different home directory on a Linux system like this: # useradd "svcjohn" -U -r -m -d "/var/lib/svcjohn" I get an error like this: # su -l svcjohn ...
Ichigo Kurosaki's user avatar
0 votes
0 answers
29 views

Sending data from mugshot to linux

I'm new to linux. I'm trying to rebuild the mugshot app for myself. It sends data about the user: first name, last name, email, fax, initials and others. The first name and last name are written to /...
Сергей Галанский's user avatar
0 votes
1 answer
55 views

Debian 11: trouble adding an existing user to a group

I made a user in Debian 11 via the GUI.  But when I try to add the user to a group via the CLI, it says that the user does not exist.  The id command in terminal does not show the user in question, ...
Hunter Bentley's user avatar
0 votes
1 answer
74 views

How do I set up a login shell with arguments?

I would like to add a user whose sole purpose is provide a "dashboard" for my machine (laptop), without letting them doing anything else (whether it's any useful is debatable, but it's ...
404 Name Not Found's user avatar
1 vote
1 answer
49 views

Printing something specific to the user during login before password prompt

I would like to print something in the middle of a user login, related only to that user. In other words, this has to be after the user has typed in their username, but before they even start typing ...
Paul Grinberg's user avatar
0 votes
1 answer
60 views

SSHing to a CentOS server switches to a different user

I've started managing a CentOS 7 server for a new client that is managed via Plesk. I'm not familiar with either Centos or Plesk. If I SSH to the server like: ssh [email protected], immediately ...
Sherri's user avatar
  • 101
0 votes
0 answers
58 views

Is it possible to integrate Linux servers SSH with ADFS for authentication?

I'm having trouble managing users on 30 servers I have on AWS. From my research, I saw that it's possible to do this using FreeIPA and SSSD, but the communication is direct between the Linux servers ...
Fabio Pereira's user avatar
1 vote
1 answer
204 views

Assign capability to systemd service and specific user

I am working on an embedded system device which basically has root user. I have a systemd service call.service which works fine with root access. The service basically creates a few sockets and then ...
gst's user avatar
  • 141
-3 votes
1 answer
207 views

Is there a way to enforce 2FA for all users on the SSH server on the Unix PAM Subsystem?

Is there a way to enforce two-factor authentication (2FA) for all users on the SSH server on the Unix PAM Subsystem?
Arunabh's user avatar
  • 99
0 votes
1 answer
71 views

Linux Users and Groups

When I do cat /etc/passwd I see multiple users but when I type in ls -l /home I can see only two users in it. How to check the issue.
Aquig's user avatar
  • 1
1 vote
2 answers
277 views

Create new user with home directory inside another user's existing home directory -- both users must own the sub-directory

Here's my situation: I have a user storageUser with a home directory of /storage storageUser owns /storage with full (RWE) rights Within /storage I have a directory media I'd like to create a new ...
Omaro_IB's user avatar
  • 113
0 votes
0 answers
34 views

Error encountered when trying to login on remote system [duplicate]

When trying to log on remote system using ssh, I encounter the following error : Unable to negotiate with 172.15.239.54 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss How do I ...
Rails metasphloit's user avatar
1 vote
2 answers
139 views

Is it possible to setup a user while building a Debian package even when that user does not exist on the build system?

I have a package I like to build locally. Some of the files in the package are to be installed on a system where a given user is created first. Those files should be owned by that user. For example, ...
Alexis Wilke's user avatar
  • 2,929
4 votes
1 answer
492 views

What is the LDAP mechanism to resolve duplicated username on a LDAP client?

On a LDAP client, there are two users having the same username, say "abc". One is the local user with UID 1000, another is the LDAP user with UID 1001. If I run getent passwd 1000, the ...
zzzhhh's user avatar
  • 95
0 votes
0 answers
18 views

Difference between permissions 700 and 070 [duplicate]

in debain if a owner is not given access to a directory but the group which includes the owner has access to the directory will the owner still be able to access the directory? A scenario: If a user ...
Curious Developer's user avatar
0 votes
1 answer
85 views

User root while Group is root but Changing Ownership from /dev/ Ultimately

Okay...so I have used chown and chmod as directed by many tutorials to access some /dev/ files for peripherals. The chown and chmod does not make it past a reboot. This is okay. The issue I am seeing ...
For Ward's user avatar
1 vote
0 answers
24 views

What does -p argument do in this command "/bin/bash -p " [duplicate]

if we have the SETUID and SETGID set for the bash binary. -rwsr-sr-x 1 root root 108424 Mar 10 2020 /bin/bash and we execute the command: /bin/bash -p we will find ourselves escalated to they ...
M4raa's user avatar
  • 13
0 votes
0 answers
81 views

How can I get user's idle time of whole day?

How can we get the user's idle time, defined as the time during which the user hasn't struck the keyboard or even made a mouse movement in Ubuntu 22.04. It should display with the username, the user's ...
Mahesh Garole's user avatar
0 votes
1 answer
42 views

Users setup with misspelled name - CentOS 8

I have a user with a misspelled username on my CentOS 8 system which I thought I had corrected but I have noticed the username is showing up in the audit log incorrectly. The correct username is: ...
Ewan's user avatar
  • 1
0 votes
0 answers
75 views

How to sync user data across systems?

We have 3 family laptops and I'd like to sync the accounts between them. Since they are laptops and move around, I can't use an nfs client/server architecture. From what I (poorly) understand of NIS ...
dargaud's user avatar
  • 565
2 votes
1 answer
176 views

Problems with primary group (gid), secondary group and permissions

I hope my question is not repeated, as I have been searching the Internet for several days with different keywords and I can't find the solution to my problem with the permissions. I have a shared ...
Jokte's user avatar
  • 21
2 votes
1 answer
151 views

My username mentioned twice in who command

I noticed by chance today that I had 2 users running on my Linux system. I do not know much about Linux users but I ended up running the “w” command that gave the following output when Firefox is ...
ironfish's user avatar
  • 135
0 votes
1 answer
278 views

Make binary executable for all users

Let say I have flutter binary at ~/flutter/bin/flutter with execute permission for user,group and others. I want to make binary accessible or executable for all the users in system. Since the binary ...
Amal's user avatar
  • 1
0 votes
0 answers
13 views

enumerating user scopes/slices

I need to enumerate programaticaly all user scopes under a systemd instance. currently i'm doing systemctl --state running list-units user@* which gives me units such as [email protected] Then i use ...
gcb's user avatar
  • 428
0 votes
0 answers
87 views

Restart systemd service when new user created

I need to restart a systemd service (running as root) every time a new user is created. I saw that some systems have a way to make an adduser hook but this isn't an option in RHEL8. What is the best (...
ridderhoff's user avatar
0 votes
1 answer
111 views

how to get disk usage and compare it to print information in bash

I am writing a code that takes in an integer in megabytes and I am meant to loop over the users in my machine and echo any user's name whose their home directory usage exceed over that amount in ...
Yemannasuk's user avatar
1 vote
2 answers
433 views

How to effectively alias a user on linux

What's the best way to create a user alias in linux, such that 2 logins are, effectively, the same user? So, I could do (or something pretty close): sudo adduser primary_user sudo useradd -d /home/...
Christian Bongiorno's user avatar
0 votes
0 answers
130 views

User suddenly changed to nobody, and is restored when changing permission to a file

I was learning about git internals, doing basic commands, when suddenly I encountered this error: fatal: detected dubious ownership in repository at... I then noticed that the user is nobody. I have ...
ArziousYi's user avatar
0 votes
2 answers
88 views

Anyone know what these all these user sessions (see post) might be?

Any time I login to my laptop, including after freshly booting my laptop there are four user sessions already. Only the "who" command can see all four, the "w" command can only ...
natS's user avatar
  • 3
0 votes
2 answers
91 views

Letting a stranger in safely

I have setup a really tiny wireguard server in my home, with my public IP and all. I have used NAT to hopefully protect myself as much as possible, set strong passwords... All these things. A friend ...
Orsu's user avatar
  • 111
1 vote
0 answers
121 views

How to log into a Linux virtual machine when its root user is expired and reason being failed to change password

I created a Ubuntu 18.04.6 LTS VM on vSphere. Created a user, test. VM is a 1-year-old machine. Now when I am trying to log in ( through PuTTY), I can't. I checked the logs it says that the "...
Dhruv Bhatnagar's user avatar
0 votes
0 answers
77 views

How can I specify a gid range in a sudoers Runas_Alias specification?

How do I allow some_user to run some_command as users with group ids comprised between 2000 and 2999 in a sudoers file ? Is it possible to specify a range of gids instead of a list in a Runas_Spec ? ...
reyjul's user avatar
  • 1
1 vote
2 answers
162 views

Can two linux users share .ssh folder keys to connect to an SSH server

I have two linux users user1 - regular account with auth key stored in /home/user1/.ssh/ user2 - service account without home directory How can user2 access user1's keys to connect to the remote ...
try.aaam's user avatar
1 vote
2 answers
422 views

Proper way to give permissions to a program

At work there is a "system" (python) agent that needs to perform actions with higher level privileges (adding ip route, setup wifi profile, reading from serial devices), but also be able to ...
ffolkes's user avatar
  • 11
0 votes
0 answers
195 views

Difference between chage -I and passwd -i

I'm looking into ways to read and write expiry dates for temporary passwords (i.e.: If we grant users a temporary password and they don't log in and change the temporary password within N days, then ...
MrArsGravis's user avatar
0 votes
0 answers
193 views

Mount home partition after login

I am looking for a way to set up a Linux box where I would have a user's home folder reside on a separate encrypted password-protected partition (perhaps using LUKS? Not sure what the current best ...
Ruslan's user avatar
  • 103

1
2 3 4 5
32