Red Hat / Fedora :: When Log In, This File /etc/host, Under The Etc Directory Get Appended The Username?
Feb 19, 2010
I am having a problem with two linux boxes I have. They are running Centos 5.3 and Centos 5.4. The problem is that when I log in, this file /etc/host, under the etc directory get appended the username I am logging in as, the IP address I am logging in from, and worse, the password in clear text.This is the format it uses:username@IP (password in clear text) [Tue Jan 12 2010 13:00:26 -0500]Is it possible for someone to tell me what is this about, and how to stop it?
Can't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:
Unable to access file /home/username/.iceauthority: No such file or directory
Using failsafe I can start a terminal. From terminal I tried to start X
Code: sudo startx Result: Running on desplay:0
So I tried to run this;
Code: sudo startxfce4 And I get up a graphical desktop.
So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.
how to update a series of values from multiple grep commands outputs to be appended to a single row of a csv file? Work on a linux envir. The values from grep output will be numeric values.
Output sold look like:
1,3,4,5,7,0,5
Each of these values will be odtained from multiple grep commands piped with wc -l Is it possible to update a single row of a csv file if so pleas ehelp me with the command to be used to redirect the output into the csv file
if ! [ -f ${PATH}/myfile.txt ];then echo $(date +%Y%m%d"_"%H%M%S)": Nu am gasit fisierul ${PATH}/myfile.txt" ps -fxu pin | grep "/usr/local/coreutils/bin/tail -f ${LOG_PATH}/x.log$" | awk '{system("kill "$2)}' cat ${LOG_PATH}/x.log | sed -n -e '/LONG/{x;1!p;g;;}' -e h > ${PATH}/myfile.txt
[code]....
I have a continuously growing log file (x.log) in which i have to look for certain lines that contain "Long". The line above each line containing the word "Long" it contains a time stamp. I want to extract each line containing the time stamp into myfile.txt and check the difference between time stamps. Whenever there is a difference i need to run another script (${CAL_PATH}/${APP_NAME}), then sleep 1, then continue searching. Lines with "Long" do not appear continuously, but in blasts. The script runs fine until the first pause encountered. Starting with the first pause, tail -f doesn't write in myfile.txt anymore. Can someone help me understand why "tail -f" it stops writing into myfile.txt? Or does someone know an alternative to "tail -f" of achieving the initial scope of the script?
I am in the process of setting up an Asterisk server with Broadvoice services. I am having issues with making outbound calls and Broadvoice suggests I modify the /etc/hosts file in order to add their proxy server IP address and name. I login to my server as root and get the following command line header
[root@root tmp]#
I entered cd thinking this is what I need to change directory but fails. What is the command I need to enter in order to get to the /etc/host file so I can change it? How do I confirm an /etc/host file even exists?
I try to find what users visiting in terms of websites and the stations.webalizer do nice graphs.but, Squid log file only keep IP address with websites.I need squid to keep IP address along with host name and username of the person.how do I do it ?
I am thinking update squid to Dans-guardian.
Does Dans-guardian keep all username and host name ?
I am working on different versions of Ubuntu & I looking for a script that will prompt the user to enter the host name & user name that he wanted for that system at initial boot up.
People usually suggest workarounds to do this, as it's not possible with usermod while the user is logged in. Did I overlook anything or is this method not preferable over creating a new account, setting the user permissions, then moving the files and messing with the file permissions? Using the right tool for the job would seem to be less error-prone to me. 1. Activate the root account by setting a password.
Code: sudo passwd 2. Log out and log into the root account. 3. Change the username and home directory from user1 to user2. This will also move the files to the new home directory and rename the group to user2. Code: usermod -l user2 -d /home/user2 -m user1
i have problem on my ubuntu 10.10 after i change user name to root and home directory username ( old one ) , and now users and groups not working asnd all application on old user not working !
I am a bit of a n00b when it come to linux but I am setting up a test environment were I have a appliance monitoring network traffic. Part of my test requires me to copy a file via RCP from one host to another host. I have two ubuntu boxes. I have allowed the subnet in the etchost.allow for ALL. I have installed rsh-server
When I try to copy the file it looks like it tried to use SCP instad of RCP because it connects to 22 instead of 544. Also note that traffic must be unecrypted thus me trying to use Is there anyway to make ubuntu go old school to allow me to use rcp instead?
Code: testuser1@ubuntu:~$ rcp /home/testuser1/test.txt testuser1@10.46.41.38:/home/testuser1 ssh: connect to host 10.46.41.38 port 22: Connection refused lost connection testuser1@ubuntu:~$ rcp usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [Code]....
after updating my system I can't start VirtualBox-OSE anymore. I get the error:
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: VBoxVMM.so: cannot open shared object file: No such file or directory
I try to remove and to re-install VirtualBox-OSE again, still the same error. VirtualBox works as root but not from a user account. The installed version is VirtualBox-OSE.i686 3.2.6-2.fc13 @rpmfusion-free-updates
I am trying to run Ansys on Fedora (64bit), but every time I do it gives me this error. "error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory"Please help as I am stuck with this issue for long.
i have a problem with realplayer 11 i can't open it due to that error message
Code: /opt/real/RealPlayer/realplay.bin: error while loading shared libraries: libgdk-x11-2.0.so.0: cannot open shared object file: No such file or directory so how can reveal this problem
Is it possible to disable all passwords in debian. I do not need any security usernames and passwords. I don't want type sudo all the times and i want free acces all the time. With debian i allways have some premission problems and why i need a password for my home computer?
1. For example today when i tried to install a file debian told me that my username is not in sudoers file. How can i fix this? 2. Is it possible to disable all passwords and asking admin premission, i dont need that kind of ??? for my home computer. (including the login screen user/password asking) And i am sorry for my grammar errors, i hope you can still understand what i have tried to say.
I've just installed F11 (x86_64) on my computer. I've been using x86_64 since Fedora 7 and normally I use a manually installed i386 firefox/thunderbird. This time I've tried to do the same using Fireox 3.5b4 but I got many troubles. The last error I got is:
./firefox-bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory but that lib is not available on the standard repository. I've tried to use the i386 version of thunderbird (2.0.0.9) but I got this error: ./thunderbird-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory but on the repository there is just the libstdc++-4.4.0-4.i586 lib.
Running Fedora 12 (32 bit). 2.6.32.14-127.fc12.i686.PAE #1. Trying to open Amarok or digiKam generates the following error:- error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory.
Package exists in /usr/lib. Above 2 are the only applications affected that I've noticed to date. Googling indicates possible problem caused by recent flashplayer upgrade but I'm not sure.
Trying to install Cadsoft eagle pcb design app and getting :- error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
[root@localhost Downloads]# yum provides */libssl Loaded plugins: presto, refresh-packagekit No Matches found
If I interactively ssh to a remote host and enter commands, I can up-arrow through the command history.If a script ssh's to a remote host and calls a command, it does not get appended to the history.How can I configure ssh or sshd so that this happens? I'd like to be able to have those scripted commands available in the history file when I log back in interactively.
Consider this stanza for a directory on my Apache server:
<Directory "/var/www/html/mine/wedding"> Options FollowSymLinks Order allow,deny Allow from all AuthType Basic AuthUserFile "/etc/httpd/htpasswd_file" Require user username </Directory>
And I receive bash: /etc/init.d/hostname.sh: No such file directory
For hostname I've use "hostname" and my actual hostname, and both receive the same error.
Although when I do hostname is shows the correct hostname but without the the comcast part of it , and when I type in hostname -f, I get the correct hostname with the comcast part of it.
I have a SAN drive space connected to a SLES 10 (OES2) server. The server sees the drive at /dev/sdb1, and I was able to use fdisk to create a partition on it. I created a new directory /mnt/testvol, where I would like to mount the SAN drive to. Fdisk shows the volume to be at /dev/sdb1 and lists it as Linux filesystem.
I used this command to try to mount it: mount /dev/sdb1 /mnt/testvol -t nfs and I get this error: mount: directory to mount not in host:dir format
my problem is inkscape-0.48.0-1.fc14.3.src.rpm in fedora 14 64 bittry rebuild --source inkscape-0.48.0-1.fc14.3.src.rpm and this my error:I think something wrong pkgconfig .
attributes.cpp:20:32: fatal error: glib.h: No such file or directory compilation terminated. arc-context.cpp:21:28: fatal error: gdk/gdkkeysyms.h: No such file or directory
You may know the Humble Indie Pack 2, which is a set of crossplatform indie video games. There's one game in the bundle that doesn't offer a 64bit build and therefore it fails to load. It's called Braid and that's what you get when you try to run it: $ ./braid ./braid: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Of course the 64bit libs for OpenGL and the propitiatory nvidia drivers are installed, but the game asks for the 32bit ones, at least to my understanding. I do know that why can install 32bit libraries on a 64 bit linux system (we do that for the sake of crappy Adobe Flash), but I don't know where to find these libs (searching the repo with keywords like .i586 or ia32 led me nowhere).