LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-05-2009, 02:18 PM   #1
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Rep: Reputation: 16
The directory /etc/default/


Hi guys, would you please tell me what kind of file would be stored in /etc/default/

Thank you,
 
Old 05-05-2009, 02:25 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
My understanding is that this is a Debian concept that has been adopted by a few packages.

Basically, /etc/default contains some parameters that the end user or administrator is likely to change, rather than embedding the values in the actual boot scripts. In this way, changes will persist even if you upgrade the package and the boot script is replaced.

The concept is essentially the same as the .conf files under rc.d (rc.inet1.conf, rc.bluetooth.conf, etc), but they are in one centralized location away from the scripts themselves.
 
1 members found this post helpful.
Old 05-05-2009, 02:27 PM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
The /etc/default directory is used for configuration files by two packages in a vanilla Slackware configuration: cdrtools and getty-ps. To find out what these packages do, have a look at their description from /var/log/packages:

Code:
cdrtools: Tools for mastering and writing compact discs.
cdrtools:
cdrtools: cdda2wav -- CD audio sampling utility.
cdrtools: cdrecord -- burn discs in most ATAPI and SCSI CD-R drives.
cdrtools: mkisofs  -- create ISO9660/HFS/Joliet CD-ROM images.
cdrtools: mkzftree -- compress a file tree to make a compressed CD-ROM.
Code:
getty-ps: /sbin/getty and /sbin/uugetty.
getty-ps: These control the process of logging into your system, and may be used
getty-ps: instead of 'agetty', which is the default getty included with the
getty-ps: util-linux package. getty-ps supports a number of enhancements such as
getty-ps: ringback support.
getty-ps:
getty-ps: getty-ps was originally written by Paul Sutcliffe, Jr, and is
getty-ps: currently maintained by Christine Jamison.
If you wonder about which package/program a specific file comes with in the future, you can easily grep for it in /var/log/packages. To answer your question, I typed the following command:

Code:
[199] user@host:/var/log/packages>egrep "etc.default" *
cdrtools-2.01.01a57-i486-2:etc/default/
cdrtools-2.01.01a57-i486-2:etc/default/cdrecord.new
cdrtools-2.01.01a57-i486-2:etc/default/rscsi.new
getty-ps-2.1.0b-i486-1:etc/default/
getty-ps-2.1.0b-i486-1:etc/default/uugetty.sample
getty-ps-2.1.0b-i486-1:etc/default/getty
getty-ps-2.1.0b-i486-1:etc/default/uugetty.waitfor
getty-ps-2.1.0b-i486-1:etc/default/uugetty.modem
getty-ps-2.1.0b-i486-1:etc/default/uugetty.sched
getty-ps-2.1.0b-i486-1:etc/default/getty.modem
Hope this helps!

-y1
 
1 members found this post helpful.
Old 05-05-2009, 02:35 PM   #4
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
Thank you guys. That clear out a lot of things.
 
Old 05-05-2009, 04:32 PM   #5
joutlancpa
Member
 
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by trainee View Post
Thank you guys. That clear out a lot of things.
Thanks for posting the question...I was wondering this myself.
 
Old 05-06-2009, 03:21 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Some rpm-based distros use a directory, /etc/sysconfig, in a similar way.
 
Old 05-16-2009, 01:17 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Another handy file is /etc/default/useradd. When adding user accounts this file is queried to establish defaults.

For example:

# Begin /etc/default/useradd

GROUP=100
HOME=/home/users
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

# End /etc/default/useradd
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
Default Working Directory kcirick Mandriva 2 01-20-2007 07:06 PM
where is the default gcc3.2.2-5 directory? karfei00 Linux - Newbie 4 06-14-2004 12:36 AM
Default Directory Permissions tranquil222 Linux - Software 8 05-20-2004 05:10 PM
Default Apache Directory emperorjordan Mandriva 8 02-26-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration