Results 1 to 5 of 5
Okay, I have a few questions (hopefully with simple answers):
1. How can I have a script execute at startup?
2. How can I have someone auto-login?
3. How can ...
- 08-03-2005 #1
A few (hopefully simple) questions
Okay, I have a few questions (hopefully with simple answers):
1. How can I have a script execute at startup?
2. How can I have someone auto-login?
3. How can I have it so when you su, it doesn't ask for a password but just auto goes to root?
4. How can I change the default hostname (from darkstar)?
By the way, I am using no X, therefore no WM. This all has to apply to the CLI.
BryanLooking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
- 08-03-2005 #2
Re: A few (hopefully simple) questions
1. Place it in /etc/rc.d
Originally Posted by bryansmith
3. For example, to allow users in the wheel group to do this, place this is /etc/pam.d/su:
4. Edit /etc/hostname, and make sure to add a line containingCode:auth sufficient pam_wheel.so use_uid trust
If you want the change to be immediate, use the hostname command.Code:127.0.0.1 newhostname
- 08-03-2005 #3Linux User
- Join Date
- Oct 2004
- Location
- Serbia&Montenegro
- Posts
- 281
Cool trick about su, lakerdonald.
Also, Bryan if you want a script to run on startup, put the script in /etc/rc.d and make it executable. Or put it in rc.local.Linux registered user #358842
Human knowledge belongs to the world.
- 08-04-2005 #4
Thanks for the help.
One more...how do I have a script run as soon as bash is started? Is this possible?
BryanLooking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
- 08-04-2005 #5
Put it in your .bashrc


Reply With Quote