Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [accounts]

The tag has no usage guidance.

0
votes
1answer
223 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 ...
2
votes
1answer
152 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....
3
votes
2answers
489 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 ...
2
votes
1answer
86 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 ...
0
votes
0answers
34 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 ...
0
votes
3answers
206 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 ...
0
votes
1answer
3k 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
-1
votes
3answers
47 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 ...
2
votes
1answer
489 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 ...
0
votes
0answers
34 views

Root account confused with user account [duplicate]

At first, I created a user account with root account in this way: root@XXX.XXX.XXX.XXX:~# useradd user9 But I wanted that account to have root privileges, so I removed it and re-created it: root@...
0
votes
0answers
28 views

Using unix accounts for nginx password protected directory

So I have a web-server running nginx on Debian 9. I have a private directory and my .htpasswd file configured with some usernames and passwords, but I'd like to use the unix accounts on the server ...
-2
votes
4answers
153 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 ...
0
votes
2answers
121 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 ...
2
votes
2answers
186 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 ...
0
votes
1answer
45 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 ...
1
vote
2answers
38 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 ...
0
votes
2answers
79 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 ...
0
votes
1answer
399 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/...
4
votes
1answer
374 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 ...
1
vote
1answer
2k 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:~$ ...
3
votes
2answers
113 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 ...
1
vote
0answers
219 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 ...
0
votes
1answer
106 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?
3
votes
1answer
122 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 ...
2
votes
2answers
453 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 ...
-1
votes
1answer
1k 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 ...
1
vote
1answer
645 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 ...
1
vote
1answer
6k 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 ...
0
votes
1answer
384 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 :...
3
votes
2answers
88 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?
3
votes
1answer
62 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 ...
0
votes
1answer
293 views

How to generate shadow file for specifically Linux

Can i generate shadow file for linux system whith known password? Why I need this? These file copy in my initramfs system(when kernel build) and when i boot it on my odroid board it ask login and ...
1
vote
1answer
53 views

Recover user database from home directory UID's

I asked a question previously about recovering a RAID 1 partition where the UUID's of the member partitions had all been zeroed. Having received no response in that thread, I'm now forced to reinstall ...
2
votes
2answers
2k views

Why can't `su` be used to switch to users with empty password?

Create a new account called test: $ sudo useradd test test doesn't have a password right now. So $ su test doesn't work. If you try, you're asked for test's password. It doesn't have one. That's ...
9
votes
4answers
43k views

What is the difference between user and service account?

I would like to know difference between user and service account. I know that e.g. Jenkins installed to ubuntu is not a user, but service account. What is use of service account? When we need them? ...
-1
votes
2answers
73 views

Do I have to type su everytime? [closed]

I have created a user. useradd -M -d /usr/my_user my_user chown -R my_user. /usr/my_user Now as a root I can type su - my_user -c /usr/my_user/some_dir/script.sh But if I want to do more ...
1
vote
1answer
367 views

Create Unix user that can read,write, execute in /opt/

I am setting up my cloud server and want to create a Appliance user on my Linux server that can install, read and write content on /opt/ folder and few normal personal users that have only read access ...
0
votes
1answer
453 views

How do I grant read access to all home directories of members in a group?

So I have 4 users on my redhat system. *P- primary group S- supplementary/secondary group* UserA - P: Teacher S: USA UserB - P: Teacher S: School UserX - P: Student S: School UserY - p: ...
0
votes
3answers
7k views

How to add users from data in a text file

I have a question about creating multiple users in linux, but I need a program to work on it. There is a new users txt file, the content is following: adams:5000:Adams, John Couch:/bin/bash atiyah:...
3
votes
1answer
124 views

Force login through ssh only

I have a small problem. I have two accounts on a PC. One is used for "normal" operations, usually through the graphical interface, the other is only used for remote management (upload files through ...
3
votes
1answer
298 views

How does chsh prevent users from changing another user's shell?

I know chsh is used to change a user's login shell by modifying /etc/passwd. So, in principle anyone could run this command and change another user's default shell but that is not allowed. How is ...
2
votes
4answers
4k views

Edit /etc/passwd file from grub

I tried installing zsh on ubuntu ( 14.04). When I switched to zsh, I was unable to go into super user mode. If I do a su it asks for passwd and on entering the correct password, it says: Cannot ...
0
votes
1answer
626 views

How to delete password for current account

I just installed Ubuntu 15.10 on my new desktop. However, I want to erase the password of it. I followed the instructions here. I now can successfully login with out password, but I cannot use sudo ...
3
votes
1answer
1k views

getent group working, but sshd_config allowgroups does not retrieve appropriate group

I am trying to setup Kerberos MIT authentication with OpenLdap autorisation on Debian Jessie. Authentication part is working great, as I can login to SSH using my kerberos account. I even can create ...
1
vote
1answer
285 views

Where does Linux track who is a group admin through the gpasswd command?

If I modify group membership and admins using the gpasswd command and add a user as a group admin Linux will allow that user to perform tasks otherwise reserved by root. Ex. [test1@centos ~]$ ...
1
vote
5answers
646 views

Show a user exists command

Is there a command that shows a user exists and is assigned to a group? I have just used the command usermod -a -G [GROUP] [NAME OF USER] and assigned a user to a group but, I was wondering if there ...
5
votes
2answers
22k views

Last Password Change of A User [closed]

I'm am currently trying to figure out a command that will show the last password change of a user on a UNIX system. I have tried running the command passwd -Sa and it gives the password change date ...
1
vote
2answers
112 views

Files are created with old group ownership even though the creator doesn't belong to old group anymore

I am currently preparing for LPIC Level 1 exam and I have been practicing management of user accounts on CentOS 7 system installed on VirtualBox. Firstly, as root, I created a user 'foo' with group '...
6
votes
2answers
4k views

Create guest account in Gnome 3.X on Arch Linux

I want a guest account just like in Ubuntu which has following features: It does not require password to login A new home folder (in /tmp if possible) is created with no data every time User data is ...
2
votes
4answers
3k views

Can a Linux user have multiple primary user groups?

How many primary groups can an individual Linux user have? If they can have more than one, how does one go about assigning multiple primary groups to a user? If it's just one, what's the cause?