Solved

user administration

Posted on 2004-08-27
9
172 Views
Last Modified: 2013-12-15
Hi

I am fairly new to Linux and just installed suse 9.1 pro, I wish to create a template user (access to apps, desktop theme and layout etc) so I can easily apply this to other new users I create.

Hopefully a painless non command prompt type solution.

thx
0
Comment
Question by:iqula
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:Chireru
Comment Utility
Create a new group "myusers" and user ("myuser" in the "myusers" group) in the SuSE Admin tools.
Then set everything up, giving permissions to the group, and not the user.

After the configuration is done, as root, copy the myuser's home directory to /etc/skel.

From then on, when you create users, make sure to use the option "create user directory from skeleton" (-m if you use the commandline utility), which will copy over all of the default desktop settings from the /etc/skel as their default profile.  Also, make sure to put them in the same group that the template user was in, so they inherit the permissions.

This will take a bit of trial-and-error to get it right.
0
 

Author Comment

by:iqula
Comment Utility
Ok got a group and a user but there seems to be no assign application rights to the group, it only has a list of "Members of this group" with at, bin, daemon, ftp ..
0
 
LVL 5

Accepted Solution

by:
Chireru earned 500 total points
Comment Utility
In linux, the access control of programs is granted either in the code, where you can determine exactly what user and group the program is being run as, or you can use the permissions system on the program.

The permissions in linux are fairly easy.  There are 3 types: User, Group and World(everyone).  For each type, there are 3 permissions: Read, Write, and Execute.
So, if you want to only allow users in the "games" group to run games, you would go to the binary of every game, and set the properties of it so that the group has read and execute.  To deny everyone not in that group (or the owner of the file) to execute it, then set the world to no permissions, or read-only and no execute.
0
 

Author Comment

by:iqula
Comment Utility
Thanks that makes good sence, do you know if there are any nice apps that help with these settings?  Also I tried moving the structure from one of my users into /etc/skel - once a new user was created this removed some of the icons on the desktop only do you know how I can get settings like the K menu apps, the background and icon themes?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 5

Expert Comment

by:Chireru
Comment Utility
I don't know of any applications that would do that.. just editing it in the GUI, or with CHMOD in the command line.

As far as I know, that should not remove any icons from the desktop..  check the user's desktop ( ~/Desktop ) for the missing icons.
0
 

Author Comment

by:iqula
Comment Utility
I see that what ever you move into the etc/skel gets put into the new users home/~ directory, this is good but do you have any idea how I can move settings like icon themes and Kmenu setup?

0
 
LVL 5

Expert Comment

by:Chireru
Comment Utility
All per-user settings are stored in the user's home directory, as various files.  Any and all customizations should be stored there.  Icon themes and Kmenu setup information should be stored in files in the user's home directory, if I'm not mistaken.  Outside of the home directory is usually reserved for system-wide settings.  

The themes would be installed to system-wide location on the harddrive, but the references to it would be in the configuration in the user's settings.  Notibly, in the .kde subdirectory in their home directory
0
 

Author Comment

by:iqula
Comment Utility
I set the browser to show hidden files after a little copy across and user setup it all worked, thanks a million.
0
 
LVL 5

Expert Comment

by:Chireru
Comment Utility
Oops!  I forget that the GUI doesn't show those automatically.. I use the command line for such actions.

Glad to hear it's working.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now