Questions tagged [passwd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
29 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?
2
votes
0answers
18 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 ...
0
votes
0answers
111 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
87 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
82 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
0answers
65 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
101 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
70 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
31 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
62 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
50 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
177 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
135 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 ...
25
votes
2answers
2k views

What is the bin user for?

As I wrote at https://unix.stackexchange.com/a/484626/5132 this is worthy of its own Q&A. On Linux operating systems … % getent passwd bin bin:x:2:2:bin:/bin:/usr/sbin/nologin % … ...
1
vote
1answer
43 views

I cannot reset password using rescue mode

We have a problem on a centos 6 server. normally, PasswordAuthentication is off. When I get connected using rescue mode, I execute these commands : mount -o remount,rw / chroot / /bin/bash passwd ...
0
votes
1answer
98 views

Is passwd file always in /etc/passwd?

So, I'm writing a script that needs to modify the such a file but from the partition of a non booted OS (for example from a livCD to a OS installed on another drive) and I was wondering if, given I ...
1
vote
2answers
479 views

why do we need the SUID permission? [closed]

Please read this long intro to understand my concern for why we need the SUID permission for executable binary file. A process in Linux uses its EUID to know the effective User ID of itself. This ...
6
votes
3answers
211 views

How is the /etc/passwd file instantiated?

This is a weird question, but it strikes me as question a fish might ask about water. How is the /etc/passwd file created? Initially. Where I am coming from is this I'm a Linux sysadmin and have ...
1
vote
1answer
65 views

Where are supplemental groups coming from in /proc/pid/status, are they always inherited from a shell?

In /proc/pid/status we can see all the supplemental groups for the pid (My understanding is this is assuming it was forked from an interactive shell or the process did getgroups(2)) I want to know ...
0
votes
1answer
134 views

Why passwd prohibits me from setting “simple” password?

I used console command passwd to change my own password that I set straight after the OS installation with useradd command. My original password contained only line characters, without capitalization, ...
0
votes
1answer
158 views

awk print from passwd but only with userid > 1000

Ok I've done: cat /etc/passwd | awk -F: '{ print $1 }' -F ==> Specify a file seperator for delineating data fields in a line $1 ==> Represents the first field in the input but how to only print ...
1
vote
1answer
44 views

Can't log in to other users on a debian system

I can't log in to KDE, as other users to the GUI on my Debian systems only the user created at install. I can log on in the command line: su - user into the users login but only in the shell. I ...
0
votes
0answers
103 views

Non-interactively change user in bash

I want to create a new user, add it to the sudo group and then change to that user not-interactively (i.e. without entering the password via stdin) in a test scenario on a vm. I tried this, but this ...
-1
votes
3answers
737 views

what is the difference between /etc/shadow and /etc/passwd [closed]

What is the major difference between /etc/shadow and /etc/passwd In /etc/shadow we have the same data as in /etc/passwd.
-3
votes
1answer
333 views

How to change password in brand new Unix user

First ever question for me. Straight to the point. I've added a user: sudo useradd -m _homedir_ _username_ Tried all of these but nothing worked: passwd _username_ chpasswd username: _password_ ...
-1
votes
3answers
157 views

Can I change the SHELL on a running Oracle database?

I just started a new contract and have run into an issue I have never encountered before. Their Oracle database was started under a korn shell. oracle:x:500:100:Oracle user:/home/oracle:/usr/bin/ksh ...
1
vote
0answers
40 views

Samba, winbindd and multiple home directories

My current situation is a system with an Windows AD and DC, which manage logging in to Samba. After an Upgrade of the underlieing OS from Windows Server 2008R2 to 2016, my coinfig doesn't work anymore....
-1
votes
1answer
80 views

Configure IPSec so the user identity is passed to iptables rule

Hi I'm pretty new to this so you'll have to be very explicit. I set up IPSec on CentOS so that I can VPN. User identities are stored in the /etc/ppp/chap-secrets, mainly because that's how things ...
1
vote
2answers
94 views

why <<\END is used in ed [duplicate]

Using ed put character # to the beginning of lines 10 to 20 in file /etc/passwd. Solution is the following ed /etc/passwd <<\END 10,20s/^/#/ %p Q END my question is that what does << ...
0
votes
1answer
277 views

Red Hat Linux 7.0 Password is expired after break the password

I break a Red Hat Linux 7.0 password for learning purpose. But when it comes to login screen and after enter the password, it shows as "Password is expired". These steps are used for break the ...
9
votes
1answer
5k views

How to find the hashing algorithm used to hash passwords?

I have the working password and can see the hash (/etc/passwd). How do I find the hashing algorithm used to hash the password, without manually trying different algorithms until I find a match?
0
votes
1answer
50 views

Is it possible to have many startup programs in the /etc/passwd file?

I already know that you can change the command executed for a specific user when he/she logs in. However, I do not know if you can have many start-up programs for the certain user. For example: oqhax:...
0
votes
2answers
1k views

Can /etc/passwd change because of a reboot?

A Zabbix server I am currently started showing an alert like this: /etc/passwd has been changed on Router Now, on this Router machine I don't have a history of the passwd file so I cannot see ...
33
votes
4answers
5k views

May I sort the /etc/group and /etc/passwd files?

My /etc/group has grown by adding new users as well as installing programs that have added their own user and/or group. The same is true for /etc/passwd. Editing has now become a little cumbersome ...
0
votes
2answers
131 views

Deleted password under Solaris 11

I have a very serious problem. I deleted my password with passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by ...
-1
votes
1answer
810 views

Account locked after adding line on /etc/passwd file

I have installed this version of Ubuntu on my laptop. └─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: ...
-1
votes
1answer
43 views

It is possible to recover a password (not reset) if you have access to root file system?

If you have access to /etc/passwd and /etc/shadow, is it possible to figure out what the password is? I know you can reset it, but is there a way to recover it?
0
votes
0answers
663 views

No users can log in

Running Arch Linux (KDE). I performed an uneventful update today using pacman -Syu. No errors were encountered. Upon rebooting the system no user can log in. In sddm every user is greeted with "Login ...
1
vote
1answer
164 views

Turn off forced change sudo passwd

I add line to sudoers: user1 ALL= EXEC: PASSWD: /usr/bin/passwd user1 and when I use "sudo passwd user1" simple password is applied: Password: New password: BAD PASSWORD: it is too short BAD ...
1
vote
1answer
114 views

How do I not change the password in linux

Occasionally I'll want to change the password for a user and I'll type passwd, but I'll be logged in as root and I'll wind up changing the root password. I definitely don't want to do this in Ubuntu (...
0
votes
1answer
112 views

useradd command truncates the password mentioned with -p option

Command is as below, which is executed on wind river linux manchine. useradd vpatest -c Pav -g guest -G log -s /data/bin/cli.sh -p $6$cem^CM38$4YdQAPgu8EXNG3ecurYk4eN1sIiYNauBdHFRJew3l/...
6
votes
2answers
3k views

Disable password complexity check (PAM)

I installed a Linux based system with a blank password. I wanted to change password to something simple, but using passwd and setting the password to something like a single symbol gave an error of “...
1
vote
0answers
50 views

Change passwd in second console

I faced with strange case with changing passwd: 0) sudoers has line "Defaults ignore_dot,env_reset,passwd_timeout=1,timestamp_timeout=5" 1) login in 2 console with same user01. 2) in both console ...
0
votes
2answers
573 views

Deleted my root account from /etc/passwd file for testing in Centos7.3

I deleted my root account line from the file /etc/passwd and unable to boot into Rescue Mode and Emergency Mode. How can I recover the root user back.
2
votes
0answers
187 views

Why the “ passwd ” command give the root shell without password?

I have a Fedora server in which every time I execute passwd it automatically logins to root with no password necessary: Also, passwd is unable to change root password. Furthermore, root account is ...
0
votes
0answers
21 views

Hyphen Suffix on file name [duplicate]

I decided to randomly take a look at my /etc directory, and I saw some entries like this: passwd passwd- shadow shadow- subgid subgid- I know they are hyphens (-) and not tildes (~). What are the ...
9
votes
6answers
3k views

Process /etc/passwd file to list all users whose home folder is in /home

I have an example /etc/passwd file like this: tom:x:1000:1000:Work:/home/tom:/bin/bash george:x:1000:1000:Work:/home/george:/bin/bash bla:x:1000:1000:Work:/home/bla:/bin/bash boo:x:1000:1000:Work:/...
-1
votes
2answers
60 views

Is this account of root privileges in UNIX correct?

Some university lecture notes claim that In Unix systems, it is written into the operating system that some functionalities can only be accessed by the root user: modifying passwords, accessing to ...
0
votes
1answer
880 views

sed to change userid in /etc/passwd to zero

I am trying to change user monitor uid in /etc/passwd , but below gives me an error: sed -s /etc/passwd <<-"EOF" /^\(monitor:[^:]*:\)[0-9]*:[0-9]*:/s//\10:0:/ w q EOF