0
votes
0answers
57 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 ...
24
votes
3answers
2k 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 ...
0
votes
2answers
324 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
1answer
52 views

Setting LAMP server webpage files rights

Today I decided to fix web-server file rights. Did only a little bit of testing to see how rights work so sorry for sounding stupid. I have Apache web-server on Linux (LAMP) which has multiple users ...
16
votes
2answers
4k 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?
1
vote
1answer
408 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 ...
1
vote
2answers
179 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 ...
2
votes
1answer
391 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.
3
votes
2answers
379 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 ...
2
votes
1answer
665 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. ...
2
votes
2answers
903 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. ...
8
votes
4answers
14k views

Cannot lock /etc/passwd; try again later

With several commands 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.
3
votes
2answers
772 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 ...
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 ...
2
votes
1answer
6k 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 ...
4
votes
2answers
501 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
2k 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 ...
5
votes
3answers
19k 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 ...
2
votes
1answer
4k 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 ...