/srv/irclogs.ubuntu.com/2021/01/18/#ubuntu-server.txt

=== MIF0 is now known as MIF
=== ktosiek1 is now known as ktosiek
=== antoine3 is now known as antoine
=== SynfulAck_ is now known as SynfulAck
=== oerheks1 is now known as oerheks
=== ktosiek1 is now known as ktosiek
lordievaderGood morning07:19
=== calcmandan_ is now known as calcmandan
maretHey 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 directory12:21
maretcleary /etc/securetty doesnt exist. I am just not sure where its this comming from12:21
maretI am checking sshd_config but there is no path to /etc/securetty there12:22
minallHello Ubuntu Community!13:22
minallI 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:23
mybalzitchdisable password based authentication and use ssh keys13:37
minallmybalzitch: Lol my server is accessed on user root with password14:01
minallImma change that to ssh keys, thanks mybalzitch!14:01
=== TJ_Remix is now known as TJ-
=== minall is now known as Minall
c0fei 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
c0feso it will be mysql -u root -p and then the next line would ask for the password16:05
sdezielc0fe: 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:07
c0fesdeziel: is there a way to have it in that one big line? that would keep things simpler16:08
sdezielpassing the password as argument is more risky as other users can see it by checking the env16:08
sdezielc0fe: read -rp "provide the root password: " PASSWORD; mysql -u root -p $PASSWORD ...16:09
c0fesdeziel: wouldn't that be resolved by restarting the machine?16:10
sdezielc0fe: not sure what a reboot would solve16:11
c0feclearing out any credentials found in env16:12
sdezielno, 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 better16:14
=== jelly-home is now known as jelly
=== ijohnson is now known as ijohnsonlunch
=== ijohnsonlunch is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!