I need a one-liner from inside a go routine to change a user’s password in linux. The command that WORKS from the command line: But this doesn’t work from my Go program. I have tried substituting other one-liner commands, such as: drm file.txt, touch file.txt, etc. And those all work. The Go program is in a package inside a big
Tag: passwords
cannot call sqlplus from linux where password contains $ dollar sign
I have spent hours trying various suggestions and combinations but for the life of me cannot get a call to sqlplus from direct linux command line or from a bash script to work with a password containing a $ I have tried these I have tried the same as above but putting before the $, and various other attempts
Cannot access to mysql 8.0 after change root password
I have mysql 8.0 work under centos 7 minimal. I change the password using this command mysqladmin -u root -p’Pass-123***’ password Myp@$$123 . After this , i try to access to mysql via mysql -p but i cannot access with the new password. How i can do this ? Answer You changed the password commandline on Linux. In sh/bash/zsh the
Linux tr command not working as expected
I have this password generator: Which works fine as follows: But fails as follows: The tr command is explicitly saying: remove all characters which do not belong to the given set Thus the characters , and . are unexpected. Where do they come from? Answer There’s also another part of tr’s man page that you overlooked: CHAR1-CHAR2 all characters from
Can a program leave no traces behind when handling passwords?
There is a script that generates a passwords and stores it in a variable and in a file. Then the password in the variable is used to encrypt another file. That’s it! Now that is not hard to write the hard part is: Can you delete all traces? Because from what I have read the commands in the script (and
php password check with hash doesn’t work
I write a login page and a checking page in php. On my local machine it work, but on the server it doesn’t (if it matter I’m on Windows and the server is on Linux). Here is the code in the checking page: The strange thing is that when I enter something with letters to the password input the system
passwordless ssh from linux to Solaris works for oracle user but not for ftpuser [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Changing SAMBA Password in Java
I have a Java program running on linux that needs to be able to both set a users initial samba password, and then allow them to change their password without giving them access to the terminal. Below is my code for changing the users password, as this is easier to test with, and I will be able to figure the
Is there a way to ‘store’ Sudo temporarily
I’m quite new to Linux. I remember using a tutorial were you were able to declare your sudo (+password) at the start and then use terminal without having to do sudo or import your password again. I.e. Sudo yum-get update -> yum-get update. Sorry if this is a very obvious question, I honestly don’t remember where the tutorial was from,