Kmaiti

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 30 August 2011

Details about syslog on linux ?

Posted on 23:02 by Unknown
Syslog :Whenever syslogd, the syslog dæmon, receives a log message, it acts based on the message's type (or facility) and its priority. syslog's mapping of actions to facilities and priorities is specified in /etc/syslog.conf. Each line in this file specifies one or more facility/priority selectors followed by an action. A selector consists of a facility or facilities and a (single) priority.In the following syslog.conf line, mail.notice is the selector and /var/log/mail is the action (i.e., “write messages to /var/log/mail”):mail.notice /var/log/mailfacility.level_of_priority...
Read More
Posted in | No comments

Monday, 29 August 2011

How to create custom SELinux module on linux box?

Posted on 06:54 by Unknown
Background scenario :Here sftp was setup on linux box and sshd was not allowing sftp users to access their directories. Following messages found in audit.log:----type=CRED_ACQ msg=audit(1314648699.931:26195): user pid=25524 uid=0 auid=503 ses=671 subj=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred acct="user" exe="/usr/sbin/sshd" hostname=kmaiti.pnq.redhat.com addr=10.65.192.160 terminal=ssh res=success'type=AVC msg=audit(1314648699.931:26196): avc: denied { getattr } for pid=25524 comm="sshd" path="/chroots" dev=dm-0 ino=34612...
Read More
Posted in | No comments

How to add sudo user in linux?

Posted on 06:49 by Unknown
1. #useradd test1232. #usermod -G wheel -a test123 //add user to wheel group3. Uncomment following in /etc/sudoers file :# Uncomment to allow people in group wheel to run all commands%wheel ALL=(ALL) ALL4. Add user john in /etc/sudoers file :# User privilege specificationroot ALL=(ALL) ALLtest123 ALL=(ALL) ALLtest123 can run customized commands too. Try...
Read More
Posted in | No comments

Saturday, 27 August 2011

Why do I get error message "Access Denied Error Code : 0x8007005" during accessing samba share from windows machine?

Posted on 02:58 by Unknown
Following messages found during accessing samba share from windows machine :-----Windows can not access XXXcheck the spelling of the name, Otherwise there might be a problem with your network. To try to identify and resolve network problems, click diagnoseError Code : 0x8007005Access is denied-----Samba server (smb) has on linux box ie rhel 6.1. It has following configuration :#cat /etc/samba/smb.conf[Global] workgroup = IMSDOWNLOADSserver string = IMS Downloads hosts allow = 10.*log file = /var/log/samba/%m.log security = user encrypt passwords...
Read More
Posted in | No comments

Wednesday, 10 August 2011

How to redirect output of script to a file(Need to save log in a file and file should be menioned in the script itself?

Posted on 06:53 by Unknown
Expectation : @subjectSteps :1. Create a bash script.2. add line : exec > >(tee /var/log/my_logfile.txt)That's it. All output of echo will be saved in this file.Example :[root@vm68 log]# cat /etc/init.d/crond |head -2#! /bin/bash -x[root@vm68 log]# cat /etc/init.d/crond |head -5#! /bin/bash -xexec > >(tee /var/log/my_cron_logfile.txt)#[root@vm68 log]#rebootOP :[root@vm68 log]# cat /var/log/my_cron_logfile.txtStarting crond: [ OK ]As per your need try to modify the script and echo. OP will...
Read More
Posted in | No comments

Tuesday, 9 August 2011

How to check change log of package which came from RHN?

Posted on 03:21 by Unknown
Execute following command :#rpm -q --changelog pkg_nameTry...
Read More
Posted in | No comments

Sunday, 7 August 2011

How to capture good out put from strace command?

Posted on 23:59 by Unknown
Execute following command :----#touch /tmp/strace_op#strace -s 128 -fvTttto /tmp/strace_op command----Now analysis the file /tmp/strace_op. Note that time stamp has been captured here. So, you can check which system call took much time. If any command takes much time to response you can do strace to that command and analysis the output.Than...
Read More
Posted in | No comments

Friday, 5 August 2011

Why device name chaged after update the system or how to use UUID for device?

Posted on 04:23 by Unknown
This problem can be avoided through the use of UUIDs (universally unique identifiers) instead of traditional block device names (/dev/hda1, /dev/hda5, /dev/sdb) to uniquely identify harddisk or other storage media. This is because UUIDs are unique and never change even if you switch the harddisk ordering. Follow these steps to use existing UUIDs to identify your storage devices. 1. List the UUIDs of block devicesUse the blkid command-line utility to locate/print block device attributes:# blkid/dev/sda3: LABEL="SWAP-sdb3" TYPE="swap"/dev/sda2: LABEL="/"...
Read More
Posted in | No comments

Thursday, 4 August 2011

How to disable MSI at network driver level?

Posted on 10:05 by Unknown
Use following commands :#insmod bnx2.ko disable_msi=1#modprobe bnx2 disable_msi=1bnx2 is driver here. So, you need to replace ...
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • NDMP communication failure error
    Guys, Issue : Netbackup server sends alert NDMP communication failure once everyday. But there is no issue to run scheduled backup jobs. Env...
  • unable connect to socket: No route to host (113)
    Guys, This error message usually comes when you try to access remote linux desktop using vncviewer. Please check the firewall in the linux s...
  • How to store sftp log messages in custom file on RHEL 6?
    How to setup chrooted sftp account on RHEL 6? $groupadd sftponly $$useradd user123 $usermod -d /myhome -g sftponly -s /bin/false user123 $mk...
  • How to make bridge over VLAN?
    How to make bridge over VLAN? Bridging over VLAN's : By constructing a bridge between a "normal" and a "VLAN" ethern...
  • How to verify UDP packet communication between two linux system?
    Guys, Today, I had to check UDP packet communication between linux and a windows system. Main purpose of the windows system was to capturing...
  • what does it mean by "cman expected_votes="1" two_node="1" in cluster.conf ?
    For two node clusters ordinarily, the loss of quorum after one out of two nodes fails will prevent the remaining node from continuing (if bo...
  • How to install pdo_mysql module with php on 64 bit linux machine?
    Guys, The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver ...
  • configure: error: could not find library containing RSA_new
    Guys, It seems you have enabled the SSL option during configuring the package. Please either resolve that dependency or disable the SSL opti...
  • Cannot find config.m4 + phpize +Resolved
    Guys, I got the same error messages and sorted out it. Here is the error that I got. ===== root@server [/home/cpeasyapache/src/php-5.2.9/ext...
  • How to migrate VPS container to another virtuozoo node?
    Guys, I referred the following steps : I executed following command from the old node : ==== [root@old_node ~]# vzmigrate IP_of_new_node 213...

Categories

  • ACL
  • ESX
  • Linux
  • Storage
  • UCS

Blog Archive

  • ►  2013 (5)
    • ►  May (1)
    • ►  April (3)
    • ►  February (1)
  • ►  2012 (10)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (3)
    • ►  January (1)
  • ▼  2011 (86)
    • ►  December (3)
    • ►  November (2)
    • ►  September (19)
    • ▼  August (9)
      • Details about syslog on linux ?
      • How to create custom SELinux module on linux box?
      • How to add sudo user in linux?
      • Why do I get error message "Access Denied Error C...
      • How to redirect output of script to a file(Need to...
      • How to check change log of package which came from...
      • How to capture good out put from strace command?
      • Why device name chaged after update the system or ...
      • How to disable MSI at network driver level?
    • ►  July (5)
    • ►  June (9)
    • ►  May (12)
    • ►  April (3)
    • ►  March (4)
    • ►  February (5)
    • ►  January (15)
  • ►  2010 (152)
    • ►  December (9)
    • ►  November (34)
    • ►  October (20)
    • ►  September (14)
    • ►  August (24)
    • ►  July (19)
    • ►  June (3)
    • ►  May (25)
    • ►  April (3)
    • ►  January (1)
Powered by Blogger.