LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2001, 04:18 PM   #1
CropA
LQ Newbie
 
Registered: Mar 2001
Location: Tarn
Distribution: Mandrake 8
Posts: 16

Rep: Reputation: 0

When creating a user account do you ned to copy certain files from the dir etc/skel, because i,ve added new users and their accounts work fine, but i have read that this is necessary.

Regards
CropA
 
Old 03-20-2001, 01:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
I think it all depends on how you set the users up!
If you create them like by adduser....addgroup...etc, then it automatically does this for you, The only time I ever notice that I need to copy the skel files over is when I add them manually to the /etc/passwd file.
 
Old 03-22-2001, 09:40 AM   #3
nedo
Member
 
Registered: Mar 2001
Location: Northern Poland
Posts: 34

Rep: Reputation: 15
it's all in man adduser ( or man useradd). current configuration is stored in /etc/default/useradd. But actually, when you add new user with no new options the files from /etc/skel are automatically copied to user's dir ( unless you have chosen no to create home directory in /etc/default/useradd)
 
Old 03-22-2001, 11:31 AM   #4
killjoy
Member
 
Registered: Mar 2001
Location: Atlanta,GA
Distribution: Red Hat, Mandrake
Posts: 66

Rep: Reputation: 15
if the user's account is already there, you could replace their home dir with the default info in /etc/skel with
rsync /home/<user> | chown -R <user>:<user> /home/<user>
-also handy fixing user accounts when they screw up their settings beyond repair
 
Old 03-22-2001, 12:08 PM   #5
CropA
LQ Newbie
 
Registered: Mar 2001
Location: Tarn
Distribution: Mandrake 8
Posts: 16

Original Poster
Rep: Reputation: 0
What exactly is in the etc/skel dir, and do i need it?because i,ve manually created a user in the passwd file and the user account works fine, but when you run the adduser script it automatically dumps the skel files into the usr home dir.

Regard
CropA
 
Old 03-22-2001, 12:52 PM   #6
killjoy
Member
 
Registered: Mar 2001
Location: Atlanta,GA
Distribution: Red Hat, Mandrake
Posts: 66

Rep: Reputation: 15
The /etc/skel dir is mainly there for the adduser program to provide you with a default template for creating new users so you don't HAVE to do it manually. This will provide them (new users) with all the default X settings, shell settings, desktop settings, icons, etc...(skel is short for skeleton)--you can also create modifications based on this dir.
ex. in my office we have a dir called "/etc/skel.csr" and a modified "assuser" script called "addcsr" this way all we have to do to add another user in the "csr" group, we just type "addcsr <username>" and it creates an account/homedir for the user that is identical to all the other "csr" accounts-can save a lot of time for administration.
Hope It Helps!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SKEL?! I found /etc/skel directory sbogus Linux - Security 3 07-27-2004 01:50 PM
blfs /etc/skel permissions cuco76 Linux From Scratch 3 07-07-2004 05:20 PM
useradd etc/skel public_html permissions problem bnorton787 Linux - Newbie 4 02-20-2004 07:01 PM
Linking Folders into /etc/skel otisthegbs Linux - Software 0 11-24-2003 04:37 PM


All times are GMT -5. The time now is 03:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration