LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2017, 01:16 PM   #16
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled

Root is not the same as DBA, and root cannot login to the database without a user ID and password.
 
Old 05-23-2017, 01:26 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by usao View Post
Root is not the same as DBA, and root cannot login to the database without a user ID and password.
what color crayon did you use?
 
Old 05-23-2017, 01:42 PM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
Quote:
Originally Posted by BW-userx View Post
what color crayon did you use?
Not a helpful comment, BW, I'm sorry to say. If you disagree with something the previous poster said, can you counter their arguments or post a critique rather than this? Many thanks.
 
Old 05-23-2017, 02:00 PM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by hydrurga View Post
Not a helpful comment, BW, I'm sorry to say. If you disagree with something the previous poster said, can you counter their arguments or post a critique rather than this? Many thanks.
oh gezzz you cannot figure it out so you just assumed it was I trying to start an argument? I said color ME stupid, .... then I was informed that it is for some data base thing ... read his post, then ALL I said what what color crayon did you (he) use.

can you not understand the course of events that took place? no arguments out of me whatsoever. I am now removing that email me link to this post. have a informed day.

Last edited by BW-userx; 05-23-2017 at 02:01 PM.
 
Old 05-23-2017, 02:05 PM   #20
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by BW-userx View Post
I said color ME stupid
Ha! That one had escaped my attention as well! Luckily hydrurga asked so BW could explain ;-)
 
Old 05-23-2017, 02:06 PM   #21
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
Quote:
Originally Posted by BW-userx View Post
oh gezzz you cannot figure it out so you just assumed it was I trying to start an argument? I said color ME stupid, .... then I was informed that it is for some data base thing ... read his post, then ALL I said what what color crayon did you (he) use.

can you not understand the course of events that took place? no arguments out of me whatsoever. I am now removing that email me link to this post. have a informed day.
Ah, humour - not quite international yet. No, I still don't understand your chain of thoughts but ok, fair enough. Onwards and upwards...
 
Old 05-25-2017, 01:22 AM   #22
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,860

Rep: Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596Reputation: 2596
One possible method is to have the 'front machine' use ssh keys to connect to the db box and run a script there that has the user/passwd reqd.
A variation (on front box) is to use ssh-agent to get the key into memory and leave the process running as a daemon that can then run other scripts on the db box.
 
Old 05-25-2017, 01:38 AM   #23
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,695

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by usao View Post
That's the rub. Ive heard of some type of key server type of thing, but don't know anything about them.
Supposedly you can checkout the password dynamically, in memory, but I don't know what they are called or anything else.
That would probably be keyrings - gnome has an implementation that allows users to store secret data. There are even python bindings for it.

I have no personal experience coding for it, but your favourite search engine should be of use.
 
Old 05-25-2017, 03:18 PM   #24
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,836

Rep: Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370
Keyrings may work.

I'd be tempted to look at a similar differnt authentication method that doesn't rely on trying to hide a password. Use of a self signed certificate may work unless you wish to purchase one.
 
Old 05-25-2017, 03:46 PM   #25
justmy2cents
Member
 
Registered: May 2017
Location: U.S.
Distribution: Un*x
Posts: 237
Blog Entries: 2

Rep: Reputation: Disabled
I apologize if this not helpful as I may not understand the the question

Code:
read -p 'Username: ' uservar
read -sp 'password: ' passvar
echo
echo "Thank you $uservar we now have your login details"
The s In read -sp makes the password silent

Last edited by justmy2cents; 05-25-2017 at 03:48 PM.
 
Old 05-25-2017, 03:56 PM   #26
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by justmy2cents View Post
I apologize if this not helpful as I may not understand the the question

Code:
read -p 'Username: ' uservar
read -sp 'password: ' passvar
echo
echo "Thank you $uservar we now have your login details"
The s In read -sp makes the password silent
Where does it read it from?
The whole point of an automation is that it's a background or batch job, no one is there to answer the questions.
 
Old 05-25-2017, 04:22 PM   #27
justmy2cents
Member
 
Registered: May 2017
Location: U.S.
Distribution: Un*x
Posts: 237
Blog Entries: 2

Rep: Reputation: Disabled
Yeah It prompts the user to type in password so I believe it reads from the terminal.. I don't think this would be of help then, since no one would be there to type it in.. Im actually trying to solve the same problem (I think) in the thread I just made today in programming (to automate the creation of passwords for my automated creation of users).. You can request to have your thread moved to the programming section aswell where it may get more responses..

Last edited by justmy2cents; 05-25-2017 at 04:31 PM.
 
Old 05-27-2017, 01:09 AM   #28
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,235
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
but read can also be used in scripts without user input.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passwords in scripts Entropy1024 Linux - Newbie 16 09-22-2016 05:32 AM
hiding passwords in bash scirpts aristosv Linux - Software 27 04-07-2016 11:38 AM
Hiding arguments in shell scripts 3saul Linux - Software 2 01-09-2006 02:44 PM
passwords in shell scripts djcham Linux - Software 4 10-04-2005 01:57 AM
Hiding Server Side Scripts TomalakBORG Linux - Enterprise 3 07-26-2005 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration