Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-01-2004, 07:22 AM
|
#1
|
Member
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100
Rep:
|
How do I create a default user profile in Linux
Hi All,
This is more of a non urgent general enquiry, I have tried a few searches so far but found little info that helps me out.
I am a bit of M$ guru but have been trying to finally get myself over to Linux for a while and I have to say I love it. I have a background in Solaris, which I have found helpful so I am not a total stranger to the Linux/Unix environment.
In my quest towards better moving over to Linux, and of course trying to convert friends and family to my new love of Linux and Samba (for the server end). What I really need is an easy way (or guide) to create and modify default profiles. After I build a system with a Distro and install my chosen apps such as firefox etc and I have created all my links and got the desktop looking how I want and the apps opening for the correct file type etc. How do I then make this profile the default so all other created users are based on this original user? – Any help on this would be great.
Thanks in advance
Sm1ler
|
|
|
07-01-2004, 07:33 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
your choice of desktop manager (e.g. KDE or Gnome) might well have a higher level way to deal with it's own things, but at a lower system level, when you create a user all files existing in /etc/skel (for skeleton... which kinda makes sense...) will be copied to the users new home directory. In theory this could include KDE desktops and such, but generally it's more used for, as i said, the lower level things like setting up filepaths and things.
|
|
|
07-01-2004, 07:35 AM
|
#3
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Have a look in /etc/skel. Copies of the files in there are what will be present in a newly created user's home directory. You can create another directory if you want to create an alternate profile and pass that option to useradd with the -k option: useradd -G users,games,audio,cdrom -m -k /etc/my_own_skel new_user or something similar.
Do keep in mind that you should use relative paths so the profile doesn't depend on the name of the user.
Håkan
|
|
|
All times are GMT -5. The time now is 12:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|