Hi all,
I have several crontab entries run as oracle user. I need to prevent oracle user from being locked when the max failed login is reached. Is there a way to prevent it from being locked even when the server is hardened? OS is SunOs.
Thanks!
Hi all,
I am trying to configure sendmail on my OEL 6.5 running on VM.
I did below to set it :
1. # yum install m4 telnet mailx
2. # yum install sendmail sendmail-cf
3. # ps -ef | grep -v grep | grep -i sendmail
root 3805 1 0 05:58 ? 00:00:00 sendmail: accepting connections
smmsp 3815 1 0 05:58 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
4. # netstat -an | grep :25 | grep tcp
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
5. vi /etc/mail/sendmail.mc
From:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
To
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
6. # m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
7. # service sendmail restart
8. # vi /etc/mail/local-host-names
oracle.com
Now if I am sending mail from 1 user (root) to other user (oracle)
$ mail -s "Test mail from root" oracle
Hello this is the test mail
.
EOT
and checking mail log under /var/mail/oracle, its passing successfully.
But when trying to send the same from root user to my company outlook account not gtting any mail.
mail -s "Test mail from root" abc.xyz@aaaa.com (trying to send to my outlook account)
Getting below error on /var/log/maillog :
May 13 10:47:47 mydb sendmail[6306]: t4DEllUD006306: from=oracle, size=244, class=0, nrcpts=1, msgid=<201505131447.t4DEllUD006306@mydb.oracle.com>, relay=root@localhost
May 13 10:47:47 mydb sendmail[6307]: t4DEllxo006307: from=<oracle@mydb.oracle.com>, size=506, class=0, nrcpts=1, msgid=<201505131447.t4DEllUD006306@mydb.oracle.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
May 13 10:47:47 mydb sendmail[6306]: t4DEllUD006306: to=abc.xyz@aaaa.com, ctladdr=oracle (600/601), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30244, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t4DEllxo006307 Message accepted for delivery)
May 13 10:47:49 mydb sendmail[6309]: STARTTLS=client, relay=mail1.nic.aaaa.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
May 13 10:47:50 mydb sendmail[6309]: t4DEllxo006307: to=<abc.xyz@aaaa.com>, ctladdr=<oracle@mydb.oracle.com> (600/601), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120506, relay=mail1.nic.aaaa.com. [192.240.6.6], dsn=2.0.0, stat=Sent (1uc8dar1s7-1 Message accepted for delivery)
Please suggest if something I missed out or any other problem
Thanks,
Hi, does anyone know the username and password of the live Cylon linux? The Operation System locked the screen and now it requires a username and password, I honestly dont know what it is. I booted in live from a USB drive. Ill appreciate any help to solve this little problem, cheers for all Linux users!
Hello, I have an expect script where I ssh to a remote host to determine the network configuration and get from the user the network interface card that should be used. From their response, I determine the subnet mask and save the information to a text file that is later transmitted back to my local host. This is all so that I can set up virtual IP aliasing and verify that the physical IP address of the local and remote host are on the same subnet prior to continuing with the setup. I am running the script on Linux, with expect version 5.45.
The code itelf works just fine, but I'm having some issues with how it displays on the screen. As you'll see below in the example, the default system prompt displays, as does the user input command that I'm sending to the shell from the expect script.
Is there a regular expression or something that I can write to prevent the prompt and command that I'm sending from printing to the screen? I know that it should be suppressed if I have an expect command following the
Code:
send -s "\nread n_card?'Enter the network interface card number for this server (i.e. eth0): '\r
command, but everything I have tried for strings and regular expressions to expect causes the netstat -rn output to not show up all of a sudden. I'm new to expect, so I'm not really sure why this is happening.
I would really appreciate any help/suggestions. Thanks for your time!
Part of the Script Code:
Code:
expect {
-re $prompt { ;# Send individual commands and get user input
set timeout -1
# Get partner hostname and put in vipsetup.txt file
send -s "hostname > vipsetup.txt\r"
expect -re $prompt
# Display the network routing info for the user and prompt for
# network interface card number
send -s "print \"The network routing table for the $ptner server is displayed below:\n\" ; netstat -rn \r"
expect -re "\r(.*):\r"
send -s "\nread n_card?'Enter the network interface card number for this server (i.e. eth0): '\r"
interact "\r" return ;# Wait for user input from read command
send -- "\r"
send -s "echo \$n_card >> vipsetup.txt\r"
# Obtain subnet mask information for partner based on network
# interface card number being used
send -s "msk=\$(cat /etc/sysconfig/network-scripts/ifcfg-\$n_card | grep NETMASK)\r"
send -s "msk=\$(echo \${msk#NETMASK=})\r"
send -s "echo \$msk >> vipsetup.txt\r"
}
timeout {
send_user "Connection to host $hostip timed out."
exit 6
}
eof {
send_user "Connection to host $hostip failed."
exit
}
}
Script Output:
Code:
The network routing table for the PRIMARY server is displayed below:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.105.65.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.105.65.1 0.0.0.0 UG 0 0 0 eth0
[root@remotehost root]$
[root@remotehost root]$ ber for this server (i.e. eth0): ' <
Enter the network interface card number for this server (i.e. eth0): eth0
I have a Kubuntu install that works fine but for some reason, it grows the logs into hundreds of GBs.
Is there a method to prevent those logs from growing so large? I researched "log rotate" but I couldn't understand it.
I would like something established such that after a certain size, the logs are automatically deleted so I don't have to do it manually each time.
How would I do so?
Here are the logs:
#1: /var/log/syslog
#2: /var/log/kern.log
I already determined I don't need them, so I would like to auto-delete them once they reach a certain size.
Thank you.
A few of my servers show that this user id has expired.
I know that this is the name of a user account and group account and if I check out /etc/passwd there is an entry under /sbin/nologin. And, if I check under say top -u nobody, I don't see anything running for that user account. However that is the extent of my knowledge on this user account.
Should I be concerned that the passwd for this account is expired or are there cron jobs/programs that rely on this account?
thanks
Hi all
I need to install oracle application on red hat 5 .
What is the best steps for do that.
Kindly note that we need good performance for the application.
We use HP server proliant DL 380 G8
Please advise .
Many thanks
Hello, I'm sort of a novice Linux user and was running into an issue with user migration. I'm trying to migrate users and groups from a RHEL 5.11 install to a CentOS 6.6 install, both systems are 64 bit. Initially I tried to do an rsync of the passwd, shadow, group and gshadow files with no luck. When trying to login with an existing account on the new server I get access denied. I tried to change the password on the new server, but even then it doesn't seem to change the password and I still get access denied. I then tried to tar up the four above files and then extracted them on the new server, but the same issue existed. I also created a new account on the old server, copied all the necessary files over to the new server and still have the same issues. Any ideas what I may be doing wrong or what I can try next? This is getting frustrating!
Thanks!
I just created a Guest user account. When I rebooted, it went right into the Guest Account, without allowing me to choose and log in to the admin account. I tried Login Window and New Login in Administration panel. I tried Logout, but nothing happened when trying.
I accidentally hit run on the following:
sudo chmod -R go+r-x u+rwx /
and now I can not preform any command
Help would be much appreciated!
D
I have created a new user with "useradd" than changed the password with "passwd" (logged in as an administrator). After that I tried to login as the new user but couldn't. Error message was: "call to lnusertemp failed (temporary directories full?). Check your installation".
I currently use Debian 8.
I checked the home directory and couldn't find a new created folder for the new user (wasn't supposed to be done automatically by useradd?) and I checked the etc/password and there was the new user name inside it though.
What should I do? I really need to have more than one user on this computer...