General :: Scripts Should Use An Informative User-agent String With Contact Information?
Jun 19, 2010
After installing Slackware 13.1, I find that I am getting the message:scripts should use an informative user-agent string with contact informationwhen I access certain websites. Wiki pages, for example. This happens only with Konqueror. Any ideas as to what I might change to gain access to content,
View 1 Replies
ADVERTISEMENT
Jul 30, 2011
How would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?
View 1 Replies
View Related
Jun 22, 2009
I have to fetch the information present in MIB of network agent.. i dont how to strat my program. pls text one sample program.
View 3 Replies
View Related
Feb 9, 2010
There's browser identification menu for spoofing for specific sites, but i need to change user agent for all sites. How do I do it?
View 1 Replies
View Related
Jan 17, 2010
I'm trying to watch TV shows off of ABC.com, ABC.com is sending back the following warning:
Code:
Platform not supportedYou appear to be using an unsupported operating system or Web browser. In order to use our video player, we require:Windows XP/Vista with Internet Explorer 6+, Firefox 3
Mac - Firefox 3+, Safari 3+
I think that this is bogus, and I probably need to switch my user agent so that it shows the correct version of firefox, but shows my OS as Windows XP/Vista or Mac. Here is the output of about:config showing all of the user agent strings:
Code:
general.useragent.extra.firefox;Firefox/3.5.7
general.useragent.locale;en-US
general.useragent.security;U
[code]...
As I understand it, these strings get assembled into the user agent header, which looks a little bit like this:
Code:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100106 Firefox/3.5.7 I pulled this from Wireshark, after changing the user agent values above... obviously the changes that I'm making in Firefox aren't affecting what's going out over the wire. Right now, I'm in 'press and guess' mode... if someone can give me a better idea of how user agent strings are actually set in Firefox, what the individual values are, I might have a slightly better shot at figuring this out. This is, of course, only the first part of the problem. If ABC is using something proprietary to send out their video, I may still be out of luck...
View 6 Replies
View Related
Jun 15, 2010
I'm using debian lenny (5.0.4) on 3 different laptops, two fresh installs and one was installed with etch and then updated.In the one that has been updated pairing works without any problem, while in both the others it doesn't work. I can see this on syslog when I try pairing from the phone:Jun 15 10:31:02 robertof-lt hcid[17891]: io_capa_response sba=00:22:5F:00:C2:1F, dba=C0:38:F9:D3:29:A3)Jun 15 10:31:02 robertof-lt hcid[17891]: io_capa_request (sba=00:22:5F:00:C2:1F, dba=C0:38:F9:D3:29:A3)Jun 15 10:31:04 robertof-lt hcid[17891]: No agent available for user confirm request
View 1 Replies
View Related
Apr 11, 2011
I want the last login information whenever I log in through FTP.
This is possible for normal console and SSH logins by configuring in /etc/login.defs file. But I am not able to view the last login information when FTP is used.
View 5 Replies
View Related
Mar 29, 2011
how to find the only particular user (usage) of memory information
View 6 Replies
View Related
Jun 9, 2010
Ubuntu Documentation > Ubuntu 9.04 > Ubuntu Server Guide > Security > User Management states that there is a default minimum password length for Ubuntu:
Say the password is to be modified by the user using passwd. Is there a command for displaying the current password policies for a user (such as the chage command displays the password expiration information for a specific user)?
This is rather than examining various places that control the policy and interpreting them since the process could contain errors. A command that reports the composed policy would be used to check the policy setting steps.
View 1 Replies
View Related
Sep 20, 2010
After Days of trying to install Nagios, I eventually got everything working fine ! The only problem now is I get the following error message on the nagios web interface: "It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."
View 1 Replies
View Related
Feb 27, 2010
I need to write a script to report useful information on disk utilization for each user's home directory.For each directory I need to show: 1. the long listing of that directory entry (but not the files in the directory), so that I can see the rights and owners of the directory.2. The amount of disk used by that directory, in human-readable format, including subdirectories. I need to have two lines for each user one after the other. For example:
/home/user1 directory info
/home/user1 disk usage
/home/user2 directory info
/home/user2 disk usage
The script will assume that all users, except user root, have their home directories in the /home directory (no need to do anything with the /etc/passwd file). And if the administrator adds or removes users, the script should still work correctly (so the script shows the information for all current users).
Here's what I do know. The command "ls -ld /home/user's_name" will give me the info I need for #1. And the command "du -hs" will give me the info I need for #2. What I don't know is how to grab each individual directory in order to apply the above commands to each of them in order. ???
View 14 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
Oct 22, 2010
copy string a to string b and change string b with toupper() and count the chars
View 3 Replies
View Related
Apr 28, 2010
Here are the specs of my machine: Linux matrix 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux Server release 5.2 (Tikanga)
When I run an ldapsearch in root, it works fine. tcpdump filtered by dest IP shows packets captured.
When I run an ldapsearch in a perl script as root, it works fine. tcpdump filtered by dest IP shows packets captured.
However, when I run it via a perl script in my cgi-bin directory it fails. tcpdump shows no packets captured. When I added a "2>&1" to my ldap search in my cgi script, I got "ldap_bind: Can't contact LDAP server (-1)".
I ran a "whoami" in my cgi script and it showed up as apache.
Another twist to all this is that I ran the same test on my slackware box, and everything works (esp the cgi script). Here's what the specs are on that machine:
Linux slackvm 2.6.29.6-smp #2 SMP Mon Aug 17 00:52:54 CDT 2009 i686 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux
I checked the permissions on the ldapsearch file and directory, and they're the same (755).
Could there be something blocking the apache user on my Red Hat box from sending packets out?
View 2 Replies
View Related
Apr 2, 2011
I want to replace a string of directory path in a string to empty:
Code:
But this doesnt seem to give me the desired thing:
Code:
This gives the desired outcome, but its specific, i need a variable in the sed not a string. And if I replace STRING="/mnt/sda1/record/$dd/" then I cant use it for something else, cause its has all the weird backslashes now.
View 3 Replies
View Related
Jan 31, 2011
Here's my code on SLES v11.
#! /usr/bin/ksh
MQSILIST=$(mqsilist)
RUNNING="BIP1284I: Broker 'BRK1E' on queue manager 'BRK1QME' is running. BIP8071I: Successful command completion."
echo $MQSILIST
if ["$MQSILIST" == "$RUNNING"]; then
echo "Running."
fi
Here's the error I receive. user@host:~/scripts> ./check_BRK1E.sh BIP1284I: Broker 'BRK1E' on queue manager 'BRK1QME' is running. BIP8071I: Successful command completion. ./check_BRK1E.sh[8]: [BIP1284I: Broker 'BRK1E' on queue manager 'BRK1QME' is running. BIP8071I: Successful command completion.: not found [No such file or directory]
View 1 Replies
View Related
May 4, 2010
Does anybody know of a way to display all user ID information? Akin to the lsuser command from AIX? Need to find out if an ID is disabled/locked out sucessfully.
View 1 Replies
View Related
Nov 4, 2010
i have a file name using the following pattern:
PREFIX: AR
SOURCE: LEGACY
DATETIME: YYYYMMDD_HH24MISS
SUFFIX: .txt
sample filename:AR_LEGACY_20101104_105500.txti want to extract the source which is LEGACY in this case. how do i do this using shell?
View 1 Replies
View Related
Apr 16, 2011
I'm running OS X and it appears that after SSHing to several machines, using identity files, my ssh-agent builds up a lot of identity / keys and then offers too many sometimes to a remote machines, causing them to kick me off before connecting.
Received disconnect from 10.12.10.16: 2: Too many authentication failures for cwd
It's pretty obvious what's happening, and this page talks about it in more detail:
SSH servers only allow you to attempt to authenticate a certain number of times. Each failed password attempt, each failed pubkey/identity that is offered, etc, take up one of these attempts. If you have a lot of SSH keys in your agent, you may find that an SSH server may kick you out before allowing you to attempt password authentication at all. If this is the case, there are a few different workarounds.
Rebooting clears the agent and then everything works OK again. I can also add this line to my .ssh/config file to force it to use password authentication:
PreferredAuthentications keyboard-interactive,password
Anyhow, I saw the note on the page I referenced talking about deleting keys from the agent, but I'm not sure if that applies on a mac since they appear to be cleared after reboot anyhow. So, my question is, is there a simple way to clear out all keys in the ssh-agent (the same thing that happens at reboot)?
View 1 Replies
View Related
Jan 2, 2010
I wonder if there is any chance to read the last time when the actually logged user have changed the mouse cursor and stroke the key.
View 3 Replies
View Related
Jul 20, 2011
I am using gdm to start awesome wm via .xinitrc.I like awesomes usability and gnomes integrity and so far most of the startup programs work fine but i am fighting with ssh-agent. When starting gnome my password protected id_rsa is automatically added to ssh-agent on startup.. i am trying to achive the same with my .xinitrc started awesome wm.My .xinitrc:
/usr/libexec/at-spi-registryd &
/usr/libexec/gdu-notification-daemon &
gnome-screensaver &
[code]....
View 2 Replies
View Related
Jul 19, 2010
i install cheops-ng-0.2.3.tar.gz on my fedra13,installation was ok,but when i press alt+f2 and type cheops-agent[the server],it won't run,there would be no process called cheops-agent,but when i run it in terminal i can run cheops-ng [the client],what is wrong?
View 1 Replies
View Related
Mar 15, 2010
I have added an identity to ssh-agent
Code:
ssh-agent /bin/bash
ssh-add ~/.ssh/id_dsa
After restarting the machine. I removed all the identities by
[Code].....
View 3 Replies
View Related
Jan 5, 2010
I just updated some user account information on my server and when I log on from a client it the ypcat passwd command shows the old info. How do I make it update? A related question... my NIS users can only log in on client machines using the terminal; it doesn't work at the graphical login screen. Is this normal? I'm new to NIS (just set it up last night) and still getting this stuff sorted out.
View 2 Replies
View Related
Oct 3, 2009
Consider the two runs of finger command for two different users:
Code:
[root@localhost ~]# finger root
Login: root Name: root
[code]...
View 3 Replies
View Related
May 3, 2010
i'm trying to use the database that was used by vpopmail and vqadmin with postfix and dovecot. By setting up dovecot to use mysql, i can query username and password for authentication but how do i create a user and edit its information in the database? Poastfixadmin only use database that was created along when installing it.
Any viable option aside from recode postfix to meet my criteria?
View 1 Replies
View Related
Jan 20, 2009
I use tomcat as my server platform in Ubuntu for a war file. I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
Here's the link:
[URL]
In order to get users'ip, in jsp, use request.getremotehost() or request.getremoteaddress() by editing the jsp file. I wonder if there's some open source software to use for these two purposes.
View 1 Replies
View Related
Feb 4, 2010
How do i check if a string entered by a user starts with a particular pattern or not?
View 3 Replies
View Related
Mar 18, 2010
I wanted to set up Computer Lab. loading Fedora 11 OS and one system acting as a Server to store Users(Student) Login Informations. When students do a programs, all programs (eg, C++ programs) files should be saved in the local fedora system but when login to the system, the login should be validate by a Server System.
View 5 Replies
View Related
Mar 7, 2010
i use this script to get the time and date of back and fourth transactions for a particular execution id. I use a substr command on the 5th column to to cut the milli seconds off the time value. - otherwise the times would look like 08:30:04.235
grep <executionID> <auditfile> | awk '{ print $1, $2, $3, $4, substr($5,1,8}
FIX -> Mon 3/1/2010 08:30:04
FIX <- Mon 3/1/2010 08:32:36
FIX <- Mon 3/1/2010 08:35:08
[code].....
anyhow - i append two sed commands to further clarify the direction of the message.
awk '{ print $1, $2, $3, $4, substr($5,1,8} | sed -e 's/->/ ->IN/g' | sed -e 's/<-/<-OUT/g'
FIX -> IN Mon 3/1/2010 08:30:04
FIX <- OUT Mon 3/1/2010 08:32:36
[code]....
I tried using an awk gsub () command within the string instead of the two seds, but it did not work:
awk '{ print gsub(/<regex>/, <replace with>,$1), $2, $3, $4, substr($5,1,8}
the sed works ok, but it would be cooler to make the replacement within the awk command:
gsub(/->/,-> IN, $1)
Is there a way where i could replace the value of the $1 column in the awk print string?
View 1 Replies
View Related