LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Error And Using Root Correctly (https://www.linuxquestions.org/questions/linux-newbie-8/file-error-and-using-root-correctly-425168/)

jothi_bass2000 06-12-2006 11:13 PM

Regarding installing a patch.
I ve root permission, how to install a patch in my PC.

In vi editor how I can select a column and delete it.
Plse give the command.

Thanks & regards,
Jothibass

jothi_bass2000 06-12-2006 11:50 PM

Hai,
I got the below message when do ssh to a server. If I remove the .ssh file in home directory and then ty then its ok. Can you tell me about this and also the contents in .ssh file.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
76:eb:01:a0:a9:a0:de:1f:94:70:d2:82:fd:95:4b:fd.
Please contact your system administrator.
Add correct host key in /home/admin/.ssh/known_hosts2 to get rid of this message.
Offending key in /home/admin/.ssh/known_hosts2:4
RSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking."
here "xxx.xxx.xxx.xxx" is the host Ip address.
Thanks & regards,
Jothibass

jothi_bass2000 06-13-2006 01:53 AM

hai,
For the I need reply immediately bcze I want to know that & to solve that. I ve some more questions to u.

Thanks & regards,
Jothibass

timmeke 06-15-2006 02:39 AM

Can you login using some other method, like telnet, ssh, etc? I'm not sure if this will avoid the standard "/bin/login", but it may give you sufficient access.

If you do get on the machine, you could try looking for the libscript.so.1 file (use "whereis" or "slocate" commands for instance).

But then again, all these problems may be interrelated. For instance, let's assume your disk is completely full, then you can't create or open any files and you can get all sorts of errors...

Hence, I recommend sticking to one problem at a time, starting by fixing the disk space issue first. We'll deal with sudo/su access and your DB connection issue later.

jothi_bass2000 06-15-2006 05:51 AM

ok u can tell me regarding sudo/su and also I want to know about .bashrc file. Because
I have moved this file to some other place and when I login the prompt is different.
Before I move the prompt looks like "[corems:admin]~ >"
After I moved the or removed the prompt looks like "bash-2.05$"
So I ve found that the .bashrc file is created again.

Thanks & regards,
Jothibass

jothi_bass2000 06-15-2006 05:56 AM

For login problem u ve told that to see "libscript.so.1". The file is not found in my server.

timmeke 06-15-2006 06:30 AM

In what ways did you try to find it? Please post your commands and their results, if possible.
If "whereis" and "slocate" didn't find the lib file, then it's not in your $PATH.
Please post the result of
Code:

echo $PATH
A quick search however turned up no results for a file called libscript.so.1 (ie a place to download it, etc).

Can you please post the contents of your .bashrc file (the original one)?

It's normal that your prompt changes. In your old .bashrc, the prompt was probably altered by setting the $PS1 and/or $PS2 environment variables. When you changed the .bashrc file, the prompt probably reverted to the default (or to the setting in /etc/bashrc).

jothi_bass2000 06-16-2006 07:51 AM

This is the reply for the question "Installation of patch"
"You said you wanted to install a patch. Software installation is also left up to root in many cases (especially if it involves installing programs into directories only writable by root, like /bin)."
I ve root permission then how to install a patch?

In vi editor how to select a column and deleting it?

timmeke 06-16-2006 09:50 AM

What "patch" are you talking about? A kernel patch? An upgrade of a software package?
Did you try your package manager?

For vim, you can find almost any command's help by typing ":help".
":set mouse=a" makes vim listen better to the mouse actions.
What you requested, can be done by:
-left clicking and holding on upperleft character;
-pressing (just once, not holding it) Ctrl-V (for Visual Block mode)
-dragging your mouse to the lowerright character.
This should select a vertical block ranging between the upperleft and lowerright character. At least, it did so on my box.

Basic vi is much more simple then vim and supports less options, so I can't help you with that.
Most modern Linux systems should provide vim instead of vi though. Start vi by typing simply "vi" and see
if that tells you if it's "vi" or "vim".

jothi_bass2000 06-19-2006 02:34 AM

hi,


I m asking the command to select a column in vi or vim. By visual mode I can select a line, block etc. But if I want to copy a column or to delete which command I could use? plse tell me.

timmeke 06-19-2006 06:29 AM

I'm not referring to Visual mode, but to Visual Block mode.
By following what I told you, I was able to select a column.

Deletion, copying, etc probably uses the standard commands (ie yy for copy, dd for delete, etc).

See the help (type ":help"). The list of commands is just too long to cover here.

jothi_bass2000 06-21-2006 12:55 AM

Problem in Execution of scripts in bin
 
ok thanx,
I cant execute a script by placing it in bin. Previously I ve done by placing it in bin.
Can u tell what is the problem ? I cant excute anything which is placed in bin from other directory.

Thanks & regards,
Jothibass

timmeke 06-21-2006 01:47 AM

Can you be a little more specific? What are you trying to run in /bin? What are the file permissions on this file? What are the mount options of the disk /bin is part of?

jothi_bass2000 06-30-2006 04:38 AM

Regarding /bin
 
The files in /bin has all r,w,e permissions. Previously I ve executed that, I think now
some problem has occured. The files are the script generated by myself.

Thanks & regards,
Jothibass

timmeke 06-30-2006 06:28 AM

So, your script can't run some tools in bin, that do exist and are executable, right?
Can you tell me how your scripts call the tools in /bin?
ie if you call "mv", your $PATH plays a role. If you call it as "/bin/mv", then your $PATH isn't involved at all.


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