Which are root's startup files?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Which are root's startup files?
# 1  
Old 09-21-2010
Which are root's startup files?

I was going through a server hardening manual.
At some interval it was mentioned that there should not be any alias for commands defined in roots startup files .

How would i check it?
# 2  
Old 09-21-2010
the files are in the /etc directory under
rc* subdirectories in /etc

Note: a lot of the files in these directories are usually links
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 09-21-2010
Quote:
Originally Posted by pinga123
How would i check it?
Also, you can typically check for aliases by typing the alias command:

Code:
me@home:/home/myhome/bin# alias
alias ls='ls --color=auto'

This User Gave Thanks to Neo For This Post:
# 4  
Old 09-21-2010
Quote:
there should not be any alias for commands defined in roots startup files
This sentence is ambiguous. Are you able to quote what was written in the book?

My interpretatation would be to ensure that there are no "alias" commands in the profile for the "root" account. Presumably because it could change the meaning of privileged commands.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. UNIX for Dummies Questions & Answers

Startup Files in Unix

Hi All, Can some one pls explain the order in which the startup files are run? For Bourne shell .profile is run., But what other startup files are present? When is the .aliases file called. (4 Replies)
Discussion started by: gsrikanth99
4 Replies

4. Shell Programming and Scripting

ubuntu --- code to run python files at startup

hi everyone... we have to run any python file e.g. show.py at startup..i.e. when OS starts it runs automatically. we are proceeding this way, writing a startup script named forfyp2 ,pasting it in init.d , making it exe using chmod , creating startup links using update-rc.d forfyp2 defaults.... (1 Reply)
Discussion started by: sarosh
1 Replies

5. SuSE

Executing set of sh files at system startup

Hi Everybody I am totally new to Linux. We are using Suse Linux version 9. Currently we have 4 to 5 shell scripts which needs to be executed manually by the users.I want these scripts to be run automatically when system starts...something like system startup service. When system is... (1 Reply)
Discussion started by: appleforme1415
1 Replies

6. AIX

Initialization & Startup Files

Hi Every Body, I want to know which files are read by the system during startup (initialization files) & in which order they are read? (2 Replies)
Discussion started by: aldowsary
2 Replies

7. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies

8. UNIX for Dummies Questions & Answers

log files for startup?

log files for startup for AIX is /etc/rc.log.old how about for hpux and solaris? (1 Reply)
Discussion started by: yls177
1 Replies

9. UNIX for Dummies Questions & Answers

Re-initializing startup files without rebooting

Sorry for the newbie question. I'm using OSX BSD by remotely logging in and need to re-initialize the startup sequence but don't want to reboot the machine. How can I do it? Thanks for any help. (3 Replies)
Discussion started by: DrScar
3 Replies
Login or Register to Ask a Question