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.

Filter by
Sorted by
Tagged with
0
votes
0answers
51 views

NIS SLAVE “user TEST does not exist”

Example configuration: (CENTOS6 same version on master and slave) nis: MASTER NIS SERVER nis2: SLAVE NIS SERVER Master and Slave server are configured correctly (file hosts nsswitch and other) TEST OF ...
0
votes
1answer
14 views

Superuser unable to change password of user on LDAP server

Just set up an LDAP server (sun) running Ubuntu 20.04 following the guide on Ubuntu Server Docs with TLS enabled with a bunch of users, groups, and automounts in database. Several clients (here: seca) ...
0
votes
1answer
43 views

Allow sudo over SSH while forbidding TTY login

I want to lock users from local login (keyboard and monitor), but still allow remote logging with SSH. Easily achievable with passwd -l and ssh-copy-id. But what about sudo? I want to keep password ...
1
vote
1answer
58 views

Add a second /etc/passwd + /etc/shadow + /etc/group combination

Is it possible to add a second /etc/passwd + /etc/shadow + /etc/group combination like this to a linux system? /etc/passwd /etc/passwd2 /etc/shadow /etc/shadow2 /etc/group /etc/group2 During ...
0
votes
2answers
361 views

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 ...
1
vote
2answers
213 views

Sync users over NFS

I'm implementing a web server with configuration and user files shared over NFS (Amazon EFS) as described here: https://serverfault.com/a/933566/81774 As part of my Apache configuration, I am ...
29
votes
2answers
5k views

Why is the maximum length of OpenWrt’s root password 8 characters?

When I try to set root's password: root@OpenWrt:~# passwd Changing password for root Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case ...
0
votes
2answers
29 views

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/...
0
votes
1answer
128 views

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 ...
0
votes
1answer
170 views

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 ...
3
votes
1answer
68 views

Spamassasin user - disable shell

I recently discovered that spamassasin added the following line to my passwd file: debian-spamd:x:115:122::/var/lib/spamassassin:/bin/sh. Why does spamassasin need shell access? Is it safe to disable ...
0
votes
2answers
6k views

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 ...
1
vote
2answers
811 views

try to lock password but have no entry in /etc/shadow

Goal: Maintaining a former colleagues system, I want to lock all password logins in order to only allow ssh key based logins. Infos: The CentOS 6.5 system does not offer any network based ...
0
votes
1answer
1k views

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 --...
1
vote
2answers
37 views

Cent OS unable to login after passwd

I tried to change password of centos root using passwd command. But accidentally I pressed enter key without entering any password. Now I can't login to server, neither using old password nor without ...
2
votes
2answers
1k views

Changing root password via script fails but reports success

I have a project which requires me to make a script / sequence of commands to change the root password on a CentOS 7 installation. I can assume the user that will be executing the script is already ...
11
votes
3answers
46k views

How can I set the root password in a docker container from a script?

I have a script that runs on the host and creates/starts/stops a docker container. I'd like the script to change the password of the root user within the container. Since the container is an ssh ...
2
votes
2answers
64 views

centos 7, sudoers rights limits

i have a task to separate duties of users on a group of servers, the system is centos 7 there is a user that i want to give every right on the server except for the right to change root and other ...
2
votes
2answers
2k views

Is it safe to manually edit /etc/passwd?

I need to change the "real name" of a user (not the username). For example if I have: testuser:x:1001:1001:Max Mustermann,,,:/home/testuser:/bin/bash And I want it to be: testuser:x:1001:1001:Max ...
-2
votes
1answer
950 views

linux redhat + login prompt keep getting again and again [duplicate]

we installed new server redhat version - 6.7 from kick start, after installation complete successfully we get the login prompt but I am unable to login locally on my redhat linux 6.7 server. The ...
0
votes
1answer
347 views

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 ...
0
votes
1answer
525 views

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 ...
0
votes
1answer
6k views

Can't edit files /etc/passwd and /etc/shadow

I have some issues with files /etc/passwd and /etc/shadow. Both of them are without permissions: ---------- 1 root root 1357 Aug 5 11:30 passwd ---------- 1 root shadow 1175 Aug 5 11:30 shadow ...
-3
votes
1answer
43 views

SSH with user root from 2 different stations both running passwd [closed]

A few days ago, we were connected to a xenserver through ssh (user root) from 2 different stations. And we tried passwd, and we changed the root password to 2 different passwords simultanously. And we ...
1
vote
0answers
186 views

Cygwin: Obtain comment field from Active Directory with mkpasswd

Running cygwin on W7x64. Since a generated /etc/passwd file is static, it has to be performed occasionally when new employees are hired. It polls Windows AD, and writes the passwd file. In the past, ...
2
votes
2answers
3k views

Command 'getent'

Part 1 Is getent supposed to be an executable? In my zsh setup, I can see getent is actually defined as a function $ which getent getent () { if [[ $2 = <-> ]] then grep ":$...
0
votes
1answer
1k views

Resetting root password on Slackware (software RAID)

I'm trying to reset password to root account on Slackware server (with Intel Atom on Intel motherboard and two HDDs). There is software RAID set up (devices mounted during boot: md0 - /, md1 - /usr, ...
1
vote
1answer
131 views

How can I allow users to reset their Linux user passwords from a web interface? [closed]

I am running SAS Visual Analytics on a cluster for my department. I want the users to be able to set and reset their own password for their user account. Users and Passwords for the application are ...
2
votes
1answer
2k views

Purpose of the noaccess user in UNIX?

Can someone point me to a document or explain to me the utility or application of the noaccess user? It would seem interchangeable with any other user I might create. What is it's purpose of being ...
1
vote
1answer
2k views

How to enable Dovecot virtual users to change their password using passwd-file?

I am running Dovecot with several virtual users in passwd-file: http://wiki2.dovecot.org/AuthDatabase/PasswdFile . The file is /etc/dovecot/userdb . How can I enable the users to change their password?...
1
vote
2answers
11k views

sshd on a minimal Linux: “Failed password for invalid user root”

I'm trying to start SSH server on a minimal Fedora installation. And I mean really minimal: one that is produced by diskimage-builder ramdisk builder. It does not even have users (absent /etc/passwd ...
0
votes
0answers
376 views

Dovecot Virtual domain/passwd-file login issue

I used this walk through http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix but there is still an issue not allowing me to login. /var/log/dovecot.log Jan 13 10:25:49 imap-login: Info: ...
1
vote
0answers
765 views

can't change NIS account password from Centos-7 client “NIS server Centos-6”

I'm trying to change password for a NIS account from a Centos-7.0.1406 client and the server is Centos-6.6 it seems that passwd command don't ask me neither to change password nor ask me for old ...
0
votes
1answer
6k views

linux + cant access as user + could not open session

in my Linux machine - red-hat I successfully to login to different users as the following su - userC [machine@Linux ~]$ pwd [machine@Linux ~]$ /Users/userC but only in one user I get the following ...
1
vote
1answer
172 views

Does password aging affect locked accounts in Linux?

I have a requirement to change the maxdays setting of several Linux accounts to 365 and most of the accounts are locked. Does password aging settings affect these accounts? My concern is that I'll ...
-1
votes
1answer
293 views

Shared /home with NFS: chown /home/userdir to a user that doesn't exist on the server

Let's say I have a NFS /home on my server that gets mounted on boot by clients (EDIT: on their own machines -- locally), in order to have a common /home for my clients, this way they automatically ...
0
votes
1answer
78 views

Tool to lint passwd and group files

Recently I fixed a problem caused by duplicate entries in /etc/passwd on Linux. To catch it sooner next time I plan to do some basic sanity checks on the file each day, one of which will be that no ...
2
votes
2answers
7k views

passwd: Authentication token manipulation error

I am running a Ubuntu 12 machine, and have recently been working to secure it. I made all the changes from this guide. I am not running a Linode, but I used these as a starting point for setting up ...
6
votes
5answers
24k views

/etc/passwd shows user in a group, but /etc/group does not

I want to verify that the user account filesender_1 is a member of the group valid_senders. When I look at /etc/group, filesender_1 is not there: valid_senders:x:12345:production_1 I read this as "...
1
vote
1answer
86 views

how to avoid console network error (host is not communicating) when passwd or update?

I am trying to change the root password and update ssl package but the commands passwd or yum update {package} make the console loops endlessly. I have set the buffer to 600 sec. which I am reaching ...
29
votes
3answers
34k views

Copying Linux users and passwords to a new server

I am migrating over a server to new hardware. A part of the system will be rebuild. What files and directories are needed to copy so that usernames, passwords, groups, file ownership and file ...
7
votes
1answer
1k views

Linux: Lost internet while using vipw. How can I unlock the file?

I was editing the passwd file with vipw, when I briefly lost internet connectivity. When I logged back in and tried to edit again I get the error: vipw: Couldn't lock file: Interrupted system call ...
-1
votes
3answers
3k views

What is default shell for users in /etc/passwd for Solaris 11?

For a Solaris 11 Server Config Review that I am doing, I have following lines in my /etc/passwd file: root:x:0:0:Super-User:/root:/usr/bin/bash daemon:x:1:1::/: bin:x:2:2::/usr/bin: sys:x:3:3::/: ...
5
votes
2answers
17k views

What is the purpose of openssl passwd

I'm reading "Reliably Deploying Rails Applications" Regarding defining users to be set up by Chef, it says: “Next we need to define users, inside data_bags/users copy the file deploy.json.example to ...
6
votes
3answers
12k views

Change local password as root after configuring for MS-AD Kerberos+LDAP

I have followed this excellent post to configure Kerberos + LDAP: http://koo.fi/blog/2013/01/06/ubuntu-12-04-active-directory-authentication/ However, there are some local users used for services. ...
2
votes
1answer
651 views

OpenLDAP on ArchLinux users cannot change passwd

I started an office and i NEED centralized login and home directories to work. Since all workstations are going to run Arch and problems with different LDAP versions I finally concluded the LDAP ...
0
votes
1answer
2k views

difference between /bin/false and /sbin/nologin [duplicate]

I am learning server stuff and I have one chapter about /etc/passwd i have this: root:x:0:0:root:/root:/bin/bash bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/...
1
vote
1answer
197 views

CentOS Password Change

I am looking for changing my centos password by using passwd with encryption. echo "Password1" | passwd --stdin username But if I'm using with above method, user will see what my password is. Does ...
3
votes
1answer
117 views

ProFTPD accounts

I have inherited a server where ProFTPD is installed. I can login to it with account joe_test and its password - but the problem is there is no such user as joe_test in /etc/passwd. If I do ls -la of /...
7
votes
1answer
17k views

Unable to delete a user from a Linux CentOS 6.3 machine, what can be done?

When I try deleting my user (from a root shell) it says userdel: cannot remove entry 'itaig' from /etc/passwd The user isn't even displayed on /etc/passwd. [root@ab2c1 ~]# su - itaig su: warning: ...