New answers tagged su
The password length in the user account dialog always shows five dots (•••••) regardless of actual length of password. Otherwise, this would be an information leak, making it (theoretically) easier for an attacker to brute-force or otherwise guess your password. Note, though, that the su command is looking for the root password. You may not have even set ...
The easy solution is to change your password, making it at least as long as the minimum password length required by Fedora. After that, you should be able to use that password in sudo. The change to the minimum length was discussed early this year in LWN Fedora and "strong" passwords, indicating that this would be 8 characters. If you change your password ...
If the script is running as the root user, this sudo command string should execute the command without requiring a password. sudo -H -u ubuntu /bin/sh /home/ubuntu/backup.sh
For me a combination of sudo and screen worked out: sudo -iu vagrant screen -mS npm_install bash -c 'cd /vagrant && npm install' This command first switches to the vagrant user. Then as vagrant changes the directory to /vagrant and executes npm install.
try sudo cat /etc/sudoers and based on what is there and the restrictions on the user you may have some luck with "sudo sed", "sudo grep", or even "sudo vi" to edit the /etc/sudoers directly or indirectly. This worked for me when I playing with sudo.
Top 50 recent answers are included