Search Results

Search: Posts Made By: shreeda
Forum: Programming 01-04-2011
7,268
Posted By shreeda
Oh I didn't think of it that way before! Thanks...
Oh I didn't think of it that way before! Thanks for reminding :) Then I need to find out a way from the application side itself! Let's see how it goes.
Forum: Programming 01-03-2011
7,268
Posted By shreeda
Thank you. That makes sense now. So my flow will...
Thank you. That makes sense now. So my flow will be something like
1) Have window sessions configured - With this idle sessions will be terminated anyway
2) Find other mechanisms to handle other...
Forum: Programming 01-03-2011
7,268
Posted By shreeda
I didn't quite get it:confused:. Could you please...
I didn't quite get it:confused:. Could you please explain? An example will be useful I think. Sorry for troubling, I'm new to these kinds of problems :)
Forum: Programming 01-03-2011
7,268
Posted By shreeda
There are some provisioning applications running...
There are some provisioning applications running on the server which also use login mechanisms. The users which are using such applications may not use any shell login (Instead they can login through...
Forum: Programming 01-03-2011
7,268
Posted By shreeda
Afaik, TMOUT is possible for shell logins. But I...
Afaik, TMOUT is possible for shell logins. But I need to consider the sessions like some Command Line Interface applications also. For those cases I think we need the C approach itself. What do you...
Forum: Programming 01-03-2011
7,268
Posted By shreeda
How to find inactive time of a process?
Hi,

I'm trying to write a C program that finds idle login sessions on RHEL6 and kill the sessions which are idle(inactive) for, say, more than 15 minutes. I tried to use procfs.h is my code. But...
Forum: Red Hat 01-03-2011
8,373
Posted By shreeda
Thanks a lot. I will refer this.
Thanks a lot. I will refer this.
Forum: Red Hat 01-01-2011
8,373
Posted By shreeda
Hi, Just an update: I decided to go with the...
Hi, Just an update: I decided to go with the default permissions that came with the box. They are indeed better compared to the changes I was thinking about. There seem to be more than one reason why...
Forum: Red Hat 12-30-2010
8,373
Posted By shreeda
Yes similar analysis is what I meant :) Will post...
Yes similar analysis is what I meant :) Will post the updates once it is done. Most likely I will stick with the default ones.
Forum: Red Hat 12-30-2010
8,373
Posted By shreeda
@Corona688, Thanks a lot for the inputs. Yes...
@Corona688,

Thanks a lot for the inputs. Yes you're right, /etc/passwd and /etc/shadow were already hard enough. And changing the group will only soften them as "sys" has more users. Like you said...
Forum: Red Hat 12-30-2010
8,373
Posted By shreeda
Thanks a lot for the reply. But I have similar...
Thanks a lot for the reply. But I have similar permissions on hardened solaris systems!! That's why I was thinking about such a change. Just curious, are these changes on the weaker side because of...
Forum: Red Hat 12-30-2010
8,373
Posted By shreeda
secure file permissions!
Hi experts,
I have RHEL6 system which I want to tighten by having strict permissions for some important files. Looks like, RHEL has below permissions by default:-
/etc/passwd:644:root:root
...
3,455
Posted By shreeda
Wow!! This worked like charm for me. Thanks a ton...
Wow!! This worked like charm for me. Thanks a ton :)
Here's how I used it...
MY_BANNER_SSHD=`awk -F= '
/^MY_BANNER_SSHD/ {print $2; if(!/\"$/)f=1 ;next}
f && /\"$/{print; f=0; next}
f'...
3,455
Posted By shreeda
^^^ I'm afraid restricting the text to single...
^^^
I'm afraid restricting the text to single line won't help me. :(



This is not quite helping me, it only clears MY_BANNER_SSHD= from my input file :(

But is there a way to use sed or...
3,455
Posted By shreeda
^^^ Thanks a ton for quick reply. I want to...
^^^

Thanks a ton for quick reply. I want to put some sample banner text into those variables. Something like
WARNING_MESSAGE="This is a
secure system!
All activities will be monitored!"I tried...
3,455
Posted By shreeda
How to parse a file for text b/n double quotes?
Hi guys,
I desperately need some help here...
I need to parse a file similar to this:

I need to read the values for MY_BANNER_SSHD and WARNING_MESSAGE. The value could be empty/single line or...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy