Questions tagged [accounts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
6 answers
2k 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 (...
user avatar
  • 738
0 votes
1 answer
20 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, ...
user avatar
  • 351
1 vote
0 answers
93 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 ...
user avatar
  • 4,211
1 vote
0 answers
143 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 ...
user avatar
  • 4,211
0 votes
1 answer
283 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 ...
user avatar
0 votes
1 answer
61 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
  • 307
0 votes
1 answer
328 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 ...
user avatar
  • 11
2 votes
0 answers
162 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 ...
user avatar
  • 219
-2 votes
1 answer
54 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 ...
user avatar
  • 1,682
1 vote
0 answers
18 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 ...
user avatar
  • 121
0 votes
0 answers
32 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 ...
user avatar
  • 101
0 votes
3 answers
234 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 ...
user avatar
-2 votes
1 answer
1k 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 ...
user avatar
1 vote
2 answers
523 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 ...
user avatar
3 votes
1 answer
851 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
107 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 ...
user avatar
0 votes
1 answer
54 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 ...
user avatar
0 votes
2 answers
718 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?
user avatar
  • 11
1 vote
0 answers
66 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 ...
user avatar
1 vote
0 answers
111 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 (...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
2 votes
1 answer
970 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....
user avatar
  • 990
3 votes
2 answers
2k 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 ...
user avatar
  • 467
3 votes
1 answer
3k 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 ...
user avatar
  • 177
0 votes
0 answers
37 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 ...
user avatar
0 votes
3 answers
1k 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 ...
user avatar
5 votes
2 answers
42k 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
149 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 6,602
-1 votes
4 answers
979 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 ...
user avatar
0 votes
2 answers
183 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
139 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 ...
user avatar
  • 111
1 vote
2 answers
525 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 ...
user avatar
0 votes
2 answers
123 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 ...
user avatar
0 votes
1 answer
1k 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/...
user avatar
  • 183
4 votes
1 answer
1k 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 ...
user avatar
  • 183
2 votes
1 answer
9k 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:~$ ...
user avatar
2 votes
2 answers
540 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 ...
user avatar
  • 445
1 vote
0 answers
535 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 ...
user avatar
  • 1,208
0 votes
2 answers
635 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?
user avatar
2 votes
1 answer
228 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 ...
user avatar
2 votes
2 answers
1k views

How do I display the owner, groups and permissions for a user in bash?

Is there a specific command that will display the owner, group, and permissions for a user or will I need to run more than one command? I just created the user "guest" in the /home/ directory and ...
user avatar
  • 21
1 vote
1 answer
4k views

What is the Solaris equivalent of chage -d?

I have been looking through the Solaris man pages: usermod, passwd and haven't had much luck. I'm trying to find the equivalent of chage -d that we have used on Linux in the past. This let's you set ...
user avatar
  • 19
1 vote
1 answer
1k views

reset $SHELL to it's default value [duplicate]

I read the answers on those questions (this && this), neither of them work for me! % uname --operating-system --kernel-name --kernel-version --kernel-release Linux 4.9.6-200.fc25.x86_64 #1 ...
user avatar
  • 1,104
2 votes
1 answer
10k views

Sudo access to another user's account

what will be the most efficient way for multiple users (around 15) to be able to sudo to another user's account to run privileged commands? so to make it clear, I have a main user called mainaccount ...
user avatar
0 votes
1 answer
817 views

Get users from a group

I want to get the users of a group separately for each existing group in /etc/group I have the following script: #! /bin/bash while IFS=: read user pass uid users do echo -e "$full :\n\ Pseudo :...
user avatar
  • 75
2 votes
2 answers
856 views

How do I find out who added a user?

Assuming that someone used sudo to add a user, is there an easy way to determine who it was?
user avatar
  • 3,705
2 votes
1 answer
248 views

Disable accounts and print info message on attempted login

Other people log into my Raspberry Pi via SSH. It runs Ubuntu Mate 16.04 with OpenSSH. I want to disable some of the accounts but not delete them. Now, I could just delete the passwords (which ...
user avatar
  • 2,975