Redhat Linux 5

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Redhat Linux 5
# 1  
Old 03-18-2010
Redhat Linux 5

Can anyone help me outwith the post installation script.I'm newbie to scripting!
i need to customize the post installation script using kickstart..here are the requirements to be set
set permissions /etc/crontab =400
/etc/securetty=400
/etc/sysctl.conf=600
and following services to be set OFF for runlevels
autofs 1256
avahi-deamon 1256
bluetooth 156
sendmail 156
and also set the default mask to 027 from 022
# 2  
Old 03-31-2010
Try this in your ks file:

Code:
%post
chmod 400 /etc/crontab
chmod 600 /etc/sysctl.conf
chmod 400 /etc/securetty
chkconfig --level 1256 autofs off
chkconfig --level 1256 avahi-deamon off
chkconfig --level 156 buetooth off
chkconfig --level 156 sendmail off
sed -i 's/022/077/' /etc/bashrc

By the way I wouldn't mind if you use descriptive titles.

Last edited by verdepollo; 03-31-2010 at 05:45 PM.. Reason: typo
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Difference Redhat Linux/RH Enterprise Linux

what is the difference between Redhat Linux and Redhat Enterprise Linux. whereas Redhat linux have Server installation options too. (2 Replies)
Discussion started by: hananabbas
2 Replies

2. Red Hat

Redhat Linux 4 crashed

Hi, I am having redhat enterprise linux 4 machine with kernel version 2.6.9-39.EL.Whenever I ran some java applications related to mechanical the system got crashed and powered off. last output is as shown below. reboot system boot 2.6.9-39.EL Fri Sep 24 15:23 (01:43)... (0 Replies)
Discussion started by: ktrimu
0 Replies

3. UNIX for Dummies Questions & Answers

Redhat Linux?

I seen a pool that said Linux was the most popular Unix download. I then seen Redhat Linux is the most popular Linux download. Is there a difference? Is it the better program/s? (6 Replies)
Discussion started by: Mr_Pinky
6 Replies

4. Slackware

Redhat Linux?

Hi, I use linux and it is a great OS, I use Redhat Linux 9 and I was wondering are they going to update 9 or they'll be leaving that to the fedora project? I would like a stable linux distro. Thanks -n (9 Replies)
Discussion started by: Insomniac
9 Replies

5. UNIX for Dummies Questions & Answers

Linux RedHat. Help please.

I from russia. install rus Linux RedHat. When i load linux it ask me for user name and pass... and up of ask form label: Welcome to localhost... dont remember... what i want write in it? (sorry, bad english..:( ).. (1 Reply)
Discussion started by: Sen
1 Replies

6. UNIX for Dummies Questions & Answers

Redhat linux version

Guys How do i know the version of linux (Redhat) on one of our systems..Thanks in advance..The uname -r gives 2.4.18-0.13..Is it the kernel version (3 Replies)
Discussion started by: sssow
3 Replies

7. UNIX for Dummies Questions & Answers

GUI for Redhat Linux

I just installed Redhat Linux 8.0 and I do not know how to get to my GUI Desktop. Right now I'm just in the shell please help. (2 Replies)
Discussion started by: savagebeast
2 Replies

8. UNIX Desktop Questions & Answers

RedHat Linux Cd

I am wondering if anyone has copies (or can burn me a copy) of RedHat Linux. I will pay shipping charges... I don't have a CD burner and i dont want to run it off of my hard drive... please email me at: empireinfo623@yahoo.com or baldwitm@muc.edu (5 Replies)
Discussion started by: thedude623
5 Replies

9. UNIX for Dummies Questions & Answers

redhat linux 7.3

hi, just installed redhat linux 7.3 on my server, and put it in gnome gui. Does anyone know what software i need to run a web server??? and what software i need to set up a proxy to secure it? also, if these are free to download, can you give me the links. Thanx (2 Replies)
Discussion started by: matt2kjones
2 Replies

10. UNIX for Dummies Questions & Answers

Installing RedHat Linux 7

Hey everybody. Its been awhile since I last posted but in short I am now in posession of RedHat Linux 7.0 which I got from a book called the RedHat 7 Bible. As this is not an official distribution I cannot get product support from RedHat so I decided to try here. I have three computers. I... (2 Replies)
Discussion started by: TheGoof
2 Replies
Login or Register to Ask a Question