Hot answers tagged password
It is probaly called "password age limit". You can set it with the x option from passwd passwd -x 7 $USER will force you to issue a new password for the current user every 7 days. From the manual -x, --maxdays MAX_DAYS Set the maximum number of days a password remains valid. After MAX_DAYS, the password is required to be changed.
Use the instructions on this answer to access a recovery shell. Once you have your file system mounted with write support just move the file /etc/sudoers to another place and restore the original configuration with apt-get install sudo. Also, if you do not remember the password for your user you can take the chance and use the command passwd yourusername ...
your question is not clear for me.. I guess: 1)try to find a place that runs commands on boot up..usually in /etc then just write: (you can add commans at /home/user/.bashrc) /etc/init.d/ssh start /etc/init.d/networking start I guess: 2)you can add ssh command connection to .bashrc with sshpass command sshpass -p<password> This make auto ssh ...
It sounds like you enabled passwordless login (which is different from auto-login). This is controlled by membership of the nopasswdlogin group, so you should be able to disable it by removing your user from that group, e.g. using the command sudo gpasswd --delete username nopasswdlogin
Boot from live CD/USB Mount partition that has the issue at /tmp Chroot into /tmp Do sudo visudo -f /etc/sudoers.d/USERNAME Add USERNAME ALL=(ALL) NOPASSWD: ALL to file Remove live usb, boot normally Do sudo passwd root, this will set root pass Might work, haven't tried it in a while, but sounds right.
The sudoers file is default like this: # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Defaults env_reset # Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL # Host alias specification # User alias specification # ...
I had same problem. Try running this command: sudo gpasswd -d $USER nopasswdlogin this should work. The thing is that my user was in the nopasswdlogin group. I had to install the gnome-system-tools which has the GUI to manage users and groups. Then I ran the users-groups manager and change my user to NOT be part of the nopasswdlogin group. Problem ...
It might be because you filesystem is mounted with read-write permissions(are you in Recovery mode?). To mount your filesystem in read-write mode, in the terminal type: sudo mount -o rw,remount / and then change your password using passwd <username>.
As stated in MAAS documentation, altering the preseed files is not recommended, because it might prevent MAAS from properly commissioning and installing nodes. Are you able to connect to the node using SSH and user ubuntu? If so, looking in /var/log/dmesg and /var/log/syslog can help diagnosing startup and networking issues. If you need to alter the ...
Based on your edit, it looks like you have actually managed to log in as root. The sequence of commands you are showing does not make much sense (I understand it's hard to get used to the command line, that's not a complaint :) but since you end up with a prompt like this: root@ubuntu:~# you have managed to become root. You can make sure by running the ...
Only top voted, non community-wiki answers of a minimum length are eligible