[07:19] <lordievader> Good morning
[12:21] <maret> Hey everyone, I am having a sudden problem to connect to my ubuntu server using sftp , I get an error vsftpd: pam_unix(vsftpd:auth): Couldn't open /etc/securetty: No such file or directory
[12:21] <maret> cleary /etc/securetty doesnt exist. I am just not sure where its this comming from
[12:22] <maret> I am checking sshd_config but there is no path to /etc/securetty there
[13:22] <minall> Hello Ubuntu Community!
[13:23] <minall> I will soon begin to work to my Ubuntu server over SSH, my question is> What do I have to 'know' and tweak in my server so I can be a good administrator?, since this server is accessible via internet?
[13:37] <mybalzitch> disable password based authentication and use ssh keys
[14:01] <minall> mybalzitch: Lol my server is accessed on user root with password
[14:01] <minall> Imma change that to ssh keys, thanks mybalzitch!
[16:05] <c0fe> i am writing a script, part of it is going to call up mysql and the login, the script will be one big line. how can i input the commands so it accounts for the mysql login?
[16:05] <c0fe> so it will be mysql -u root -p and then the next line would ask for the password
[16:07] <sdeziel> c0fe: you could possibly put the credentials in ~/.my.cnf or have your script ask for the password interactively before calling "mysql -u root -p $PASSWORD"
[16:08] <c0fe> sdeziel: is there a way to have it in that one big line? that would keep things simpler
[16:08] <sdeziel> passing the password as argument is more risky as other users can see it by checking the env
[16:09] <sdeziel> c0fe: read -rp "provide the root password: " PASSWORD; mysql -u root -p $PASSWORD ...
[16:10] <c0fe> sdeziel: wouldn't that be resolved by restarting the machine?
[16:11] <sdeziel> c0fe: not sure what a reboot would solve
[16:12] <c0fe> clearing out any credentials found in env
[16:14] <sdeziel> no, once the mysql command would be finished, the env would be "cleared". The problem is while it is running, others can observe the password which is why using ~/.my.cnf is better