LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-17-2017, 08:16 AM   #16
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712

Quote:
Originally Posted by fazal.jaddi View Post
Hello Wpeckham - Nice sense of humour, but it actually stands for Functional ID with special permission.
So let me explain you, what exactly i am looking for, In our env we are having 100's of server and each server having its own FID for which i need to search it manually and log in using those credentials so i want to create a script where i can store the credentials and call them whenever needed.

thanks
I am in agreement with the other posts. FID is something local that you (or your company, class, or group) has defined that is NOT standard and that no one else in the world can be expected to understand. I take it that it is simply the User ID that is used to run a particular process or suite of processes for some specific function (like the www family of UIDs for httpd).

The local case:
System scripts generally run as root and use lines like
Code:
su - <user> -c "command and parameters"
lines, see th su man page. If you want something to WORK like that but without needing root access, again I recommend sudo. Sudo can be sert up for one user to run specific commands or processes as another user with or WITHOUT requiring a password! If the password is required, it will be the password of the CALLING user, not the TARGET user.

Please check the SUDO man pages, but you will find better information (howto documents, etc.) online using Google. If you do not, please mention that here and we can point you to some specific pages.

The remote case:
Check ssh and putty (and putty-tools). It is easy to look up the credentials for a box ONE time and use them (and ssh-copy-id) to replicate your public ssh key to the remote ssh authorized_keys files so that logon is key authenticated without password. Using something like mpssh you can even remote execute a command over all (or some named subset) of all of the known hosts.

NONE of these solutions require a password embedded in a script and they are likely to be more secure than any scripted solution. Also, they are supported and work better and faster, and do not involve reinventing the horse.

Last edited by wpeckham; 02-17-2017 at 08:32 AM.
 
2 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Python Scripts as a Replacement for Bash Utility Scripts LXer Syndicated Linux News 1 01-17-2013 08:08 AM
How to get some bash scripts into a simple bash script with some echo and if statement. y0_gesh Programming 3 03-01-2012 09:46 AM
[SOLVED] Run multiple bash and php scripts from a bash script charu Programming 5 07-26-2011 02:40 AM
[SOLVED] Bash: functional difference between process substitution and here string with $( ) ? catkin Programming 2 03-15-2010 02:08 AM
[SOLVED] Finding bugs in bash scripts, Analyis tool for bash traene Programming 2 10-31-2009 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:46 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