Questions tagged [passwd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Fedora 32/33 - Remove password strength enforcement

Fedora 32/33 wont let me select a short password for root and user. In this case i want to allow it, but i cannot do so: ❯ sudo passwd Changing password for user root. New password: BAD PASSWORD: The ...
0
votes
0answers
20 views

adduser name password set to a different user

I am root user and added a new user to the system with adduser username and set the password. I left my server for a half or or so and I come back and press the escape key "wake it up" I go ...
0
votes
0answers
25 views

order in passwd and shadow file

In order to implement some parser and eventually some tool to write to /etc/passwd and /etc/shadow on linux, I'd like to know if I can assume that the users in the files are guaranteed/or mostly in ...
0
votes
1answer
37 views

/etc/passwd.org, /etc/group.org, /etc/shadow.org files

On a Debian 10 server, which started as Debian 7 and updated whenever new version came out, I accidentally found these three files: /etc/passwd.org, /etc/group.org, /etc/shadow.org The backup files /...
3
votes
0answers
18 views

force specific shell environment variable on process using /etc/pam.d/ rules

I am using slim login manager, and it has its own pam rules file: /etc/pam.d/slim. auth requisite pam_nologin.so auth required pam_env.so readenv=1 auth required pam_env....
1
vote
0answers
10 views

force slim login manager to use /bin/sh to execute scripts, instead of user shell specified in /etc/passwd

I am using slim login manager, and openbox window manager. I believe, the startup sequence has these steps: 1) root: /etc/init.d/slim 2) root: /usr/bin/slim 2) user: /usr/bin/slim 3) user: ...
0
votes
0answers
63 views

Why would 000 on /etc/shadow permissions lead to me not being able to use passwd?

Basically, I decided to change the password on the VM I use for work which runs CentOS 7. Entering a new password in literally every case (user runs passwd himself, user sudos passwd, sudo su and then ...
1
vote
0answers
21 views

passwd -d can't remove password of user?

I created a new user to access a network share which I want to give no password. I ran useradd share and then sudo passwd -d share. passwd tells me that the password expiry information changed. If I ...
1
vote
1answer
41 views

User with privilege to manage other users' password EXCEPT root's

I am trying to give user a privilege to change other users' passwords, BUT excluding root's password. I have edited the /etc/sudoers file with visudo and appended the following line: myuser ALL=/...
-1
votes
3answers
114 views

Is a comment line allowed in /etc/passwd

I know, in RHEL 7.8, that you can have blank lines in /etc/passwd But can you have comment lines, and if so what would the line start with?
1
vote
2answers
126 views

Cannot use sudo su after I changed my password

I am running Ubuntu 14.04 LTS. Yesterday, I changed the password on my user account, which is an admin account. This morning, I discovered that I can no longer use sudo su to switch to root. I know ...
1
vote
1answer
58 views

Can you edit /etc/passwd on a firmware image?

I'm trying to gain root access on a cheap DVR that I bought for a CCTV system. The manufacturer has a firmware update image available for download that I was able to inspect using a tool called ...
0
votes
0answers
29 views

FreeBSD - Change user password after SSHing into a Server

I would like to change the user password after having SSHed into a server, but get the following error: passwd Changing local password for passwd: pam_start(): System error What is the ...
0
votes
1answer
11 views

How to display a system account with the highest user id

root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/...
0
votes
0answers
47 views

Cannot login because corrupted /etc/passwd

I accidentally change one line of /etc/passwd to something like: foo:x:147:158::"/home/foo/#0.0.0.0:80/www":/usr/bin/bash ^ quoted because there's colon in the ...
0
votes
0answers
17 views

How to check the password age of Users from Active Directory

I am working on Linux (RHEL and SLES) and am not a Linux administrator and don't have access to a Linux administrator. The users are from Active Directory hence I am not able to find/reset the ...
1
vote
3answers
137 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
3
votes
1answer
110 views

What encryption mechanism is used to store passwords in `/etc/shadow` in a typical Unix, such as Gnu/Linux?

(From a novice's point of view) The other day I was thinking about how a typical "passwd" command works in a LINUX OS. For example, when we type in "passwd", a prompt appears letting us type in our ...
0
votes
2answers
45 views

Printing information about a specific user from /etc/passwd

So I'm trying to list a bunch of info about users in etc/passwd. So far I managed to it so that the script writes out all users starting from uid 1000. I need another function to write info about a ...
0
votes
3answers
364 views

changing *your* linux password via a bash script

It's easy enough to change another users password via a bash script - just do echo newpw | passwd username and bam, you're done. But what about changing your password via bash? echo newpw | passwd ...
1
vote
1answer
248 views

Linux - create user with no password (login without password prompt)

I found many articles mentioning that user has no password after using passwd -d. While on some of my systems it indeed works (I can su from unprivileged accounts to them without giving password) on ...
0
votes
0answers
74 views

Bash script to make passwordless connection

I want to make passwordless connection with help of bash scripting. The requirement is that user has to just provide password. Point to be considered: 1) There is no generated public/private key in ...
3
votes
1answer
74 views

Why does /etc/shadow uses user name instead of uid?

/etc/shadow contains the username, but not the uid. Is there a specific reason, why a char * field was chosen over an int? For direct username->password check this might be quicker, but for ...
0
votes
1answer
64 views

how do I changed the password policy in LibreElec

I believe LibreElec is using some form of BusyBox. I've done lots searching and been unable to find where password rules can be changed. Since my LibreElec media player is not connected to the ...
1
vote
1answer
274 views

What are the default permissions on the Debian /etc/passwd file?

What are the default permissions for /etc/passwd on Debian distributions?
1
vote
1answer
225 views

passwd command not changing the current user password

I have tried with command: $ passwd It is asking new password and give success message but when I try to login with new password after restart the system. It work with old password. New password not ...
0
votes
1answer
123 views

Screen Lock Checks password file but not Active Directory

We have a Linux system running Centos 7 and have an issue with the screen lock. We have a multi-user environment where each user has their own account. The authentication is using our university ...
0
votes
1answer
1k views

how to disable password complexity check for centos 8

I have freshly installed centos 8 on my PC. I want to keep my old user password. Centos complains, it is too short (7 chars) and is based on some dictionary word. How can I disable this check?
1
vote
1answer
67 views

Finding the most common name in passwd file [duplicate]

I have a question on getting the most common names in the /etc/passwd file on Unix. Is this the correct command?: cut -d: -f5 /etc/passwd | uniq -c | sort -i | sort -n
1
vote
1answer
252 views

Automatically Run Multiple Command over SSH on multiple devices

I have 100+ devices that has same username and password and enabled SSH. What I would like to achieve is for each device I want to run same command to change their password bulk. What I did is to ...
2
votes
1answer
271 views

What is the practical difference between locking and deleting a user password?

The accepted answer to How do I completely remove root password suggests passwd -d root ("deleting" the password), and a comment suggests instead using passwd -l root ("locking" the password). The ...
37
votes
3answers
6k views

When did Unix stop storing passwords in clear text?

When did Unix move away from storing clear text passwords in passwd? Also, when was the shadow file introduced?
0
votes
1answer
231 views

Specify a home directory path for a user in /etc/passwd with spaces in it?

I have a path I want to use as a home directory in WSL, but it's also path that has spaces in it. I've tried escaping the spaces with slashes, and I've tried using single and double quotes with just ...
1
vote
1answer
142 views

Ampersand in the passwd GECOS field

When expanding the /etc/passwd GECOS field to get the user's full name, should we expand only the first ampersand (& character), or all ampersands? In a GECOS field with comma (,) delimited ...
-2
votes
1answer
61 views

Beeing root but without knowing password. Replacing binaries in /bin/ to bypass restrictions

I have an active root account, but I don't know my password. To be able to change my password or even to create another users (with the tool passwd) I need to know my password. So that creates a ...
1
vote
1answer
1k views

Get users with UID >= 1000 from /etc/passwd

I am trying to get usernames from /etc/passwd if UID equal/greater than 1000 using a for loop. The below simple bash script works but prints the username twice for some reason. #!/bin/bash for ...
0
votes
2answers
235 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?
4
votes
0answers
186 views

How to have synchronized samba passwords with local linux accounts where linux account are the leading system/authority?

How to have synchronized samba passwords with local Linux accounts where Linux accounts are the leading system/authority? This seems to be a surprisingly complex request/requirement. Since I already ...
9
votes
1answer
8k views

running git or ssh client in docker as user: No user exists for uid

Problem: I'm trying to run a git clone myuser@server:repo.git from within a docker container. Inside the container (due to policy) I am the same user as on the docker host system (non-root) and have ...
0
votes
1answer
225 views

auto enter password for `passwd <new user>` from script? [duplicate]

if the script was useradd ...............<new_user>; passwd <new_user>;. is there a way to put the new password in a script? I don't need to change or add an old password for an existing ...
3
votes
1answer
462 views

Why is +::0:0::: not supposed to be found in /etc/passwd?

I was reading the BSI Security Guidelines (GERMAN), on NIS and it explicitly mentioned that one should prevent the entry +::0:0::: from occuring in the /etc/passwd file of the NIS server. From my ...
0
votes
1answer
395 views

passwd command not working as expected

I am trying to change the password of my root and other users. When I try it using passwd it takes me to another prompt without asking the new password. As in: [root@southapp2 ~]# passwd [root@...
28
votes
1answer
3k views

Why would /etc/passwd be used every time someone executes `ls -l` command?

Read from APUE, just feel curious: The password file is used every time a user logs in to a UNIX system and every time someone executes an ls -l command.
1
vote
1answer
530 views

Is it safe to set password in /etc/passwd to * on Linux to prevent password login?

AFAIK, the second field of /etc/passwd can be x: password is in shadow hashed password What if I put a string less than 8 chars in the field? I do not want anyone to use password on this account.
0
votes
0answers
145 views

ubuntu cannot boot after modifying /etc/passwd

The following are the steps I destroyed my ubuntu: I installed Windows 10 and Ubuntu 18.04 in my computer; I modified the /etc/default/grub and set GRUB_TIMEOUT = 0, then I cannot see the Grub screen;...
0
votes
1answer
42 views

Is there a way to retrieve a root mysql password (no reset)

Is there a way to get back / retrieve a mysql root password. I mean get it back : not resetting it (I already know how to reset it and I use the reset method currently).
1
vote
3answers
83 views

Can a Solaris 11 account prefixed with # be used to login?

I have been given a list of accounts on a Solaris 11 server that contains several accounts which are prefixed with a # character: "#username". (No LDAP is being used, and all accounts are local ...
1
vote
0answers
121 views

!! versus * in /etc/passwd [duplicate]

My (admittedly dated) understanding of unix is that in /etc/passwd if the second field is 'x' then the identity can login with a passwd that matches a hash found in /etc/shadow. However, when I list /...
1
vote
1answer
821 views

About macOS: why my user not in sudoers file but I can use sudo privileges too?

In Linux, if the user that you created want to use sudo privileges, you should add this user to /etc/sudoers(add something like jack ALL = (ALL) ALL). Well, the default mac user(the one you login to ...
0
votes
1answer
427 views

Why does the primary group of my user show up in /etc/group?

I'm following a course about Linux and it states the following: "The primary group of a user is not mentioned in the /etc/group file." However, my primary user "timgeldof" actually does show up in ...