Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > A few (hopefully simple) questions

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-03-2005   #1 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,622
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.

Bryan
__________________
Looking 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.
bryansmith is offline  



Reply With Quote
Old 08-03-2005   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Re: A few (hopefully simple) questions

Quote:
Originally Posted by bryansmith
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.

Bryan
1. Place it in /etc/rc.d
3. For example, to allow users in the wheel group to do this, place this is /etc/pam.d/su:
Code:
auth       sufficient   pam_wheel.so use_uid trust
4. Edit /etc/hostname, and make sure to add a line containing
Code:
127.0.0.1 newhostname
If you want the change to be immediate, use the hostname command.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 08-03-2005   #3 (permalink)
Linux 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.
Fallen Angel is offline   Reply With Quote
Old 08-04-2005   #4 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,622
Thanks for the help.

One more...how do I have a script run as soon as bash is started? Is this possible?

Bryan
__________________
Looking 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.
bryansmith is offline   Reply With Quote
Old 08-04-2005   #5 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Put it in your .bashrc
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:37 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1