Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [accounts]

This tag is for questions about managing user accounts, permissions, authentication, and related topics. It covers user creation, deletion, modification, password and group management, privileges, SSH, PAM, LDAP, etc. Ensure your question is specific to account management or authentication in Unix & Linux environments before using this tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
50 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
0 votes
1 answer
112 views

How could I use a different HOME directory at login

I'm using a server that is shared with about 7 other people. We each have our own user account, but they don't have permissions to access most of what we need, so they're essentially useless other ...
foxbeard's user avatar
0 votes
1 answer
61 views

What is the best way to manage multiple access using same user?

Scenario: We have a couple of Ubuntu servers, each with a single user. The user account has some specific software that bind to the host IP address and a specific port (we cannot change the port ...
Niloy Saha's user avatar
0 votes
2 answers
83 views

Can I let users create an account on their own?

I teach a programming course with over 40 students. I want them to upload their projects to a Linux web server that I rent. So I want each student to create a user account on the server. I do not want ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
206 views

Ubuntu does not remember my microsoft account

My computer (Ubuntu 22.04.1 LTS), does not remember my business Microsoft account and I need to Login and 2FA each time. Is there a way to remember my Microsoft account?
csandreas1's user avatar
0 votes
1 answer
37 views

Best practice for multiple Node applications on one server

I've read that it is the best practive to create seperate system accounts for each application, so in case of a security breach the attacker is isolated inside the specific account and cannot do any ...
CodingWolf's user avatar
0 votes
0 answers
338 views

echo $USER returns root, even under non-root user

My main user account (sebastian) ended up seriously crippled and I wanted to create a new user to look for differences, but: When logged in to tty as a new non-root user (e.g. guest), echo $USER ...
Sebastian's user avatar
  • 133
11 votes
6 answers
6k views

Completely lock user account on server, including ssh

I need to lock some user accounts, without messing with their HOME, if at all possible. Normal way would be usermod -L user but it seems to leave open ssh login with public key authentication (...
ZioByte's user avatar
  • 880
0 votes
1 answer
133 views

Offline setting account expiration

I need to set up an account inactivity expiration date (es. 1 year). As shown in some tutorials, a way of doing so is to use the usermod command. Due to some constraints, I need to do so offline, ...
EagleOne's user avatar
  • 413
1 vote
0 answers
451 views

PAM guru help to interpret system-auth password-auth RHEL 7

I have a RHEL 7.9 system which currently has identical system-auth and password-auth files located under /etc/pam.d/. That file is auth required pam_faillock.so preauth audit deny=3 ...
ron's user avatar
  • 6,797
1 vote
0 answers
610 views

passwd -S Alternate authentication scheme in use

in RHEL 7.9, I do passwd -S on all accounts in /etc/passwd as part of checking user accounts. # passwd -S <account name> root PS 1969-12-30 0 99999 7 -1 (Password set, SHA512 crypt.) bin LK ...
ron's user avatar
  • 6,797
0 votes
1 answer
4k views

What can a id_rsa.pub file be used for?

What can the id_rsa.pub file be used for? I am working in machine A. I need to have an account in machine B. Another user from my team asked me for my id_rsa.pub (from machine A I suppose) so that he ...
KansaiRobot's user avatar
0 votes
1 answer
340 views

Why is changing password on user account is taking time?

I have created a few accounts on my Linux Mint installation. A few of them have admin privileges. About 30 min ago I changed the password on one of the admin accounts using the Users Settings GUI. But ...
borejwaz's user avatar
0 votes
0 answers
554 views

Get the lock status of an account on Solaris

I do not have root privileges. I wish to get the lock status of a given account say mwss I'm on Sun Solaris uname -a SunOS myhost 5.11 11.4.27.82.1 sun4v sparc sun4v Below is the output from shadow ...
Ashar's user avatar
  • 501
0 votes
1 answer
689 views

sudo to another user, but unable to start X applications

This is on Ubuntu 20.04.1, in case it makes any difference. I open a terminal, sudo to another user, then try to run chromium and get the output pasted below. Every search I've done turns up ...
Joe's user avatar
  • 11
4 votes
0 answers
438 views

CPU time accounting: report cumulative total CPU time

There are about 15 users on a computation server running jobs via SSH, Jupyter, or the web version of RStudio. Every user has a standard Linux user account, each process is owned by the user also if ...
lumbric's user avatar
  • 399
-2 votes
1 answer
63 views

Logging SSH commands on Linux - is custom kernel the only way?

I've done some research and it looks like that the way linux keeps history is less about security and audit and more about helping the user. Even after making changes to instantly log the command and ...
Jason's user avatar
  • 1,744
1 vote
0 answers
47 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 ...
Student4K's user avatar
  • 119
0 votes
0 answers
45 views

Prevent deb installation from creating new accounts

We are configuring a variety of servers programmatically, and we periodically need to be able to migrate volumes from one server to another. After migrating a volume, we are currently executing chown ...
Brandon's user avatar
  • 101
0 votes
3 answers
639 views

Separate /home partitions for different users

I have a debian system with separate /root and /home partitions. I already have some user accounts in /home partition. I need another user account in that system. The problem is that I would like to ...
martinoidar's user avatar
-2 votes
1 answer
2k views

Why can usermod not modify newly created user? "User does not exist"

Please see the commands I have run trying to modify a user that was just created. # useradd temp # usermod -R /home/temp temp usermod: user 'temp' does not exist The above is odd, so I did a few ...
user393209's user avatar
2 votes
2 answers
3k views

How to get a user's account picture in Linux?

How can I get a user's login image or avatar or 'dp' in Linux? A lot of similar questions on SO provide answer for Windows,not for Linux. [Im on Debian 10, GNOME DE, but prefer a general solution if ...
J Arun Mani's user avatar
3 votes
1 answer
1k views

When I create an account from command line, I cannot login to the account using the login command

I want to create some accounts on a macOS system that don't have a home directory or an icon on the login page sudo dscl . -create /Users/hiddenuser sudo dscl . -create /Users/hiddenuser UserShell /...
user avatar
0 votes
0 answers
180 views

Remotely changing the password on Ubuntu system accounts

I've recently set up an SFTP server for a number of people and their projects. For security reasons, people were given system accounts so they have no SSH access (we don't want them to accidentally ...
DaveTheScientist's user avatar
0 votes
1 answer
70 views

Unix/Linux backup account that does not update LAST ACCESS files metadata

I'm actually wondering if on Unix/Linux systems, there is a equivalent of "Backup Operators" on Windows. On Windows, being member of this group allows to open files without updating their LAST ACCESS ...
Simon Favre's user avatar
0 votes
2 answers
2k views

What does the L returned from passwd --status mean

I was checking my password status and noticed that instead of NP or P there was a L returned so i checked the man pages and found it was a locked password could someone explain what this is to me?
Joe's user avatar
  • 11
1 vote
0 answers
83 views

I cannot delete files on IRIX 6.2

I started using IRIX 6.2 so I could do some Nintendo 64 Development for the IRIX community. WARNING: IT IS A VERY WEIRD SITUATION! Also, I am using root. The file manager GUI states that the files ...
rjhwinner03's user avatar
1 vote
0 answers
163 views

Debian 9 does not load login screen

My HP laptop fails to load the login screen after saying [FAILED] Failed to start Accounts Service There's an error concerning the partition of a disk that keeps showing up. BTRFS critical (...
Oussama Ben Ghorbel's user avatar
3 votes
1 answer
7k views

SSH connection "This account is currently not available"

I tried to connect at a SSH server in 3 different ways, but nothing works: using putty - after I enter my password the putty window automatically closed, and in the log file there is: "This account ...
user335152's user avatar
2 votes
1 answer
1k views

lightdm does not show users which have no shadow password

I have switched my virtual machine, to use a ldap server for authentication with sssd. I assumed with this setup I will not need to use local passwords anymore, as i can login with ldap authentication....
Mandragor's user avatar
  • 1,060
3 votes
2 answers
3k views

BASH: calculate number of days to account expiration

Objective: Output from Linux username, passwordlastchanged, passwordexpires in human readable format. I pulled user info from /etc/passwd and /etc/shadow for users with shell /bin/bash join -1 1 -2 ...
DavDav's user avatar
  • 519
3 votes
1 answer
4k views

How to keep password aging but disable password "inactive"?

I am using Red Hat Enterprise Linux 7.5 and have instances deployed in AWS. By default accounts are set to go "inactive" after 60 days also, which means an admin will have to unlock the account. I ...
Greg's user avatar
  • 187
0 votes
0 answers
40 views

Where, outside of $HOME if anywhere, might account specific configs be found?

I have a most bamboozling problem. I had a Mint 18 machine with Eclipse Neon. All worked fine. I upgraded to Mint 19 and Eclipse Photon. Suddenly Eclipse is unusable. The exact issue is ...
Bernd Wechner's user avatar
-1 votes
3 answers
2k views

How to create a user account from a text file input

Need to create a bash script to create a username from a file which contains below (username home directory full name) drs /home/drs Paranas Theruwalan My script: !#/bin/bash #call data from file ...
Suresh Silva's user avatar
7 votes
1 answer
62k views

reset failed login count / unlock aix/UNIX account

As system administrator it is necessary to lock / unlock users or to reset failed login count. let's look how we can perform lock / unlock users or to reset on UNIX/AIX
user avatar
-1 votes
3 answers
214 views

Locking user account in a specific way

I've been tasked with performing a lockdown on a user account (making it impossible to properly login-in to) in a very specific way. Im prohibited from: a) Altering his password (so passwd -l is out ...
Linuxuser1212's user avatar
2 votes
1 answer
3k views

Difference between usermod -L & passwd -l

From man passwd -l, --lock This option is used to lock the password of specified account and it is available to root only. The locking is performed by rendering the ...
tachomi's user avatar
  • 7,662
-1 votes
4 answers
2k views

How can I remove hundreds of users generated by a script?

I had previously created a bash script that created over 100 users using output from a password generator as usernames. So far, the closest solution I have come across is creating a list of users to ...
Knee Bacquen's user avatar
0 votes
2 answers
216 views

Is there a reliable way to make several user accounts behave as root, except sudo?

I and a friend are administrating a fair number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the ...
00prometheus's user avatar
2 votes
2 answers
2k views

Are there any gotchas with granting a user root privileges by making them UID=0 GID=0?

I and a friend are administrating a number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the only ...
00prometheus's user avatar
1 vote
1 answer
598 views

Is there a way to set each user with its own language?

I use a fresh Mageia 6 with gnome-shell and 64bit. I have two accounts (or users), is there a way to set each account with its own language for example my account is in English and the other account ...
zarqos.os's user avatar
  • 111
1 vote
2 answers
1k views

How can I make it so that all new users created in the future will have a specific file copied? [duplicate]

I have a file (a document or text file to be precise) that I would like to be copied for every new user I create in the future. Is this possible? For example If I were to create a new user "test", my ...
Nagarjun Prasad's user avatar
0 votes
2 answers
160 views

1 User. 2 Acounts, 2 Passwords

As someone who hates passwords with a passion, why do I have to create 1 password that never gets used and gives no more capabilities than my user password? I find I end up using sudo often. (Mostly ...
Angeldude's user avatar
0 votes
1 answer
2k views

Cannot write after granting rwx permissions to group using an ACL

I have a user bob and he is a member of the group developers. I want all developers to be able to read, write and execute on the directory /home/testing and all sub-directories. The directory /home/...
Elliot B.'s user avatar
  • 203
4 votes
1 answer
2k views

Best practice for managing access on a shared account?

Our company has a web server for dev and each of our developers has a user account on it. The server also has an account for the user 'app'. The user 'app' does not belong to a single person --- it's ...
Elliot B.'s user avatar
  • 203
2 votes
1 answer
11k views

New user cannot create files in its home directory

I created a new user golden in linux by running adduser command. After that I am trying to generate ssh keys for that new user and every time I am getting permission denied error: golden@machineA:~$ ...
user5447339's user avatar
2 votes
2 answers
717 views

How are daemons run with a user account with an invalid shell?

I've been Googling all over trying to find an answer to this, and trying to mentally parse initialization scripts to find where it's done, to no avail. I just did a ps and pulled a random example. I ...
Kefka's user avatar
  • 477
1 vote
0 answers
787 views

Disable samba home directories

I've been asked to determine the absolute minimum attributes for Samba accounts on AIX. For instance, setting the local account shell to /bin/false in order to prevent shell access. That's feasible. I ...
theillien's user avatar
  • 1,308
0 votes
2 answers
1k views

How to set UIDs and GIDs during install of Debian?

During installation of Debian the default initial UID is 1000 and GID is 1000. When creating a user account during install, is there a way to specify their specific values, for example 3197?
user212134's user avatar
2 votes
1 answer
244 views

expire all the new and manually reset passwords

I need to expire all the new and manually reset passwords in a server. When a new user logs into the server the first time it should force him to change the password. My first guess is that I have to ...
user3105533's user avatar