Questions related to Linux 'passwd' command.

learn more… | top users | synonyms

0
votes
3answers
115 views

How do I encrypt a new user's password using the useradd command?

I would like to create an encrypted login password for a new user while using the useradd command in the CLI. I know that using option -p will allow me to create a password, but using this option does ...
3
votes
1answer
30 views

Revert root passwd to its default “empty”

It is said to be more secure. Having root with a password, how do I revert it to be empty? This documentation is pretty explanatory: https://help.ubuntu.com/community/RootSudo And the command would ...
0
votes
2answers
164 views

parsing `/etc/passwd` to find root user, and whether user can run interactive shell

I want to parse /etc/passwd file to find out if the user has root privilege and can run interactive shell. according to UID 100-999 are reserved by system for administrative and system ...
1
vote
1answer
22 views

Importing users that will be installed by programs

I am migrating from an old Ubuntu 10.04 server to a different machine, upgrading to 14.04 at the same time. One of my tasks is to migrate the users, so I have exported a list of users with UID > 1000 ...
0
votes
0answers
33 views

Precedence of duplicate entries in /etc/passwd and how to clean up

I am migrating from an old server to a different machine, upgrading from Ubuntu 10.04 to 14.04 at the same time. One of my tasks is to migrate the users and I have exported a list of users with UID > ...
0
votes
1answer
36 views

Difference between htpasswd and passwd

What is the difference between htpasswd and passwd when setting passwords for users?
2
votes
0answers
36 views

Why does `passwd -l` (--lock) also prevent ssh key-based login?

I locked a users password with passwd --lock [userName], the man page and this answers tells me, that a locked password doesn't prevent other means of logins (e.g.: ssh key-based). Quote from man ...
1
vote
2answers
124 views

Pipe users to change their passwords

I am trying to make a bash command change all user's passwords to x. awk -F: '$3 >= 1000 && $1 != "nobody" {print $1}' /etc/passwd Can I pipe the users that are returned to passwd? I ...
1
vote
0answers
84 views

winbind and passwd issues

I successfully configured a Ubuntu 15.10 Workstation to authenticate against Active Directory. The only thing left so far is the ability to change the Active Directory password. When I enter the ...
0
votes
1answer
201 views

How to write a shell script to ssh to a remote machine and run a few commands there

The flow of my actual requirement is as follows. ssh from system1 to system2 Run the passwd command for the logged-in user in system2 Enter the preferred new password Logout and throw a message [...
0
votes
1answer
222 views

Why I can't change my ubuntu root password? [duplicate]

I've been using Ubuntu 15.04 for a while with my password, so far so good (I'm the only user and root). But I wanted to change my password and tried to do that throuth terminal withsudo passwd. It ...
0
votes
1answer
786 views

Can't change root password, passwd doesn't do anything

I just got a dedicated server with ubuntu 14.04 on it. I haven't received root details in my server info email, but instead for a different user. So I wanted root access and tried to change the ...
1
vote
0answers
64 views

Delete a duplicate username?

My ubuntu login screen shows two accounts with my username. I am only able to log into one of them, and I have no idea where the other one came from or what the password is. My /etc/passwd file shows ...
0
votes
1answer
131 views

Recover encrypted home directory: login passwd changed, mount passphrase lost

I have made an extensive research through the site before submitting a new question, but on one side I'm a huge noob and on the other side non of the previous queries seems to fit my case. I'll try ...
0
votes
0answers
69 views

Change Ubuntu forgotten password while still logged in

I changed my account password but forgot it, but I am still logged in. Is there any way to change the forgotten password which does not require rebooting or restarting the computer as I can't shut ...
2
votes
2answers
66 views

Ubuntu - login with old and new password

Running Ubuntu 12.04, I changed the password of a user using "sudo passwd user" but now that user is able to login using both the old password and the new password. Any idea of why this would happen ?
2
votes
1answer
225 views

How to delete User with User ID and GID 0

I just created a user with UID and GID to 0. Now when I access this user lets say "abc" will login as root. But when I loin as root i cannot list all the directories with ls command where i can do it ...
1
vote
1answer
70 views

Ubuntu asks for password where none is set

Everytime I want to use sudo it asks for a password, which sounds odd since I didn't set one, but apparently you need to do some tricks around it first. I figured I should first create a password and ...
1
vote
1answer
3k views

root shell bash commands not working

I attempted to change my sudo password(I removed myself from sudoers list by mistake). I tried following. In recovery mode, I dropped down to root shell. It is still asking root password. Ctrl D ...
0
votes
1answer
148 views

Script wont print my echo statement (Also need to suppress the warning)

I am trying to write a very simple shell script in Linux. The Scenario I am trying to achieve is: Creating an user account and giving it a password internally (No interaction with user allowed for ...
0
votes
1answer
232 views

ubuntu 14.10 not accepting my password

I've tried changing it from grub recovery mode and using root@username mount -rw -o mount / and typing passwd username and entering my new password but when I try to login with the new password the ...
0
votes
2answers
2k views

Ubuntu won't accept password

I have a notebook with Ubuntu 14.04 installed... My user is set to auto login, but everytime I need to input the password (for installing applications for example), it won't accept the actual password....
0
votes
1answer
81 views

modify another user's password entry with sudo power

what are the sequence of commands to modify another user's password entry with sudo power in ubuntu? I like to change the other user's pass in ubuntu with sudo power?
1
vote
2answers
3k views

Allow root access without passwd

Have a VirtualBox Ubuntu guest (14.04) used for the sake of testing only. The root user has its own password, so I can login as root in a separate terminal (su -), or directly from a login session (eg ...
2
votes
1answer
137 views

How to interrupt the passwd command?

When I type passwd, I get Changing password for <user>. (current) UNIX password: Now suppose at this point I change my mind and I decide to stay with my old password. What should I do? Ctrl +...
0
votes
1answer
61 views

User stopped being sudoer after release upgrade

I've upgraded one of web server, that was running Ubuntu from 11.10 to 12.04 (No downtime since it's creation, though serving 10-40k requests/daily). sudo apt-get install update-manager-core do-...
2
votes
0answers
138 views

Login denied with correct Password after grub-rescue

On thursday last week i made a mistake when trying to enlarge my Win7 partition with the Windows tool. As a result i had my bootpartition deleted from the partition table an could not boot, neither ...
0
votes
1answer
156 views

I've changed my login by manual editing the /etc/passwd and my former password is not recognised

I've modified the /etc/passwd by changing manualy mickey to mike such as: mike:x:1000:25357:mike:/home/mickey:/bin/bash Unfortunately, when I'm trying to log as mike, my former password in not ...
0
votes
1answer
118 views

Allow PHP for accessing filesystem [closed]

I'm a newbie and I have installed Linux Mint (x64 Ubuntu-based) and Apache v2.0, PHP 5.5.9 and MySQL. Then I installed WordPress and I was almost unable to upload and edit files (I got "Permission ...
-2
votes
1answer
60 views

administrative passwd how to change it in the root [duplicate]

each time i go to the root and try to change my passwd an error occurs and it says authencation manipulation error or some thing like that.and btw the passwd s match. whoever knows whats happening ...
0
votes
1answer
65 views

Stuck in a mess

I'm stuck in mess. I recently blanked my administrative password. When I try to do anything that requires a password, I don't have one. Also installing software from the networking bash console(to ...
1
vote
1answer
682 views

Is it possible for users not to be in passwd? [closed]

So I have a shell on a remote server. [alexandros.dimos@fep-62-1 ~]$ whoami alexandros.dimos [alexandros.dimos@fep-62-1 ~]$ cat /etc/passwd this too long the point is my user is not ...
1
vote
1answer
80 views

Re-disabling the root account

In ubuntu by default the su (root) password is not not set. I have set it by using the sudo passwd (see link). But I didn't like it. Can I go back to my original state.
-1
votes
1answer
204 views

Moving Encrypted Folders

How can i move Encrypted folder(everything) to new Disk, my HDD that has Linux is about to blow, its so slow. So I bought SSD but, how can i move encrypted folders because my Linux folders are ...
1
vote
2answers
107 views

Can we login to the 'root' (Not as root user but in the 'root' user) user in ubuntu?

I want to login as user 'root' in bash shell, but do not know the password of it. Here I am talking about the user which i have found in passwd as below: sudo cat /etc/passwd root:x:0:0:root:/...
1
vote
1answer
3k views

Rkhunter 122 suspect files; do I have a problem?

I am new to ubuntu. I am using Xfce Ubuntu 14.04 LTS. I have ran rkhunter a few weeks age and only got a few warnings. The forum said that they were normal. But, this time rkhunter reported 122 ...
0
votes
1answer
1k views

Backup and restore user passwords

Is it possible to make a file copy to backup users password and then restore them by copying them back? It seems that the file in question is /etc/shadow as per http://en.wikipedia.org/wiki/Passwd#...
0
votes
1answer
392 views

/etc/passwd file is corrupt and i cannot change it i also cannot login as root

I have attempted to change the file /etc/passwd in ubuntu server 12.04 and I tried to change the root username. I only changed one part of the root username this is what i have: main:x:0:0:root:/...
5
votes
2answers
10k views

what is difference between /etc/shadow and /etc/passwd

I think both files /etc/shadow and /etc/passwd are same? they just report some information about accounts.What is the difference betwwen them?
8
votes
5answers
4k views

Rename /etc/passwd and /etc/shadow for security reasons [closed]

I have a server. My server is secure, but let's imagine a good hacker that enter in. He can now look into /etc/passwd and /etc/shadow. I would like to rename that files /etc/passwd to something like /...
0
votes
3answers
292 views

Change Password and Install VLC player

I am the new user of Ubuntu. Recently I installed Ubuntu 13.04 on my system. Actually I want to change my previous password with the new one. Secondly , I want to install VLC player through commands. ...
0
votes
1answer
56 views

What can I do when on a used computer I can not enter the administrator account? [duplicate]

I recently purchased a used computer, and the owner could not remember the administrater password. It has 13.04 on it.
0
votes
1answer
155 views

give user access to passwd command

How to give permission for the new user account to have access to passwd command to allow this new user account to be able to change other account password? I tried zxcvbnm ALL= NOPASSWD:/etc/passwd ...
6
votes
4answers
12k views

user does not exist in /etc/passwd when trying to change the default shell

I want to change my default shell from tcsh to bash. So I tried and this is what happened: >sudo chsh userid Changing the login shell for userid Enter the new value, or press ENTER for the default ...
1
vote
2answers
252 views

Running my shell script instead of Ubuntu's built-in file

I have my shell script ready to be run. But my problem is when I need user to run my shell script and not the Ubuntu's built-in file For example, I want user to run my passwd shell script and not ...
0
votes
1answer
104 views

which else commands does command passwd involve? [closed]

Have thought that command passwd uses for encryption of input the command mcrypt ? But instead it is crypt resp. encrypt ? Source-code of crypt/encrypt is not available ? When am not confusing this -...
0
votes
2answers
2k views

When I try to reset my password using root I couldn't type [duplicate]

When I try to reset my password from the root menu using the passwd command, it says "type new unix password", but I can't type. Please help!
1
vote
2answers
3k views

'root' user does not exist?

When I run the su command, the terminal returns: user 'su' does not exist.How do I add the root user? Can anyone answer this? I tried sudo adduser su, but after this, I get the same problem.
3
votes
1answer
2k views

chpasswd silently fails to do anything; is there a substitute?

After a series of break-in attempts, I generated new random passwords for all the users on my Ubuntu 12.04.2 LTS server running Virtualmin and then, as root, used chpasswd to change their passwords. ...
0
votes
1answer
114 views

How to change password of user to very simple like 'w'? [duplicate]

It says at least 6 characters. I want to change to easy input. How to change password of user to very simple like one character 'w' ? Thanks