I am trying to SCP a folder from windows to AIX. The folder on aix to which all the files are ftped is under user "newuser". From this folder, I need all these files to be copied out to a folder on the same box (owned by super user "dev22") with right permissions on all the files in sub-directories. I have set up the newuser"" on aix to login without entering a password while entering the sudo command.
How do i say in a shell script to
login as sudo and copy the files from the initall folder to the folder owned by the super user.?
I ran the following comand and it error-ed out
ssh newuser@aix sudo su - dev22
who: 0551-012 The process is not attached to a terminal.
Do not run who am i as a background process.
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc.
This document explains the different types of consol…
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…