Questions tagged [users]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
9 views

Figuring out which user is best to start pm2

I'm about to deploy a highly secure production server, which is running an nginx reverse proxy, which points to the backend server on nodeJS. When a user starts the server by typing in the "pm2 ...
user avatar
0 votes
0 answers
8 views

Add user from LDAP db to local linux group

My user to login to RHEL server is: e5614 I do not see that user in /etc/passwd. But I do see it with getent command getent passwd | grep e5614 e5614:x:613869764:10104:JohnJohn:/home/e5614:/bin/bash ...
user avatar
  • 178
0 votes
1 answer
38 views

List user and return non zero exit code if the user not in the system

I need to find a user, and the command should exit with a non-zero return code if the user is not in the system. We can do this in bash, but I need this as a line command, not a bash script. Is that ...
user avatar
  • 183
0 votes
2 answers
31 views

Tilde not returning home directory

After sudo command to change user, Tilde (~) not returning current user's home directory but returning previous login user's home directory. I needed to expand with echo ~USERNAME but I need to make ...
user avatar
0 votes
3 answers
42 views

Which command should I use as root to spawn a process with overridden numeric uid/gid/groups?

Which command (available in distro repositories) should I use start a shell with specified numeric uid, gid and groups? Typically su is used to change from root to other user, but it tries to look up ...
user avatar
  • 5,126
1 vote
0 answers
36 views

Recent LDAP user list missing in greeter using lightdm

I am switching our desktop manager from xfce to mate on centos 7.4. This means that we are switching from gdm to lightdm. For some reasons, it is impossible for our recent user authenticated via a ...
user avatar
0 votes
1 answer
18 views

who command: What do the - + ? symbols represent with the -T option?

Through the man who appears the following for the -T option -T, -w, --mesg add user's message status as +, - or ? According with some tutorials, if is executed who -T should appears these ...
user avatar
0 votes
0 answers
22 views

who command: What does the comment header exactly represent?

When either the who -a -H or who -u -H commands are executed - and having many users logged through tty and ssh - the command works as expected. I did realise the COMMENT header appears but always ...
user avatar
0 votes
1 answer
37 views

What exactly happens to create a user by "useradd -ms `which false`"?

I'm watching a video where the author says we can use this command in order to keep the user from logging in. useradd -ms `which false` u2 Below is my testing. [root@192 ~]# tree -dL 1 /home /home ├──...
user avatar
0 votes
1 answer
22 views

How to create dynamically and automatically a user at login if it does not exist?

Is it possible to create dynamically a user at login if it does not exist, and register the password (s)he typed to log-in ? ...And execute a script before the DM launches to setup the home ? (I mean ...
user avatar
  • 119
0 votes
0 answers
26 views

How can I allow multiple users or groups the w+x access to a certain directory? [duplicate]

I'm aware of how to change the owner or group of a directory. However, I want to know that how I can allow multiple groups or users to have w+x access to a certain directory without chaning the actual ...
user avatar
  • 1
1 vote
1 answer
28 views

Make newly created files in a directory automatically inherit the user and group id of the directory

In Linux, if I have a directory belonging to a user user and a group group, how is it possible to make it so that each time I create or move a file in the directory, this file automatically acquires ...
user avatar
  • 11
0 votes
0 answers
15 views

Restrict users switching from one to other user

I have 5 users in my linux machine (user1,user2,user3,user4,user5) and my requirement is each user except user5. Remaining 4 users able to switch only user5. But they don't want to switch any other ...
user avatar
1 vote
2 answers
32 views

Running an script AS USER after resuming from suspend

Every time my computer resumes from a suspend (which I do quite often) the audio gets a bit messed up. I use the EasyEffects EQ on my computer and it runs on startup to apply the EQ. When my computer ...
user avatar
0 votes
1 answer
46 views

Slackware and postgres

I want to install postgres and psql via a Slackbuild and I did so. After installing it I tried running the command as suggested in the readme of the Slackbuild but I get an error upon running it as ...
user avatar
0 votes
1 answer
23 views

Changed default user and now colors don't work Ubuntu

Working in Ubuntu, windows terminal, WSL, using Linux: So I recently asked two questions: How to bring the colors back to the terminal for a new user How to change the default user I solved the ...
user avatar
  • 11
0 votes
0 answers
14 views

systemd unit fails to start when running journalctl system commands

System: RHEL 8.4 systemd version 239 Problem: I need to redirect journalctl system output as a user. My user is a system user (uid < 1000), and must be a system user. I also must use systemd --...
user avatar
  • 285
1 vote
1 answer
21 views

Can deleted groups still function through primary groups in Linux?

With an analyzing program I built, I ran into a bug where a user had a primary group set to a since then deleted group (no longer in the /etc/group file). To scope the impact I ran some tests and run ...
user avatar
1 vote
1 answer
80 views

journalctl --user -u myservice "No journal files were found", for a specific user

Problem: systemd user units journalctl output display "No journal files were found." This only happens for the one sss user I am testing with, all local users seem to work fine. EDIT: sss ...
user avatar
  • 285
2 votes
1 answer
128 views

How to allow non root users to access root directories?

I want to secure my linux server by not permitting the root user to login. For this I've created another user with: useradd username mkdir /home/username/ mkdir /home/username/.ssh chmod 700 /home/...
user avatar
  • 123
0 votes
0 answers
32 views

How to set cap_sys_admin permission to user in rhel8.5

How to set cap_sys_admin permission to user in RHEL 8 I don't see any capabilities or capabilities.conf file in /etc/security/ I can two libcap packages are installed libcap-2.26-5* libcap-ng-0.7
user avatar
0 votes
1 answer
59 views

How do I login as the root user?

I installed Debian a day ago and I'm very new to Linux please forgive me if I miss something obvious but: whenever I use sudo command it asks me for the current user password but the current user ...
user avatar
2 votes
1 answer
84 views

How to set maximum number of users in Linux?

For example, let's say that I want a maximum of 3 users. How can I make sure that no more than 3 users can be created?
user avatar
  • 261
0 votes
1 answer
66 views

debian (?) - create new user based off of an existing one (copying configs, apps, etc)

What I want to achieve: Use an established user to create multiple new users each of which with identical starting set ups, same applications (e.g. Slack), same configurations (e.g. conda installed ...
user avatar
  • 173
0 votes
0 answers
38 views

Create a new user in linux that does not have access to old user's applications

I am using Manjaro, I have a admin account with virt-manager installed to it. But I want to make some modifications to virt-manager package and build it again. I want to do this in a new account, ...
user avatar
  • 1
0 votes
1 answer
33 views

Same user after switch user command (su - mysql --> whoami 'old_user'), why?

I am trying to switch the user in my shell with su - [user], but the user seems to remain the old one: # this works pretty well bodo@bodo-work:~$ sudo -u mysql whoami [sudo] password for bodo: mysql ...
user avatar
  • 199
1 vote
3 answers
78 views

Script to CHOWN all the files in a dir but skip a specific dir inside

so i have this startup script i run after re OSing my server: Installs drivers Mounts Zpool Adds users and smb users and SMB shares. The only things that survives the new OS is my Zpool of which ...
user avatar
1 vote
1 answer
165 views

How to verify whether a user has a home directory or password?

Where can I find details on how a user was created. And what is the current status of a user. For example, adduser command can be run with --no-create-home, --disabled-password, --home DIR etc. Is ...
user avatar
  • 1,201
0 votes
1 answer
38 views

users command does not show recently added users

I have created few users: sudo useradd bart sudo useradd marge sudo useradd lisa sudo useradd maggie These users now exist $ awk -F: '{ print $1}' /etc/passwd blueray bart marge lisa maggie However ...
user avatar
  • 1,201
1 vote
0 answers
44 views

PASSWORD - Password change log

Is there any way to check all password change logs for one specific user? I'm using macOS and since its based on Unix, I thought that this could be the place to post this question. Someone changed my ...
user avatar
2 votes
0 answers
85 views

Should Debian's backup account be used?

Linux distributions contain several system user accounts such as daemon, bin, sys, etc. Debian includes an account for backup. Is it alright to actually use this account? That is, give the account ...
user avatar
  • 196
0 votes
1 answer
64 views

Is there any file/directory permission effect if change uid or gid on Linux?

If group and user's settings are group name: group1 gid: 2000 user name: user1 uid: 2000 Some directory's permission is Directory: /application Owner: user1 Group: group1 When change the gid and ...
user avatar
  • 103
0 votes
1 answer
10 views

Mounted Linux OS Drive - Read/Write

I have a Linux OS drive mounted. I know the password (and username, user ID) for the root account and admin account. How can I mount it or access the files without booting into that operating system? ...
user avatar
0 votes
0 answers
74 views

I Suddenly Lost My Regular User for Arch Linux

I suddenly lost my regular user for Arch Linux I booted my laptop and booted into Arch with the GNOME desktop environment It asked for a username which was weird because it has never did this before, ...
user avatar
-2 votes
2 answers
37 views

I Know this prints out ip and username but could somebody break this down for me, very simply, thanks! unix

I know this prints out IP and username but could somebody break this down for me, very simply, thanks! unix w -hs|awk '{printf "%s\t%s\n",$1,$3}'
user avatar
  • 1
0 votes
0 answers
214 views

How to change (not create) user name in Debian (Raspberry PI)

I understand this is a newb question however I am still learning skills in Linux systems. To secure a SSH connection on my Raspberry Pi I have decided that it's wise to change the default "pi&...
user avatar
0 votes
0 answers
44 views

Unable to login after changing the encryption passphrase

When I installed Linux mint 20, it asked me during the installation if I want to encrypt my home directory. I clicked on yes I want. Later. when the installation has completed, I noticed that it did ...
user avatar
  • 159
0 votes
1 answer
89 views

Linux, switch file permissions from root to normal user

The file made after running Alphafold2 database is saved with root authority. As a normal user without sudo authority, how can I switch a made file from root to my own? and what if I have root access? ...
user avatar
0 votes
0 answers
51 views

Allow Non-Root User to Mount to an Immutable Folder

After making a folder immutable, as root, my regular user account has always been able to mount a remote file system, using sshfs, to that immutable folder without sudo privilege escalation. Today ...
user avatar
  • 4,313
1 vote
1 answer
97 views

Does usermod and chage lock the accounts in a similar way?

Is there any difference in using the two commands if you want to lock and expire the account? or does one of them allow for login through SSH? usermod -L -e 0 user1 chage -E 0 user1
user avatar
  • 125
1 vote
1 answer
52 views

Where is the user "shadows+" (shadowsocks?) defined?

I am running the ss-server proxy (from the shadowsocks-libev package) on Ubuntu. I believe ss-server is run by systemd. ss-server is running as user shadows+, as can be seen below: $ ps u -C ss-...
user avatar
  • 1,226
-3 votes
1 answer
46 views

Creating users with modified home directory and mask [closed]

I need to create 6 new users (one, two, three, four, five and six) with passwords, two of these (five and six) must have their personal directories modified (using skelo or configuration files, I don'...
user avatar
  • 550
0 votes
1 answer
20 views

Have a folder have many group based permissions

On a multi-user system, lets say I have the following groups: "writers" "readers" "reviewers" In the folder /Documents writers should be able to write files, but not ...
user avatar
  • 53
0 votes
1 answer
116 views

local user on samba server machine using it's primary group even though force group is used

So I'm trying to set up a password protected samba share with permissions. And I believe I have set everything up decently correctly and the samba share works as intended. But I'm having a slight ...
user avatar
0 votes
1 answer
31 views

Can I require per-user AuthenticationMethods when switching from a non-root user to a root user?

I currently SSH into a root user from another machine with an SSH key & 2FA, so I set AuthenticationMethods publickey,keyboard-interactive. If possible, I would like to be able to SSH into a non-...
user avatar
1 vote
0 answers
46 views

How to force user to change VNC password without leaving him any way to elude the rule?

I need to find a way to force all users to periodically change their VNC display password. I do the same thing for the users' linux credentials using chage command, and i noticed that when the user ...
user avatar
0 votes
1 answer
48 views

How to protect your files from other users?

Fooson and Barson each have a user account on a machine. None of them are administrators. Fooson wants to protect their homefolder so that Barson cannot access the files there. No hard drive ...
user avatar
  • 486
1 vote
0 answers
10 views

How can I manage specific setting profiles for different physical locations (office vs home)?

On my KDE Neon laptop, I would like to have several profiles which encompass the settings for: network (Wifi vs LAN) display (including external displays via xrandr or display manager) audio outputs (...
user avatar
1 vote
2 answers
1k views

Run systemctl --user commands as root

I need root to be able to manage systemctl --user units. Right now I have user1 set up with systemd user units. If the user logs in directly via terminal, GUI, or SSH, they are able to to run all ...
user avatar
  • 285
0 votes
0 answers
43 views

Am I a member of the "users" group or not? [duplicate]

Nobody is in the "users" group: $ getent group users users:x:100: $ getent passwd "$USER" username:x:1000:100::/home/username:/run/current-system/sw/bin/bash $ groupmems -g users --...
user avatar
  • 46.9k

1
2 3 4 5
29