RHEL 6.1 user creatation/configuration at login time with limited KDE Start Menu
Red HatThis forum is for the discussion of Red Hat Linux.
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.
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.
RHEL 6.1 user creatation/configuration at login time with limited KDE Start Menu
I have installed RHEL 6.1 with KDE 4.3.4 using LDAP and have now the following problem.
I would like to create a user account at first login time and configure a limited KDE Start Menu at the same time.
I was reading already the stuff about the files in the directory /etc/skel getting copied across at first login time, but I need to copy a tailored KDE Start Menu (very limited functionality) to the user directory .local/share/applications/at first login time using LDAP.
Does someone has a solution for this problem?
Does that mean that the directory structure below /etc/skel like:
/etc/skel/.local/share/applications/<file1> would be copied to /home/<user1>/.local/share/applications/<file1> and as conclusion that the whole directory tree below /etc/skel/ would be copied to the /home/<user1>/ directory?
Thanks, I much appreciate your answer.
I still have a question? If I have users/profiles that I would like to populate with a slightly different 'skeleton', would that be possible with that mechanism,too ?
I'm not sure but it would more than likely depend on how you are differentiating them. What logic is used to define which user is which type?
there appear to be pam modules like pam_exec to run arbitrary code before creating the homedir, but what occurs to me as a simpler scenario is to actually keep a common skel setup but add a check in bashrc to *always* run a script IF it exists. This 2nd script could then obviously customize whatever you want, possibly copying a /etc/skel_2 or something to the new users directory as well. you can then delete the script after executing it, meaning it'll never update those files again.
Last edited by acid_kewpie; 01-18-2013 at 03:56 AM.
I am planning to define four groups of users and each group of users will have a certain (limited) KDE Start Menu and certain (limited) permissions. All these attributes shall be copied/set at first login time.
I am going to try the two possibilities, suggested from you, next week and report the results in this thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.