Questions tagged [passwd]

passwd refers to the Unix command for changing a user's password and also the file in which users' login data is stored.

passwd refers to the Unix command for changing a user's password and also the file in which users' login data is stored.

112 questions
1
vote
3 answers

different hash length in /etc/shadow

Here is the output of /etc/shadow for two different users stored on the…
XXL
  • 125
  • 1
  • 1
  • 8
1
vote
1 answer

passwd ldap request to ActiveDirectory fails on half of 2500 users

We just setup ActiveDirectory in my company and imported all linux users and groups. On the linux client: (configured to ask ldap in nsswitch.conf): If i do a common ldapsearch to the AD ldap server i get the complete number of about 2580 users.…
groovehunter
  • 243
  • 2
  • 7
1
vote
3 answers

How to allow passwd in chroot?

I have a multi-user server, which puts a subset of the users in a chroot. I want to allow all users to call passwd in order to change their respective password. Everything else I can think of is either overkill or likely to compromise…
bitmask
  • 123
  • 1
  • 8
1
vote
6 answers

Compare two user lists in bash

I have two different user lists. I need to compare the users and make sure they exist in both files. One is the passwd file, and another is a flat file for that has the usernames and other information that I can extract a sorted username list…
specto
  • 218
  • 2
  • 9
1
vote
1 answer

I would like to allow login to a box with no password for a particular user how do I do that?

I would like a userid to allow logging into a box without a password. I am not sure how to accomplish this as changing the password to nothing is not allowed. Thanks
ojblass
  • 636
  • 1
  • 9
  • 17
1
vote
1 answer

Let openldap users change password with passwd in centos, i broke it

Tried to do the above with this tutorial: https://www.unixguide.net/content/openldap-allow-users-change-their-password-unix-passwd-command So I created this ldif: dn: olcDatabase={2}hdb,cn=config changetype: modify add: olcAccess olcAccess: to…
Codejoy
  • 67
  • 3
  • 13
0
votes
2 answers

Regex for /etc/passwd Content

I have a collection files from many systems in my enterprise in a store directory (/store/) and I wanted to find all of the passwd files and cat them out to a single file. Intuitively, the command I came up with and use is: find /store/ -name passwd…
Lexicon
  • 247
  • 1
  • 2
  • 10
0
votes
2 answers

Password protect all sites (folders) under a folder

I have a server where I have a few tester sites in a folder. Hence all of those tester sites are in mysites folder. What I am hoping is that no one accessing my site is able to go to www.example.com/mysite/ or www.example.com/mysite/site1 or…
user219492
  • 99
  • 4
0
votes
1 answer

ppolicy not enforced on OpenLDAP Client when using 'passwd'

The issue: Password Policy is not being enforced when I change the password using the 'passwd' command. It is enforced when I use the 'ldappaswd' command. But the OpenLDAP password still changes using the 'passwd' command The setup: I've setup an…
Ram Krishnan
  • 181
  • 1
  • 1
  • 5
0
votes
1 answer

Linux custom NSS module, `_nss_SERVICE_getspnam_r` is called but `_nss_SERVICE_getpwnam_r` is not

I'm creating a custom NSS module. I managed to make it work on my local Redhat 7.3 box, configured nsswitch.conf correctly passwd: files SERVICE shadow: files SERVICE and confirmed that both _nss_SERVICE_getpwnam_r and _nss_SERVICE_getspnam_r are…
0
votes
2 answers

passwd doesn't work: Authentication token manipulation error

I have an strange problem... I cannot login to my Ubuntu using my own private key. Fortunately I have a password and it works but I cannot change my password. I can su user to root. See the following command outputs: root@myhost:/# passwd…
mahyard
  • 227
  • 3
  • 11
0
votes
2 answers

Telnet without passwords

Back in the days of Redhat 9 I set up networks using dumb terminals that used telnet to log in to the server. And simply by deleting the 'X' in /etc/passwd for the user, the user could log in with a user name only. This allowed easy operation of the…
simplr
  • 520
  • 5
  • 11
0
votes
1 answer

passwd: Module is unknown when creating CentOS 7 domU on Jessie

DomU created by xen-tools using the command below: sudo xen-create-image --hostname=test --dhcp --memory=256mb --install-method=rinse --dist=centos-7 --arch=amd64 --lvm=VM --bridge=xenbr-48 --noswap --fs=ext4 --size=5Gb Everything goes well…
0
votes
1 answer

Cache FreeIPA passwords to /etc/passwd

I have setup freeIPA/Kerberos authentication for my domain and it works well. I have a service that does not support server-based auth, only local auth via /etc/passwd. Is there a method to cache passwords from freeIPA to local disk, which I can…
Vince
  • 371
  • 5
  • 16
0
votes
1 answer

Cannot run passwd through plink

This is my situation. I am trying to run the following command in WINDOWS 7 plink.exe user@ip.add.re.ss -pw password "passwd user" to change the password for a particular user. it keeps giving me permission denied. The other commands like…