Questions tagged [users]

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

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

How can I use WSL Ubuntu without be logged?

I have been experimenting with WSL Ubuntu terminal and I notice that w and who commands don't display any user, apparently I'm not logged but if I assure typing whoami and id actually display my user ...
1
vote
0answers
23 views

How to make remote (ssh) user as local user?

How one can differentiate between remote user and local user, i.e how any application will find out that logged in user is the remote one and not local user? I want to run an application on aws, but ...
0
votes
1answer
27 views

Link samba valid users to text file

In my samba config - I would like it to link "valid users" in the example share below to the example text file: security = user [example share] path = /example/path/here read only = no ...
0
votes
1answer
29 views

What exactly is a 'logged in user'?

$ users vorac # Non-login shell, /root/.profile not sourced. $ su $ users vorac # Login shell, /root/.profile sourced. $ su - $ users vorac So we launch a login shell as another user in the last ...
0
votes
2answers
41 views

username is currently used by process

I am trying to change the home directory of a user. using usermod ravishshankar --home /var/www/domainname/public_html/ but get usermod: user username is currently used by process 1378 I try to kill ...
1
vote
0answers
23 views

AD Authentication for Linux VMs

If you have 100's of Linux VM's is it possible to get them all authenticating with an AD LDAP, but more importantly there is no local id needed in every single /etc/passwd and /etc/group of the 100 VM'...
0
votes
0answers
15 views

Printing cert.pub for all the users

I want to print a copy of system-generated users with certificates providing administrative access. I can print the single certificate sudo ssh-keygen -L -f directory But I am trying to find a way to ...
1
vote
0answers
15 views

RAM, CPU, Disk limiter per user

I recently bought a VPS server which is running ubuntu-16.04-x86_64. This VPS has 4 GB of RAM, 2 threads i7-6700K 4.00 GHz processor and 30 GB SSD. Is there some way to easily reduce RAM usage, disk ...
1
vote
1answer
27 views

Cannot login as a regular user on FreeBSD

This user is a unpriviledged SFTP access user on our server, it was used during the stay-home order earlier this year due to Covid19, and I'm using it today to prepare some work for use tomorrow. ...
0
votes
1answer
30 views

No username after changing UID

[Ubuntu 16.04.7, ISPConfig, Jailkit] I needed to change the UID of a newly created (jailed) user (via ISPConfig's Add Shell User function) to disambiguate from other users on the same virtual host. ...
0
votes
0answers
17 views

id/groups inconsistent with members/getent

I was just suffering from the situation that one LDAP user john lost its group memberships. Things were working for years and it happened out of a sudden. No configuration was changed. This is what I ...
0
votes
1answer
16 views

Setting permissions on files and folder - is folder perms inheritance always implicit?

Objective: Creating a folder on the root, chown to group and add users to group - but users get too wide permissions! Consider the following: # as root # we need a user group groupadd team1 # we ...
0
votes
0answers
14 views

yarn -v , nodejs -v and other command don't output nothing : 0 line

I have a dedicates serveur with ubuntu 14 and plesk on it (not my choice). I could launch without problem from my admin user: cmeneux@sd-111960:~$ yarn -v 1.22.5 cmeneux@sd-111960:~$ npm -v 6.14.8 ...
0
votes
1answer
27 views

How to run a GUI software as a different user (Debian 10)?

In Debian 10, how do I run software with a graphical user interface as a different user? Trying to separate let's say private data and work data, but occasionally need to run software from the other ...
0
votes
1answer
33 views

Is it possible to make a user that can only log in using su?

I want to make a user that can only be accessed using su. I can see in the login.conf man page there are different authentication types, and one of the example types is su, but I am unable to discover ...
0
votes
2answers
56 views

How can I find out if the current user is in a specific group?

If I type groups I get a list a back, $> groups ecarroll cdrom floppy audio dip video plugdev netdev bluetooth docker How can I find out if the logged in user is in a specific group?
0
votes
1answer
35 views

Newbie Question on Permissions

I am really new to Linux and having just brought a Raspberry Pi I decided to run a simple apache server. I found a simple tutorial on how to install and setup the apache server which is what I have ...
0
votes
2answers
79 views

How to run gui app as another user on wayland

With Xorg, I could just do xhost +si:localuser:foxy to run GUI app as foxy user. But can I do this on Wayland ? I tried following:- chmod o+rw /run/user/1000/wayland-0 but It still gives Permission ...
0
votes
0answers
13 views

How to enable switch user rights in RHEL Linux

I am not an UNIX/Linux administrator. I got a requirement and I am trying to find a solution for the same. In my team, I got few developers who got their employee id. We want to allow the ...
3
votes
2answers
119 views

How can I list all currently logged-in users?

I have a system I'm managing (running RHEL 8) that has multiple users in our small office, who log into it in various ways -- locally at the console, remotely via SSH and NoMachine Workstation. When I ...
7
votes
2answers
774 views

Creating a new user breaking existing permissions

I have a machine running Ubuntu with a SSH config file in ~/.ssh/config with the following permissions (default when creating a new file) -rw-rw-r-- 1 dev dev 75 Oct 26 20:13 config After creating ...
0
votes
1answer
44 views

Ubuntu preseed file: setting up multiple user accounts?

As mentioned in this link: https://help.ubuntu.com/lts/installation-guide/s390x/apbs04.html, it is possible to create a "...password for a first regular user's account" during an unattended ...
0
votes
1answer
48 views

Cannot add user with useradd command

I am on CentOS 8.2 and I'm unable to add an user using the useradd command [root@localhost ~]# useradd -m /home/alice -c "ALICE ADMIN" -s /usr/bin/bash alice Usage: useradd [options] LOGIN ...
1
vote
2answers
87 views

mount and fstab: why can they be configured to allow users to mount but not umount?

I noticed recently that is possible to allow normal user/s to mount a device through fstab, but apparently in any case umount can only be done by root. Even the man page of mount only talks about ...
0
votes
1answer
27 views

Are there any alternatives to `chntpw`?

chntpw is a Linux program that can be used to change user passwords etc. on a Windows installation. It claims that it "Should handle both 32 and 64 bit windows and all version from NT3.x to Win8....
1
vote
1answer
35 views

Getting a warning I don't understand when trying to useradd with m & d options

I'm trying to add a new user, "abc", with a home directory of "/test/abc", for him, using the useradd command on an Ubuntu machine as follows: useradd abc -md /test/abc and ...
0
votes
2answers
101 views

Centos 8 user administration GUI

Is there a more detailed user admin GUI than the default Gnome/settings app? "Settings" only shows desktop users, and no groups. Or, it's possible to call it from the command line as root or ...
8
votes
1answer
914 views

How many users can be member of a group in Linux Debian 10 x64?

I know Linux has some limitations for the number of groups a user can be part of. I found out that it is 16 groups for each user, and depends on the Linux kernel. However, is there any restriction for ...
2
votes
2answers
191 views

Linux shell script - help in writing script

I am trying to write a shell script that shows all the logged-in users at this moment and if each user has a specific file in one directory. I write a script, but I'm not getting any result! Why is ...
1
vote
1answer
74 views

How to enable xhost access from second user when display:0 is on first user?

Here is my situation: I have two (sudo) users on a machine: userA (created first on the machine. This is also where display :0 is attached) userB (created later) Being on userA I do: export DISPLAY=:...
0
votes
0answers
29 views

order in passwd and shadow file

In order to implement some parser and eventually some tool to write to /etc/passwd and /etc/shadow on linux, I'd like to know if I can assume that the users in the files are guaranteed/or mostly in ...
1
vote
1answer
39 views

How to organize SSH users and setup them?

I want all users to use your public/private key to any kind access to my server. Into SSH configurations, I will setup 3 groups: sshaccess: Users can use shell, SFTP and tunnels; sftpaccess: Users ...
0
votes
1answer
21 views

SUSE LINUX 11 - Being Able To Collect User Information (Audit)

I added the following lines to the /etc/audit/audit.rules file and restarted the machine: -w /etc/group -p wa -k identity -w /etc/passwd -p wa -k identity -w /etc/gshadow -p wa -k identity -w /etc/...
0
votes
2answers
41 views

Is there a way to create a “superadmin”, i.e. a root user which can't be removed or whose permissions can't be changed by other root users?

Let's say a Unix system has two root users. Is it possible to prevent one of these root users from removing this user and to protect the ssh key access removal? The goal is to ensure if a user is ...
0
votes
0answers
30 views

SSH ChrootDirectory to a shareable folder

I'm working with the following structure. I have a group to company and users associated with this company. I did as following: Create the group company; Create the users and added this group to ...
0
votes
1answer
20 views

How to restrict a local user to a jail directory in linux?

I have searched on google for restrict a user to a specific directory but mostly appeared about ssh user, ftp user and etc that not local user. How do we do that for local user?
1
vote
1answer
456 views

PHP-FPM creating files as root when configured as www-data

In a multiple-container Docker application deployed with docker-compose I have a container built from alpine running PHP-FPM. That container is used both for providing PHP to the Nginx container, but ...
0
votes
0answers
17 views

Unable to add myself to audio group [duplicate]

I tried $ whoami dims $ groups dims adm cdrom sudo dip plugdev sambashare lpadmin lxd $ sudo usermod -a -G audio dims $ groups dims adm cdrom sudo dip plugdev sambashare lpadmin lxd and I am still ...
0
votes
1answer
90 views

bash: Use adduser without questions for Full Name, Room Number, etc

I want to use adduser in the Bash script, and I want it to only ask for new password, not for Full Name, Room Number, Work Phone, Home Phone, Other, that it asks. Is there are way to do it?
1
vote
1answer
36 views

Linux: Lookup for an VNC Server that feels like RDP

I'm running a linux server somewhere in the internet. The linux server didn't have a display or keyboard attached. I want to use it as always online linux terminal server. I after some testing, xrdp ...
0
votes
1answer
814 views

How to rename a user account in Kali Linux (Debian) and keep all settings

I'm trying to rename the standard user account "kali" in my Kali linux installation. I've tried two different ways. First I used the root account to rename the user account and change the ...
1
vote
0answers
43 views

How to mount a filesystem in such a way that a specific user has full read access to it?

I want to perform automatic backups of a specific folder, F, in my home directory. To prevent malicious software from removing backups in the repository, however, I have created another user whose ...
-1
votes
1answer
54 views

What is the point of a system user?

Ok so when you look at the system user the point of the system user is to run services with minimal permissions, and to have a user that doesn't have a password or ssh. The issue I have with this is ...
1
vote
1answer
53 views

Terminals opening in root directory rather than $HOME

I recently moved my home directory to a different disk and now have it mounted on /home - which seems to have worked. However one puzzling thing is any terminal emulator I open (regardless of program, ...
0
votes
1answer
21 views

How can I give an access user01 to only reset password for user02 in CentOS 7?

I am trying to do it via visudo but I have no idea what I should type there. Any hint? At the beginning I tried to give him full root access to test: root ALL=(ALL) ALL user01 ALL=(ALL) ...
2
votes
0answers
17 views

Script configuration issues

My purpose is to allow user A to run a specific script owned by user B but with user B’s profile loaded. This is on a Solaris maachine. I have users A and B, I set this line: in the sudoers file, so ...
1
vote
1answer
46 views

By creating a new user, does it have read and write permission to its own home directory?

I am totally new to the Linux world. If I create a new user, does it have read and write permission to its own home directory by default? Logically, it should, but I'm not sure.
1
vote
0answers
16 views

Backing up UNIX(Linux)-account data

I am experimenting with (main)UNIX users and groups configuration on my system (how many, which names they have, passwords, etc.) in Linux. Would it be possible to create a simple backup of the ...
0
votes
0answers
26 views

Add a user to a not existing group having only gid

I am trying to solve an issue with docker volumes permissions. Here is a solution which describes how to solve it efficiently. The last steps: RUN addgroup --gid 1024 mygroup RUN adduser --disabled-...
-6
votes
3answers
613 views

Trying to change kali username, user is currently used by process

On a VMware Workstation Player VM, I have been trying to change my default user account name "kali". The command I tried was usermod -l newname kali. But it gives me the error usermod: user ...

1
2 3 4 5
28