LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03: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, 12:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 08: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, 10: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, 11:08 AM   #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, 11:52 AM   #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



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 12:50 PM
blfs /etc/skel permissions cuco76 Linux From Scratch 3 07-07-2004 04:20 PM
useradd etc/skel public_html permissions problem bnorton787 Linux - Newbie 4 02-20-2004 06:01 PM
Linking Folders into /etc/skel otisthegbs Linux - Software 0 11-24-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 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