passwd Questions

2

Solved

Example of the problem: docker run -ti -v my_passwd:/etc/passwd -v my_shadow:/etc/shadow --rm centos [root@681a5489f3b0 /]# useradd test # does not work !? useradd: failure while writing changes t...
Pram asked 8/10, 2015 at 10:39

20

Solved

I need to have the ability to create user accounts on my Linux (Fedora 10) and automatically assign a password via a bash script(or otherwise, if need be). It's easy to create the user via Bash e....
Midshipman asked 27/1, 2010 at 22:43

2

Is there a way to determine when an LDAP password is set to expire with ldapsearch? I haven't been able to see anything in man pages that would allow me to get this information. I see warning mess...
Bulbil asked 1/12, 2017 at 1:59

2

I am using Debian. I am learning Bash scripting. I am creating a script that creates new user and sets password the problem is I get passwd: unrecognized option '--stdin' error That is my script:...
Disturb asked 26/1, 2019 at 20:5

5

Solved

I would like a way to update my password on a remote Ubuntu 10.4 box with fabric. I would expect my fabfile.py would look something like this: def update_password(old_pw, new_pw): # Connects ove...
Horvitz asked 20/6, 2010 at 19:11

3

Solved

How can I pipe some input using echo, into program that requires user typing something two times? for example echo "somepassword"|passwd someuser creates this error message Enter new UNIX pas...
Laminous asked 23/5, 2014 at 7:10

1

Solved

I want to use GIT from within a Docker container. The usage as documented on https://hub.docker.com/r/alpine/git/ is quite simple: docker run -it --rm -v ${HOME}:/root -v $(pwd):/git alpine/git cl...
Raguelragweed asked 2/1, 2019 at 13:54

2

In my CentOS 7 system (and other Linux flavors), I have noticed that there are two passwd files, /etc/passwd and /usr/bin/passwd. The former contains plaintext information about the users, groups, ...
Castoff asked 18/6, 2018 at 7:17

2

I have create a docker image that allows users to connect on it with SSH. For security reason, I'd like to users can change their password. I only use docker named volumes, so I can't bind /etc/p...
Goldner asked 14/12, 2017 at 8:56

2

Solved

I recently installed cygwin, and have been unable to find my passwd/etc file in order set to HOME. Is there any way to force cygwin to generate the file?
Kurtzman asked 18/2, 2015 at 0:23

3

Solved

As part of trying to implement a security measure in my root ssh session, I'm trying to devise a method of starting a script after n seconds of root user login, and change the user password and log...
Highgrade asked 22/2, 2013 at 11:43

1

Solved

So I am trying to add a service to NSS (Name Service Switch). Please note the GNU guide on how to do it here. I have been following that guide. I need to implement a service that works with the pas...
Carrelli asked 3/5, 2013 at 19:55

9

I need to be able to change the users' password through a web page (in a controlled environment). So, for that, I'm using this code: <?php $output = shell_exec("sudo -u dummy passwd testUser te...
Annotation asked 24/9, 2008 at 14:20

3

Solved

I'm trying to password protect a specific url using a .htaccess. Different urls point to the same files but have different workings. I now need to password protect only one url. I'm trying to do th...
Lagomorph asked 9/3, 2011 at 21:21

1

Solved

In addition to the files : /etc/group, /etc/passwd and /etc/shadow, I could see three files in my linux machine. /etc/group- /etc/passwd- /etc/shadow- I cannot see these files in my root...
Paulie asked 24/10, 2011 at 8:23

1

Solved

If not, how does android determine whether a user belongs to a certain group?
Mixedup asked 28/2, 2011 at 16:4

2

Solved

I am working on what I thought was a very simple script to dynamically create an FTP user using 'useradd' There are several parts of this process I am unfamiliar with, and an entire day's research ...
Detwiler asked 19/6, 2009 at 23:57

3

I've done some research and I'm still struggling with the passwd structure. http://www.opengroup.org/onlinepubs/000095399/basedefs/pwd.h.html I need to obtain the user ID, however, I don't think I'...
Console asked 22/10, 2009 at 21:55

2

I'm trying to create a script to update a password in a non-interactive way. It's working on my laptop but fails on my server. Both are running the same configuration, using Etch. This is the scri...
Miceli asked 22/12, 2008 at 10:50
1

© 2022 - 2024 — McMap. All rights reserved.