The tag has no usage guidance.

learn more… | top users | synonyms

27
votes
2answers
31k views

Does the root account always have UID/GID 0?

On all the Linux systems I've managed, the root account has a GID and UID of 0. Is this guaranteed, or is it possible that the system will give root a different ID?
0
votes
1answer
7k views

Creating user with password or changing password doesn't work in PostgresQL

I'm trying to create a new user role or change existing one's password to be able to work locally with PostgresQL. I'm working on Ubuntu. I can modify the attributes of an user, but for some reason ...
0
votes
0answers
33 views

John the Ripper error Crash recovery file is locked

I am on Windows 10 using CygWin, and I have just downloaded John The Ripper Jumbo 1.7.9. I was following the tutorial at Ethical Hacking Central to try to learn how to use the program. I created the ...
1
vote
1answer
48 views

Run script when password is changed

Is there any way to run a custom command when passwd is executed? I'm creating a server GUI, and I want to tie the app users with the system users, And, I don't want to use just plain PAM Auth. So I ...
0
votes
2answers
135 views

linux + why I cant change the passwd

I have redhat 6.x version I am trying to change the passwd from single user mode but I get the following passwd root changing password for user root passwd: permission denied then I try to ...
0
votes
1answer
23 views

Generating the string correspondent to the passwd command

I have a protected page on my server and I forgot the password to that page. Ok, I can change that password but it will be a hassle because I have that password stored in a lot of systems that use ...
2
votes
1answer
64 views

Linux account locked due to failed logins

i hope someone could help me while trying login to my Ubuntu machine with my user i'm getting "account locked due to 29 failed" i logged in with recovery mode and now i'm root but i can't change ...
0
votes
1answer
193 views

passwd fails with passwd: pam_start() failed, error 26 in tahr puppy 6.0.2

From the messages log: Dec 17 08:08:28 puppypc30098 authpriv.err passwd[8265]: PAM _pam_load_conf_file: unable to open /etc/pam.d/common-password The file /etc/pam.d/common-passwd is indeed missing:...
21
votes
3answers
11k views

Random password generator: many, in columns, on command line, in Linux

A while back, I came across a random password generator for the command line that displayed a grid of "memorable" passwords. Output was something like this: adam@host:~$ CantRememberThisCommand ...
3
votes
1answer
39 views

“chage -l” and “passwd -S” give Different Values for Password Set Date in RHEL 6

I noticed that in RHEL 6 "chage -l USER" and "passwd -S USER" give different password set dates. Curious to know why. Here is what I see: [root@sci-fi ~]# chage -l jedi Last password change ...
1
vote
1answer
104 views

How to configure John The Ripper to use a static string as part of password discovery?

I recendly found an old microcontroller project of mine again and want to use it. Unfortunatly I forgot the password but know the middle of it. Further I get managed to free the shadow file. Is there ...
0
votes
1answer
99 views

Just ruined /etc/passwd is there anyway to fix [duplicate]

I'm a noob. I'm messing around on a raspberry pi trying to get the hang of things. I'm having a jolly time. I don't now how to use vim. I know that you need to hit i to insert text, but I know very ...
0
votes
1answer
100 views

openSSH is ignoring the HOME env variable

I've been trying to sort out the Could not create directory issue with openSSH installed via cygwin, and have tried every solution I can find on the internet, but none of them are working... I've ...
4
votes
2answers
2k views

Prevent linux user from changing their password in ssh

How can I prevent users from changing their passwords? I still want to be able to change the passwords as root if necessary but keep the user from changing their password.
12
votes
7answers
42k views

Cannot lock /etc/passwd; try again later

With several commands in Linux, I get the error: cannot lock /etc/passwd; try again later. Does anybody know how to solve it? Also I don't get in my /etc/shadow directory.
0
votes
2answers
82 views

Change User's Password using root

How can I change password of specific user using root account? when you want to change your password, you can use passwd but how can I change the password of other users?
2
votes
1answer
8k views

passwd/shadow or group/gshadow mismatch?

I'm running RHEL 5. When using the GUI System>Administration>Users and Groups, I get the error: The user database cannot be read. This problem is most likely caused by a mismatch between /etc/...
3
votes
3answers
7k views

If I use SSH with public keys, is it subject to the password expiration of my user account?

So if I'm using SSH with public/private keys to connect to a Unix box, and the password for my user account on that box expires, will I still be able to connect?
0
votes
0answers
285 views

Linux Mint 16 32-bit (Ubuntu) forgets password, even after resetting via grub/bash trick

I just installed LM16 using a live USB stick. Install went fine, and at the user step I made a password but chose 'log in automatically'. On first boot without the usb stick, it logged in without ...
26
votes
3answers
3k views

What's all those users in the /etc/passwd file?

The /etc/passwd is supposed to have a line for every user on the system. Amongst the common username and root there is a bunch of other users. Some examples: timidity:x:114:127:TiMidity++ MIDI ...
2
votes
1answer
364 views

What files must be writable for a password change on a RHEL6 read-only file system?

I have a RedHat 6 system that is intentionally configured to be read-only file system. We use /etc/rwtab to allow certain files to be writable (log files and such). /etc/sysconfig/readonly-root is ...
4
votes
1answer
368 views

Instead /bin/bash as a shell, /bin/passwd in /etc/passwd file

I'm a Unix support Admin and I have a rare situation here. I have a recently adopted an environment that has a user with a /bin/passwd binary as a shell. xxx:x:1:100:xx:/home/xx:/bin/passwd Anyone ...
0
votes
2answers
1k views

lsuser substitute in Linux?

Is there a way I can get information on the password for a particular user like what is the minimum length and minalpha and etc.? In AIX we have a command called lsuser: lsuser -a minlen username ...
0
votes
0answers
1k views

How to recover the root password (passwd/chroot not found)?

I did init=/bin/bash, ctrl-x, mount of root, but when I try to run chroot or passwd it simply doesn't find any command. I see many tutorials, but they assume I have passwd and chroot. But I have not?...
1
vote
1answer
961 views

Use Qemu & chroot to reset password on mounted external disk

I have a NAS based on Linux, but the root password is kept secret by the manufacturer. Now to reset the password I am trying to mount the disk to my local linux computer. All of the files are present ...
0
votes
1answer
431 views

Authenticate system users in Trac running nginx or standalone

Is this possible to setup Trac to authenticate system users? For example users that are in trac group will have access to Trac. Is this possible to user /etc/passwd instead of Apache's .htpasswd?
1
vote
2answers
282 views

passwd pauses after bad password has been entered

Say you type in passwd and you enter in the wrong password. There's a noticeable delay between when it tells you that the password was bad and when you enter it. Any ideas as to why? Seems kinda ...
4
votes
2answers
735 views

Renamed root in /etc/passwd and now sudo does not work

I accidentally modified the line for root in /etc/passwd and changed its named. To fix it I tried using sudo to modify this file, but it does not let me sudo because sudo can't find the root user ...
3
votes
1answer
2k views

how to share Linux user passwords and Samba passwords

I have set up a Linux system with its own user account administration. It is not part of any domain (other than DNS). Now I want to allow its users to mount their home directories on a Windows system. ...
1
vote
2answers
1k views

Trouble logging in as user after changing password

I'm having trouble logging in with a newly-created password on my CentOS system. I recently installed the continuous integration server Jenkins on CentOS via yum, which created a "jenkins" user. ...
2
votes
2answers
1k views

How can I automatically pass the password to 'su'?

I am working on an exploit for a security course. The object is to obtain a root shell in a linux virtual machine. So far, I can write to /etc/passwd and change root's password to an arbitrary string. ...
1
vote
2answers
3k views

VSFTP configuring virtual user using passwd [duplicate]

Possible Duplicate: Why won't vsftpd let me log in with a virtual user account? I'm trying to configure virtual FTP users along with real users on a server. I installed VSFTP and it works ...
7
votes
3answers
8k views

Login with SSH user that has no password set

I have a user without a password set (i.e. passwd -d). I would not like to use public keys on this setup. Is there a way to SSH login to such a user?
7
votes
3answers
33k views

Trying to change a Ubuntu user's password, authentication token manipulation error

I'm trying to create a local user on a new Ubuntu box. I'm unable to change the password, and I keep getting the error below. The user gets added to the shadow file, but I can't get it to set a ...
3
votes
2answers
1k views

How to restore the /etc/passwd file?

I was doing some experiment about resource-accessing. By mistake, I executed this command, $ sudo mv /etc/passwd /etc/passwd.bak Then I could not execute any command with privilege(eg. sudo mv /etc/...
4
votes
2answers
619 views

Reset user passwd when you don't know it

I have a small problem. I have shared keys setup on my domain, so I never type my password to login anymore. I've forgotten my password now. This is a problem because only my user can sudo. Password ...
3
votes
2answers
3k views

Linux (redhat) how to change password to previous password

Is there a way to change password to value same as the previous password? I know this is a security flaw, but would like to know however. when I try this: [mrbean@wwwserver ~]$ passwd Changing ...
2
votes
1answer
5k views

how to add a SMB (samba) password for a user in Debian, when there is no smbpasswd binary?

I have samba installed on a Debian server of mine, and I use libpam-smbpass to keep UNIX and SMB passwords in sync. Passwords are only changed from unix logins via shell at the moment. However, just ...