Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
and now if i run as root (keys havebeen copied and i get directly ssh hostname /bin/ksh -t ) and it gives me root shell
root@goku$ ssh picolo 'ls -d /var/sadm/pkg/* | egrep "Prod|Dev|UAT" |cut -d\/ -f5;uname -r;grep -v "^#" /opt/Tivoli/lcf/dat/1/DMXAdaptiveFileSystem.dat'>sshwithroot
You are authorized to use this System for approved business purposes only.
Use for any other purpose is prohibited. All transactional records, reports,
e-mail, software, and other data generated by or residing upon this System
are the property of the Company and may be used by the Company for any purpose.
Authorized and unauthorized activities may be monitored.
|: No such file or directory
egrep: No such file or directory
"Prod|Dev|UAT": No such file or directory
|cut: No such file or directory
-d\/: No such file or directory
-f5;uname: No such file or directory
-r;grep: No such file or directory
-v: No such file or directory
"^#": No such file or directory
its like it is trying to ls everything... any idea what is going on?
Try breaking up the problem in pieces. For instance, forget about the egrep, cut, etc and try to do a simple ssh with ls/echo command as root.
You could also make ssh more verbose, so it prints more what is going wrong.
Any aliases set up for both root and non-root users?
In the first case it logins to picolo server using user@picolo
The second one use root@picolo .
Try to ssh into the picolo server using root user without any command to see if you get any errors.
Also try to log to picolo and run : ls -d /var/sadm/pkg/* | egrep "Prod|Dev|UAT" |cut -d\/ -f5;uname -r;grep -v "^#" /opt/Tivoli/lcf/dat/1/DMXAdaptiveFileSystem.dat form the server console.
Thanks for the suggesstion chaps, but i have tried all this. I've ssh'd in debug mode even trussed the process but i cannot see any reason why it is not working for root. I wonder if it is a bug? Will keep investigating.