General :: Automate Ftp Session Without Bare Password Being Seen?

Mar 11, 2010

I need to ftp some files nightly from my linux box to an arbituary ftp server not controlled by me.

The ftp server admin has granted me an account for the purpose, but do not wish me to store the plain username or password in any script files for security reasons. How can I do that?

the wrong way would be:

Code:
$ cat my_script
open server_address
user plane_ftp_username plane_ftp_password
put a.txt

[Code].....

View 8 Replies


ADVERTISEMENT

Software :: Shell Script Commands To Automate Server Or Host Telnet Login Session?

Feb 7, 2010

finally i found the script for telnet automated login session...<<Mod edit: questionable link removed>>

View 4 Replies View Related

Programming :: Automate The Password Prompt Required For Sudo Commands?

May 31, 2011

I have written a script to run commands on remote servers, it is working fine. But when I am running "sudo commands" on the remote servers, it asks for me password after prompting for ssh password. I am unable to automate this password prompt (which is just after ssh password prompt). This is the function I am using to provide passwords

Code:

pass ()
{
cd $DIR/"$dt1"_"$dt"
/usr/bin/perl << 'EOF'
use strict;

[code]....

I want the same function to be used , when it expects for sudo passwords for any of the below lines:

Code:

[sudo] password for vikas: orPassword: This is my "cmd" file passed in pass () function.

Code:

ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 192.168.1.100 "bash rcmds"

This is my script output

Quote:

[vikas@box1 ~]$ ./rscript.sh
++ rm -rf /home/vikas/May_31
++ mkdir -p /home/vikas/May_31
++ set +x

[code]....

how to automate the password prompt required for sudo commands.

View 8 Replies View Related

Slackware :: Set Default User And/or Password In Console Login, Automate Startx?

Jun 23, 2010

- is there a way to set the default user in console login so that all needed is to press enter(or event without it) to be able to input the password for that user - also is it possible to console login without password, by just inputting user name and pressing enter how to put startx for that user right on login, so that the user doesn't input the command manually

View 6 Replies View Related

General :: Git Push In A Git-init Without --bare Option?

Jun 26, 2011

- I see that in git, I can't do git-push to a repository that wasn't created with git-init --bare. Why?

- But doing git-pull and git-checkout to the same repository is possible.?

View 1 Replies View Related

General :: Stripping Linux To Bare Necessities

Jan 25, 2011

I just got 512M RAM so i thought to switch off all the programs that i most likely will not need. The big ones, i think might be, gdm, gnome, metacity. I think a plain X will suit my purpose.

View 10 Replies View Related

General :: VMware ESXi Without Bare Metal

Aug 27, 2010

Can I install VMware ESXi on my Dell Inspiron laptop having core i3 processor which has got 4GB of RAM? I can allocate 100GB of hard disk space for that. This is just to practice and explore the features available. Can I install Vmware ESXi iso on KVM hypervisor like installing guest OS?

View 4 Replies View Related

General :: Bare Minimum Crash Proof Distribution?

Jan 21, 2011

I have a very powerful I7 Intel processor. On this computer I want to simply run an instance of Apache Tomcat (dedicated server) running a java application with a bunch of things like mail server, servlet container, jasper, etc. Some versions of linux have too many features that I do not need. I do not want the clutter of features I will never use. What is the bare bone version of linux distrib? would that be debian?

These two distributions seem to be popular elsewhere on the internet:

CentOS 5 (64-bit)
Ubuntu Linux 8.04 LTS Hardy Heron (64 bit)

View 2 Replies View Related

General :: RHEL 5.4 - Xen Image Directly On Bare Metal

Aug 14, 2010

I have worked on Xen which is being shipped with RHEL 5.4, Is it possible to install Xen hypervisor directly on bare metal, so that we can save resources. I searched in Xen Official site, but could not recognize the product that can be directly installed on bare metal like VMware ESX.

View 3 Replies View Related

General :: Xterm And Nedit Have Unreadable Font When Running On Bare X?

Apr 1, 2011

Title says it all.The font is unreadably garbled and missing pieces of text.I will try to post a picture but I do not know if I can since I am posting from links2.

View 2 Replies View Related

Ubuntu :: Password For Guest Account Session

Sep 14, 2010

I enter guest session and try to install an app. I am asked for a password, I try with mine (for my account) but it seems to be incorrect(logical). Well how can I find the password for the guest account???

View 3 Replies View Related

Ubuntu :: What Is Xubuntu 11.04 Live Session Password

May 23, 2011

I downloaded xubuntu 11.04 for an IBM Laptop. I wanted to see what it was like but cannot get into live session as the desktop loads then switches to a login splash with 'Other', when clicked I am then taken to Username and Password before I can enter the Live Session. I have tried to click enter leaving it blank.

Tried Ubuntu
Tried Xubuntu

Nothing gets me into a live session.

View 2 Replies View Related

General :: Open Source Or Third Party Applications Do A Bare Metal Recovery On Debian?

Aug 17, 2010

Are there any open source or third party applictions can could do a bare metal recovery on Debian or any linux machines? We are looking for a solution that won't need a shutdown or reboot.

View 2 Replies View Related

Ubuntu :: Changing Session Type When Login In Without Password?

Sep 26, 2010

I am unable to change session type when not requiring passord on login.

How requiring password was changed:

System/Administration/Users and Groups
Clicked on my User
Clicked "Change" next to "Password: Asked on login"
Checked the checkbox for "Don't ask for password on login"
OK'd, everything

Please try this yourself as it might be hard to understand. But the option to change session type (ie: Gnome failsafe instead of reguar Gnome) is only visable along side with the password field.

Is it possible to make the session type setting visable without requiering password on login?

View 3 Replies View Related

Ubuntu :: 10.10 Unable To Enter Password After Session Is Locked

Oct 24, 2010

I have recently install UBUNTU 10.10 and I have found after leaving the computer unused for sometime it locks itself. When I try to unlock by typing password, nothing prints on Password box, I also tried swtich user nothing works. The only option left is to shutdown.

View 1 Replies View Related

Ubuntu :: Incorrect Password Causes Freeze When Unlocking Session?

Apr 1, 2011

After locking my GUI session, if I type my password incorrectly when I come to unlock it, the system often (not always) seems to hang for a long time, with the text "Checking..." displayed. The length of time can be many minutes.The system is not actually frozen - if I hit CTL+ALT+F6 I can log on to a console session, from which I can see a tty7 process (i.e. the GUI session) using the 'ps' command. Sometimes the only way I can recover is to kill this process, upon which a new GUI session starts up, but this is undesirable as I lose any open applications.

View 1 Replies View Related

OpenSUSE :: How To Make Computer Start KDE Session By Asking Username And Password?

May 20, 2011

I am using OpenSUSE 11.4 on my office desktop computer. I would like to prevent users tinkering my computer, since there are personal and important files. How can I ask a username and password? I have one of course, but it is asked only if I log out and then log in. In the first boot, everyone can reach the KDE desktop.I am pretty sure it is an easy task.

View 3 Replies View Related

Ubuntu :: Default User ID And Password In Remastersys For Live Cd / Usb Session?

Aug 23, 2010

what is the default user ID and password in remastersys for live cd / usb session?

View 3 Replies View Related

General :: Automate Backups Over SSH On A Desktop?

Jun 7, 2011

I currently have a setup which allows me to connect to all computers on my home network via SSH and RSA keys. I'm very security-conscious, so all of my keys are passphrase protected. I'd like to essentially set something up where I'm running Unison on a cron job to back up to a file server on my network, which we'll call timmy. I've noticed that the first time I try to use a key on my Ubuntu laptop teeks, I get a dialog which pops up asking me to type in my key passphrase. I've heard that for servers needing to make automated backups like this that one should use ssh-agent to ask for the key passphrase on login/server start. How can I set this up on teeks?

I'd essentially like to have the following happen:When I boot and come into the OS, prompt visually for the passphrase as is done when I first use a key.If I SSH into this computer (as it's internet-facing) and I haven't provided the SSH passphrase yet, then prompt for it. (Sometimes, I might need to remotely reboot the machine over SSH, so I'll be SSH'ing into it after it reboots and I'd like to be able to authenticate the key without having to VNC in and do it manually.)

View 2 Replies View Related

General :: Automate Tasks In Linux

Feb 10, 2011

I'd like to get the information about automatization of the tasks in Linux, more specifically in Fedora with minimal installation (without graphical interface and so on).The application (developed in C) needs to be started automatically when the computer is initialized. I've read about cron but I guess it's not a solution in this case because whenever computer starts the application must run once.I also have read about the/etc/ rc.local file but I made some tests changing it and they didn't work, the computer starts asking me the login and password but nothing run after that.The inittab was the same. In this way, someone know how to initialize an application developed in C when the computer starts?

View 6 Replies View Related

General :: Automate A Definition Process?

May 24, 2011

I would like to automate a definition process. I have 11,581 to define. :|

I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.

The word list has one word per line.

Python script?
Bash?
Perl?

Its an interesting project but I cant seem to figure it out. Lack of programming skills.

View 2 Replies View Related

General :: How To Automate Log Deletion Process

Feb 25, 2010

I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.

View 1 Replies View Related

General :: Automate Archiving Of Log Files Using Tar?

Mar 29, 2011

I need to tar this logs, but i dont how to make it simplier to me. Everyday there are created this five logs. I need to make five tar files from every day from this files at the end of the month

For example

Till now i have tar it manualy (copied every file)

View 2 Replies View Related

General :: Automate Sourcing .bashrc When Su - To Root

Oct 16, 2010

I need to source the my /home/me/.bashrc file every time I "su -" to root. Is there any way to automate this? I cannot edit any thing in the root's environment as it is shared by people.

View 7 Replies View Related

General :: Automate Reboot And Possible Pending E2fsck's?

Apr 19, 2010

I have a heavily used file server that I want to restart, then if it requires e2fsck's on any volume to run them after it restarts. The only problem is that the server is rarely rebooted, and they said it might kernel panic because its been so long. I've heard there's a way to have it go past the kernel panic if it does happen, but I'm not sure how to do that or the other stuff.If it was a Windows server, I would schedule a shutdown with the force switch, and have the chkdsk's already scheduled for each volume on reboot. But for RHEL, I really don't know.I'm hoping this can be done, so that way I can have it kick off at say 7am, then when I get in at 8am it will probably be near the end of the e2fsck's so I can see what's going on.

View 11 Replies View Related

General :: Automate Computer To Power Off (and On Preferably) Under Certain Circumstances?

Dec 31, 2010

I've been using Windows Home Server as a Backup Appliance, Media Server and Share Server at home for some time. I decided it was costing me allot of juice so very early on added the "Lights Out" add-on to ensure it was only running as and when needed.

I'm now looking to switch to a Linux based server and I'm looking for a similar tool/set of tools for advanced power management.

Now the question;

Anyone got any all-in-one suggestions (i.e with client parts for both Windows and Linux and a server part for the Linux server), or can anyone simply verify that I'll need to set-up all the individual bits for this myself separately?

View 4 Replies View Related

General :: Automate Sudo Su - User Command From A Script?

Feb 9, 2011

i want to automate sudo su - user command from a script...it will then ask for a password...how do i automate this?

View 3 Replies View Related

Red Hat / Fedora :: Graphic Interface - Wont Work - Just Black - Cant Type Password And Login To Get In Session

May 1, 2010

I have a problem with my graphic interface, it wont work any more, its just black i cant type password and login to get in the session, what can i do ?

View 9 Replies View Related

General :: Automate Copying Files To Multiple Directories With Log For Admin

Sep 30, 2009

Description: I am a newly appointed system engineer taking care of linux servers. We have a new set of data coming in which need below configuration: How to do a script with function?:

for files with ".txt" in sm
copy each of the files to folder : sm1 and sm2 (log every copy)
if succesful:
remove original
log into the log file
if not successful: (not successful copying 1 particular file to all the folders)
retain and retry
log into the log file
mail out the admin with that particular file name

I have already do try a bit:
cd /export/home/
for dir in sm1 sm2; do
cp -p sm/*.txt $dir/
done
Is my starting right? How to do the rest parts?

View 6 Replies View Related

General :: Automate And Track Patch Management For Ubuntu / It's Systems

Jul 30, 2010

I've inherited the following Virtual Machine scenario and am new to Linux Administration and Patch Management. The Host Operating System is Windows 2003 Enterprise, which has VMware Server 2.0.2 installed. Under the VMware Server 2.0.2 I have a Ubuntu 32-bit OS web server running Apache2 Web Services. When I log onto the Ubuntu server (9.10 32-bit) I see the following two lines just above the new mail/last logon lines.

85 packages can be updated
55 updates are security updates

I would like to see at least a summary of each update and its urgency so I can notify the various developers/server owners to get their input regarding whether we should or should not apply that particular update to the server. We apply the patches in our test/dev environment first then once vetted there we roll them out to our production servers. What I am looking for is a way to automate the gathering of the information and once approval has been received automating the actual patching process so that I do not have to manually perform the apt-get process for each separate package needed/approved.

Ideally I would like a recommendation for a GUI based package to manage this process and that is capable of generating the appropriate reports for the 'powers that be' regarding the current security/patch management environment. For proof of concept I would like a free version that is not hamstrung in functionality but is not too costly to procure the production version with no limitations.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved