The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
31 views

What would 'passwd root --stdin' have set my password to?

I ran: sshpass -p 'OldPassword' ssh -o StrictHostKeyChecking=no root@1.1.1.1 'echo "Te3EQeF2U!-Em_C3eBU6A&a=u2$e28*c" | passwd root --stdin' Without realizing that echo ...
0
votes
0answers
53 views

Can't change the root password from single user mode

I have redhat 6.x version I am trying to change the passwd from single user mode but I get the following passwd root changing password for user root passwd: permission denied then I try to ...
0
votes
0answers
25 views

redhat + never get the passwd prompt when login

after Linux installation version 6.x we boot the machine and when we type on login prompt the login word the login prompt return again, and again after we type the login name so we never get the ...
1
vote
0answers
35 views

Switching (su) to a paswordless account

I've made account A passwordless with passwd -d A. Now, when I log in as user B from a terminal and run su A I can switch to user A (and I am not even asked for a password). If, however, I log as ...
30
votes
3answers
4k views

Why is the password I entered not visible?

Below is an image of the process I took to create a user on bash in Linux. I understand that the password shouldn't be displayed for security purposes, but what I mean is, why do asterisks (or the ...
0
votes
1answer
42 views

How to change the user password on all nodes of a (pbs) linux cluster

There are a number of cluster commands that allow performing operations on all cluster nodes at once, e.g. cexec, as in cexec mkdir /scratch/something. How can I change the password on all nodes at ...
0
votes
4answers
89 views

Disable root login in CentOS 7.2.1511

Allegedly, if you are logged in as non-root and write sudo passwd -d root, root login will be disabled, meaning that you have to log in as another user and use su to switch to root (or just stick with ...
0
votes
1answer
93 views

How do I inform the rest of the system my shell has changed from zsh to bash?

I installed zsh because I thought I might prefer it over bash. I don't, and to revert it I have used chsh -s /bin/bash, which as myself gives You may not change the shell for 'cat'. I also changed ...
-2
votes
1answer
106 views

non-root users can run passwd command as root, why can't they change password of root? [duplicate]

I know about setuid bit on /bin/passwd file which allows us (non-root user) to run that command as root user. running passwd command requires root permissions to change /etc/shadow file. My question ...
0
votes
0answers
75 views

Unable to log in to any user accounts on a fresh install of Arch linux

Has anyone run into the issue of not being able to log into their root account after a fresh install of Arch Linux? I have tried setting the root password twice with the passwd command within the ...
2
votes
1answer
26 views

command to get username via id

There is a command id to get the user id. E.g. id -u rootgives me 0. Is there an opposite command to get the user name via the id? I know I can grep /etc/passwdor run getent and awk or cutthe result. ...
0
votes
1answer
35 views

Change user passwd with UID

Is it possible to change a user's password by UID? [root@CentOS7 ~]# id usera uid=1000(usera) gid=1000(usera) groups=1000(usera),10(wheel) [root@CentOS7 ~]# man passwd [root@CentOS7 ~]# passwd 1000 ...
1
vote
1answer
16 views

Is there any backward compatibility of -p (--path) option in user/group commands?

I upgraded from SUSE SLES 11 to SLES 12 and found that some user/group commands (such as useradd, groupadd, groupmod ... ) are no longer accept -p (--path) option to specific the directory of passwd, ...
4
votes
1answer
289 views

Difference between ! vs !! vs * in /etc/shadow

The second field in the Linux /etc/shadow file represents a password. However, what we have seen is that: Some of the password fields may have a single exclamation <account>:!:..... Some of ...
1
vote
1answer
41 views

Managing(adding/deleting,etc) users in a squashfs(RO file system) with a small R/W partition

I'm using squashfs as the file system on a board which is RO, along with a small jffs2 partition which is R/W. The files corresponding to user management, i.e /etc/passwd, /etc/group & /etc/shadow ...
0
votes
2answers
44 views

FreeBSD create user without utility?

I have a user that I created via the pw utility on FreeBSD. The full command I used was: pw add user example -s /usr/local/scripts/example.sh -w none The user can login as example without requiring ...
2
votes
1answer
65 views

Editing passwd files other than /etc/passwd

UNIX users are usually managed in the well-known passwd file format. The corresponding file usually resides at /etc/passwd. Since editing this file by hand is very inconvenient (mostly because of the ...
2
votes
1answer
77 views

Negative GID in /etc/passwd?

I got following entries in /etc/passwd and /etc/passwd- on one system: userfoo:x:501:-513::/home/userfoo:/bin/false There's no group 513 anywhere on the system. What's this "negative" gid or a gid ...
1
vote
3answers
201 views

Why root's password change doesn't require old password

Why can root's password can be changed without entering the old password? Is there any benefit to this or is it just an implementation fault? If we issue passwd from a normal user account it first ...
3
votes
2answers
228 views

Physically override linux credentials

Say someone gains physical access to my computer, and they want to login to my account and see everything I have. Is it possible that they take the hard-drive out of my computer, modify the file ...
0
votes
0answers
183 views

Non-root user cannot change Samba password

Samba users cannot change their own passwords. The password can only be changed using root account using the command smbpasswd -a <username> But I want users be able to change their passwords ...
3
votes
1answer
58 views

chpasswd and openssl

I'm trying to pass an MD5 password to chpasswd but it doesn't seem to work. echo username:$(openssl passwd -1 -salt salt password) Then I try to pass this to chpasswd to change the password echo ...
4
votes
2answers
88 views

Can an AIX user that appears in etc/group but not etc/passwd still log into a server?

Looking at etc/group and etc/passwd files, I see accounts listed in various groups in the etc/group file that do not appear in the etc/passwd files. Can these accounts still log in to the AIX server?
3
votes
4answers
802 views

Changing user password through GUI app

I was making a GUI application to manage users and groups in Linux! I'm done with the part where it creates a new user, but stuck with the part where it gives the newly created user a new password. ...
1
vote
2answers
59 views

Disallow Changing of Passwords [duplicate]

I have a spare computer running as a small server doing various things, and I'd like to create another account for my cousin, so she can learn how do manage a server/run minecraft etc. I'd like to ...
3
votes
3answers
8k views

How to Create a Encrypted Password

I want to know how can I create a encrypted password in Ubuntu 14.04 TLS. Tried this: makepasswd --crypt-md5 password_here Did not worked for me throwing this Error sysadmin@localhost:~$ ...
3
votes
2answers
2k views

show entered new password in unix “passwd” command

Is is possible to run the passwd command with an option to show the newly entered passwords? By default it doesn't show what I type and I don't want this. [dave@hal9000 ~]$ passwd Changing password ...
8
votes
4answers
4k views

Will there be always a pair of same UID and GID?

I have to change file/directory's ownership using chmod .I know only owners's username but want to change default group name simultaneosly . At this stage group name is not decided so I am putting ...
6
votes
3answers
22k views

Lost password for a user on a Linux Server: How reset it?

On a Server an user 16040 has lost his password. I have password for root but don't have password for user 16040. How can I reset his password? With passwd 16040, unix ask me current password that I ...
9
votes
4answers
1k views

“no such user” but user is in passwd file

Looking at the files in /etc/: /etc/group:lbutler:*:1005: /etc/master.passwd:lbutler:$6$s..../:1005:1005::0:0:L Butler:/home/lbutler:/bin/bash /etc/passwd:lbutler:*:1005:1005:L ...
2
votes
1answer
7k views

Resetting password expiry date by number of days instead of specifying date

Is there a way with either commands passwd or chage to force the password to expire 90 days from the time of command execution? I know I can do it by date, such as: chage -E "2014-07-31" userid ...
1
vote
0answers
2k views

PAM's passwd retry prompt fail

I am trying to use PAM to stop password reuse. Adding 'remember=24' to pam_unix stores the old passwords hashed with MD5 which I find unnerving. I was recommended 'pam_pwhistory' instead. Here is the ...
1
vote
3answers
5k views

How to unlock admin account

By mistake I locked my admin account on Debian with passwd -l. I'm trying with live CD to unlock my account with no sucess. I've tried editing passwd file by removing x, but that didn't work. ...
8
votes
2answers
5k views

How could I eliminate Kerberos for passwd?

When I issue a command to change my password like this: sudo passwd huahsin The system prompt me: Current Kerberos password: I don't know what I have done to the system configuration, how could I ...
1
vote
1answer
2k views

Reverse id command, I want the User/Group Name from the uid or gid

I know some uid and gids that I dont know who they belong to and they are not in /etc/passwd (could be LDAP or from another system). How do I get Id info from only uid or gid preferably without using ...
2
votes
1answer
343 views

What is “Charlie &” in the gecos field on OpenBSD for root?

Question: what is "Charlie &" for the root user? I didn't gave "Charlie &" for gecos field, I think I didn't gave any at all. ps.: the "/sbin/nologin" doesn't matters, I just tested ...
5
votes
2answers
11k views

Two ways to lock a password but only one to unlock

CentOS 6 Linux has two ways to lock a password: passwd -l usermod -L Today I found out, that they do something different. passwd writes two exclamation marks into the shadow file. # passwd -d ...
0
votes
4answers
2k views

how to recover mistakenly deleted root user line in /etc/passwd

I had an accident with /etc/passwd - using putpwent(), I replaced the first line of /etc/passwd with mine. Unfortunately this line used to belong to root. Now I don't have root permission, and I can't ...
2
votes
1answer
1k views

How do I change login shell to nologin for an LDAP user RHEL 6?

yum install ypchsh and yum install ldapmodify both don't find a package. I only want to change the shell for certain ldap users on this one server. Someone please help, I can't seem to figure this ...
4
votes
2answers
17k views

Deleting a samba user: pbdedit vs. smbpasswd, what's the difference?

What is the difference between $ pdbedit -x and $ smbpasswd -x to delete samba users?
1
vote
2answers
3k views

Edit home directory for an LDAP user in Linux

I have an LDAP user who accesses a server based on having the appropriate LDAP host attribute via sssd. This user does not show up in /etc/passwd because he is not local. How do I modify his home ...
-4
votes
1answer
304 views

Copy content of an file “passwd” to an file userlist.txt [closed]

The problem is that the file passwd hasn't got any tag like .txt or so. So I can't copy the content by passed > userlist.txt.